How to run current file #2927
-
I'm editing a lot of Bash script files, and they are in a folder structure. Is there a way to run current file? The work-around I can see by now is using |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
There is no good way to do it out of the box but I have made a tiny plugin for myself for exactly this purpose: https://github.com/Andriamanitra/dotfiles/blob/main/micro/.config/micro/plug/executor/executor.lua You can drop that in |
Beta Was this translation helpful? Give feedback.
There is no good way to do it out of the box but I have made a tiny plugin for myself for exactly this purpose: https://github.com/Andriamanitra/dotfiles/blob/main/micro/.config/micro/plug/executor/executor.lua
You can drop that in
~/.config/micro/plug/executor/executor.lua
and add"F5": "lua:executor.execute"
to~/.config/micro/bindings.json
to run the current file by pressing F5. You may want to customize theexecutor_map
to your liking depending on which programming languages you work with.