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

Move cursor to its current location when editing a message with C-x #243

Closed
osa1 opened this issue Aug 27, 2020 · 0 comments
Closed

Move cursor to its current location when editing a message with C-x #243

osa1 opened this issue Aug 27, 2020 · 0 comments

Comments

@osa1
Copy link
Owner

osa1 commented Aug 27, 2020

This was requested in the IRC channel once but I thought it's not possible.. until I realized that zsh's edit-command-line already does it when the editor is vim or emacs!

I think we should just implement the same idea. To summarize, if I have this line in the input line (where [] is the cursor):

blah blah blah []blah blah

and run e.g. vim by pressing C-x, I get the message copied in vim buffer, but the cursor will be at the beginning of the file.

As shown by the linked code, it's possible to move the cursor the its current location in vim and emacs. We should use the same idea and pass the cursor location to vim and emacs.

@osa1 osa1 added this to the 0.7.0 milestone Aug 27, 2020
@osa1 osa1 closed this as completed in da61106 Aug 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant