(Question) Setting up custom commands? #4692
Replies: 3 comments 3 replies
-
The first item on the list should be possible to do already, but the other two seem to require scripting capabilities. |
Beta Was this translation helpful? Give feedback.
-
If by context menus you mean the bottom-right popups which show available follow up keybindings, you can already make these. E.g, to add an item to the space menu: [keys.normal]
space = { foo = "bar" } You can also construct your own menus, I have this for example: [keys.normal.A-t]
# opening test files
p = ':vs ~/dev/test/python.py'
h = ':vs ~/dev/test/html.html'
r = ':vs ~/dev/test/rust.rs'
m = ':vs ~/dev/test/markdown.md' |
Beta Was this translation helpful? Give feedback.
-
Support for adding custom commands for command mode (I think that's what op wants) is possible even before having a plugin system for having shortcuts one doesn't want to add as keybinds. Later these could be enhanced for calling API or plugin functions. I have something like this in mind: # config.toml
[commands]
"ToggleMyGreatPlugin" = "myPlugin.toggle()"
# maybe better in languages.toml
[commands.rust]
"Test" = ":sh cargo test"
"Lint" = ":sh cargo clippy"
[commands.go]
"Test" = ":sh go test" |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I want to setup custom commands to do Flutter development with
helix
. I'm guessing this will have to wait for #998 or #122, but I will describe the use case here for tracking.flutter
command line tool commands to command palette, keybindings etc.flutter devices
, store a list of devices in editor state, then dispatch run commands on these devicesflutter run
, it allows pressing keys to dispatch subsequent commands to the device, would be nice to hook these into command pallet entries, or hooks like saving a file triggeringhot reload
A few more ideas
space
andg
menus for these tasksFor reference: here's a
CoC
plugin that achieves most of these items in vim https://github.com/iamcco/coc-flutterBeta Was this translation helpful? Give feedback.
All reactions