This is an experimental vs code extension to enable autocompletion support for pyerk. It is heavily based on:
- https://github.com/tatosjb/vscode-fuzzy-search
- https://code.visualstudio.com/api/get-started/your-first-extension.
Inside the editor, open src/extension.ts
and press F5
. This will compile and run the extension in a new Extension Development Host window.
Run the erkfzf
command from the Command Palette (Ctrl+Shift+P
) in the new window:
See also vsc-extension-quickstart.md.
- Ensure
pyerk --version
>=0.9.0
- - naviate to the directory of your erk package (where
erkpackage.toml
is located) - create a autocompletion file (
.ac_candidates.txt
) withpyerk -ac
- bind action
erkfzf
to a keyboard binding of your choice
- from the root dir of the extension:
npm install
npm install -g @vscode/vsce
vsce package
- this creates a file like
extensionname.vsix
For users, to install a .vsix
file in VS Code:
- Go to the Extensions view.
- Click the
···
-menu (Views and More Actions...) - Select Install from VSIX...
or in your terminal, run the following command:
code --install-extension my-extension-0.0.1.vsix