Skip to content

Instantly share code, notes, and snippets.

View Pumpkin-Smasher-83's full-sized avatar
💭
Buildin Shit

Pumpkin-Smasher-83 Pumpkin-Smasher-83

💭
Buildin Shit
  • Oblivion Hacker-Bots
View GitHub Profile
@legendSabbir
legendSabbir / main.js
Created October 17, 2023 16:09
Path Autocomplete
import plugin from "../plugin.json";
const { editor } = editorManager;
const fsOperation = acode.require("fsOperation");
const helpers = acode.require("helpers");
const TokenIterator = ace.require("ace/token_iterator").TokenIterator;
const cache = Object.create(null);
const pathCompleter = {
id: "path-completion",
getCompletions: async function (editor, session, pos, prefix, callback) {