Skip to content

Conversation

@akinomyoga
Copy link
Contributor

Before submitting the change to the configuration interface of the newly introduced vim mode, I'd like to first refactor/fix the behaviors of corner cases. I left details in the commit messages.

@YummyOreo @ellie Could you check these?

@vercel
Copy link

vercel bot commented Jan 14, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
atuin-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 14, 2024 10:36pm

ellie
ellie previously approved these changes Jan 14, 2024
This patch reduces the code duplication.
@akinomyoga
Copy link
Contributor Author

fixed format.

In the current implementation, the combination of settings.invert and
settings.vim is not considered.  This patch implements it.
In this patch, we apply the rules for vim-modes only on `j` and `k`
without the Control modifier.

With the current set of keybindings, the current implementation does
not cause a problem because `j` and `k` behave the same as `C-j` and
`C-j` within the vim-normal mode.  However, this is just accidental
and can be broken by future changes.  To make these keybindings
orthogonal, it is better to explicitly check the Control modifier.
@akinomyoga
Copy link
Contributor Author

Sorry, I fixed the wrong part. I again fixed it. Now the checks passed.

@ellie
Copy link
Member

ellie commented Jan 14, 2024

Thanks!

@ellie ellie merged commit 9e3d41e into atuinsh:main Jan 14, 2024
@akinomyoga akinomyoga deleted the fix-vim branch January 14, 2024 23:06
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.

3 participants