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

Navigate cmd history with up/down by default #1112

Merged
merged 1 commit into from
Feb 25, 2023

Conversation

Limero
Copy link
Contributor

@Limero Limero commented Feb 16, 2023

This makes it possible to navigate history in command mode with the up and down arrow keys, which replicates the behavior of VIM.

@Limero Limero force-pushed the navigate-cmd-history-with-up-down branch from 22a40c4 to c5e0f7f Compare February 16, 2023 22:47
@avioli
Copy link

avioli commented Feb 17, 2023

Temporary solution I use in my lfrc file:

cmap <up> cmd-history-prev
cmap <down> cmd-history-next

@ilyagr
Copy link
Collaborator

ilyagr commented Feb 17, 2023

Yes, I think the title is missing the words "by default". This is certainly already possible as @avioli pointed out.

@Limero Limero changed the title Navigate cmd history with up/down Navigate cmd history with up/down by default Feb 17, 2023
@Limero
Copy link
Contributor Author

Limero commented Feb 17, 2023

You're right! I changed the title. I've had the same cmap in my lfrc for years and it makes sense that it's made the default, since the up/down keys are not bound to anything else in command mode.

@gokcehan gokcehan merged commit cae576b into gokcehan:master Feb 25, 2023
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

Successfully merging this pull request may close these issues.

4 participants