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

Mark system similar to vim #284

Closed
jkonecny12 opened this issue Jun 13, 2015 · 5 comments
Closed

Mark system similar to vim #284

jkonecny12 opened this issue Jun 13, 2015 · 5 comments

Comments

@jkonecny12
Copy link
Contributor

Hi all,

In Vim users can by pressing m + <lowercase letter> save mark for actual position in the code and then by pressing ' + <the letter> jump to line or by pressing `` + ` to jump to line and column where the mark was saved. More in vim wiki.

I think this feature is missing in kakoune. There are jumps but it's not the same. When I talked to @mawww we agreed to combine this approaches.

I'm also thinking that it would be nice to have contextual help for this (like in 'g' GoTo commands) and the best would be if this help shows your already saved marks. Hard to say if this is reasonable for implementation. What do you think @mawww ?

@jkonecny12 jkonecny12 changed the title Marking system similar to vim Mark system similar to vim Jun 13, 2015
@mawww
Copy link
Owner

mawww commented Jun 27, 2015

Hello, I pushed an initial version, bound to ^ for save selections to register, and alt-^ for restoring. I am not very happy with these bindings, so suggestions are welcome.

@jkonecny12
Copy link
Contributor Author

Yeah it's little complicated shortcut but I thing I get used to it. I'll try to find better bindings. To that time I think it's working like a charm now.
Thank you @mawww good work.
Btw sorry it took so long to me to look on this.

@alexherbo2
Copy link
Contributor

How about z to load and Z to create marks?

It’s easier to type. Plus z makes a good mnemonic, since it’s more like pages of a book.

As a side note, z and Z suit well with q and Q used for macros.

@mawww
Copy link
Owner

mawww commented Jul 11, 2015

Hum, yeah, why not, I was saving z for something undetermined, but I guess marks are as good as any.

@mawww mawww closed this as completed in 24de3ed Jul 11, 2015
@jkonecny12
Copy link
Contributor Author

Nice idea @alexherbo2

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

No branches or pull requests

3 participants