Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

keybinding for comments and joinlines don't work #3265

Closed
evanescente-ondine opened this issue Apr 24, 2024 · 2 comments
Closed

keybinding for comments and joinlines don't work #3265

evanescente-ondine opened this issue Apr 24, 2024 · 2 comments

Comments

@evanescente-ondine
Copy link

{
"Ctrl/": "comment",
"CtrlJ": "joinLines",
"CtrlUnderscore": "lua:comment.comment"
"CtrlShiftC": "Copy"
"CtrlShiftV": "Paste"
}

Neither of Ctrl/, CtrlJ, Alt+j, Alt+/ do anything., with or without the "lua:" prefix.

Version: 2.0.13
OS: Linux B8-97-5A-F9-E4-87 6.6.15-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.6.15-2 (2024-02-04) x86_64 GNU/Linux
Terminal: fish, version 3.7.1

@Andriamanitra
Copy link
Contributor

There is no action called "joinLines". If your bindings.json looks like that you should get an error

Error in bindings: action joinLines does not exist

when you start micro, that's assuming your bindings.json is located in the correct place which is ~/.config/micro/bindings.json by default. The comment plugin needs to be enabled (set comment on) for the "lua:comment.comment" keybinding to work.

You can use raw to open a buffer where you can see all the key events that micro gets. Sometimes another program (like the terminal emulator or desktop environment) may be capturing the key events before they get to micro, in which case they obviously won't work.

@dmaluka
Copy link
Collaborator

dmaluka commented Apr 24, 2024

I think @evanescente-ondine is using the joinLines plugin (as am I). The correct keybinding for it is lua:joinLines.joinLines.

BTW I've noticed that the comment plugin's help mentions an incorrect (non-working) keybinding. Pushed fix: 24406a5

And so does the joinLines plugin's help. Submitted PR with the fix: Lisiadito/join-lines-plugin#9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants