Skip to content

Instantly share code, notes, and snippets.

View Toolapk's full-sized avatar

Gouranga Toolapk

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) {