Skip to content

How to run current file #2927

Answered by Andriamanitra
danqdinh asked this question in Q&A
Discussion options

You must be logged in to vote

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 the executor_map to your liking depending on which programming languages you work with.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@danqdinh
Comment options

Answer selected by danqdinh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants