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

History picker #2179

Open
johalun opened this issue Apr 19, 2022 · 4 comments
Open

History picker #2179

johalun opened this issue Apr 19, 2022 · 4 comments
Labels
A-helix-term Area: Helix term improvements C-enhancement Category: Improvements

Comments

@johalun
Copy link

johalun commented Apr 19, 2022

Not critical but definitely a nice to have feature would be a "history picker". For example [space - h] opens up a history over past opened files, including from previous sessions of Helix. Alternatively, the file and buffer picker could include a section with previously opened files/buffers that are not currently open.

Thanks!

@johalun johalun added the C-enhancement Category: Improvements label Apr 19, 2022
@the-mikedavis
Copy link
Member

Depends #401

@kirawi kirawi added the A-helix-term Area: Helix term improvements label Apr 22, 2022
@adamkpickering
Copy link

I was considering making this a separate issue, but I'll write it here because it probably requires the same background functionality, plus a few keymaps.

I find myself using ga (goto_last_accessed_file) a lot. However, ga only lets you jump one step into your file access history: doing ga again puts you back at the original file. I had thought that doing gn and gp would give me this functionality, but the order is not what I need. I'm not sure how the ordering of buffers works, but it is clear that they are not ordered by most recently accessed.

What I want is two keymaps that are like gn and gp, but rather than navigating buffers, they navigate files in the order they were last accessed (most recently accessed first). FWIW I don't care about history persistence across runs of helix.

@the-mikedavis
Copy link
Member

If you aren't already aware of this, you might be looking for the jumplist which is like a history stack: you can use C-o to jump backwards and C-i to jump forwards. Most LSP motions like gd or gr save spots to the jumplist and you can save spots manually with C-s in normal mode.

@adamkpickering
Copy link

Thanks @the-mikedavis. I use that a lot as well. But it's too fine-grained sometimes, hence the file access history stuff.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-helix-term Area: Helix term improvements C-enhancement Category: Improvements
Projects
None yet
Development

No branches or pull requests

4 participants