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

Prevent q from quitting lnav #1316

Open
gerases opened this issue Sep 29, 2024 · 1 comment
Open

Prevent q from quitting lnav #1316

gerases opened this issue Sep 29, 2024 · 1 comment
Labels
enhancement Feature Request

Comments

@gerases
Copy link

gerases commented Sep 29, 2024

Hi,

is it possible to prevent q from quitting lnav altogether. I keep doing it for some reason. Same about carl-c. Maybe a confirmation before quitting? Sorry if this has been asked before. Haven’t been able to find a solution for this for a long time. Otherwise, I love lnav. Thank you much.

@gerases gerases added the enhancement Feature Request label Sep 29, 2024
@tstack
Copy link
Owner

tstack commented Oct 1, 2024

The key binding for q is defined here:

"x71": {
"command": "|lnav-pop-view ${keyseq}"
},

You can rebind with a command like the following:

:config /ui/keymap-defs/default/x71/command :echo Press Shift-Q to quit

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

No branches or pull requests

2 participants