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

Vim style movement #15

Closed
IndianBoy42 opened this issue Aug 11, 2021 · 8 comments · Fixed by #22
Closed

Vim style movement #15

IndianBoy42 opened this issue Aug 11, 2021 · 8 comments · Fixed by #22

Comments

@IndianBoy42
Copy link

Is it possible through configuration to make the movement vim style (for example like alacritty's ctrl+shift+space)

@yurikhan
Copy link
Owner

I do not know what Ctrl+Shift+Space does in Alacritty.

I do know vim has a whole chapter in its manual called motion.txt and spanning almost one and a half thousand lines, and that not including search commands.

I know some vim commands use a prefix key such as g. Kitty has a key1>key2 syntax for key sequences, but I have not tested if they work in kitty_grab. Likely not yet.

I also know most vim commands can be prefixed with numbers, and I am certain Kitty does not have a syntax for that.

Lastly, I know some people have had success setting up vim or neovim as a screen grabber / scrollback browser for Kitty, see here and there.

@IndianBoy42
Copy link
Author

IndianBoy42 commented Aug 11, 2021 via email

@yurikhan
Copy link
Owner

hjkl instead of arrows

Possible.

wbe for moving by word

Two of three possible, because kitty_grab does not implement two different ways to move forward by words.

v to start selecting, V to select whole lines at a time

Modal selection is not currently implemented. I might accept a patch.

y to copy what has been selected

Possible.

/? to search fwd/bwd

Search is not yet implemented. I have a wishlist item (#5) for search but it’s about emacs-style isearch rather than vim-style regexp search.

(Offtopic: When replying via mail client, please delete anything that should not go into a comment. This includes your mail signature and bottom-quoting.)

Also, have you read the sample config? It should have told you everything that is possible.

@storopoli
Copy link

Any new on this?

The most important stuff would be:

v to start selecting, V to select whole lines at a time

@yurikhan
Copy link
Owner

Are you volunteering to implement that?

@storopoli
Copy link

No, I am not proficient in Python. Just that alacritty does this so elegantly.

@yurikhan
Copy link
Owner

Then I have no news for you, sorry.

@tigerjack
Copy link

Hey @IndianBoy42 , there's part of this is already implemented on kitty. For example, Ctrl+G let you go around the output of the last command (it uses less in the background I think). Some people (including me) are also using nvim as a scrollback pager to be able to select text. This is my configuration for example.

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 a pull request may close this issue.

4 participants