-
Notifications
You must be signed in to change notification settings - Fork 33
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
Prevent intermediate selections or directories from appearing in history #212
Comments
Thank you for pointing out that this behaviour isn't so great for file browsing. I believe I was the one who suggested this, this was before I used prescient for sorting. With prescient this is behaviour is less useful and as you pointed out it is generally a bad idea to do this for browsing files. We could disable it only for file browsing but my current opinion is that adding entries on insertion is generally unexpected and shouldn't be the default. |
You can set the variable |
Thank you for sharing the background of this behavior. The |
Glad I could help, does the merged fix (#213) solve your issue? |
Hi @clemera , yes I have been using the diff for the last few days and it does work as I had hoped. Would be happy to close this issue. |
Okay, thanks again for discovering this! |
When I navigate to a nested directory from root for e.g.
/mnt/A/B/C/file.txt
then all the intermediate candidates I have chosen also appear in my history. That is, the second time I use selectrum and keep pressing M-p, it shows me the following options:I would prefer to have only the first item (i.e. the file I eventually opened) rather than all the selections I made while navigating to the file.
Also, is it possible to remove duplicates from history? For e.g. if I open
file.txt
frequently I would like to have only the most recent occurrence in history.BTW, thank you so much for creating this excellent package. Lots of good design choices and light on resources.
The text was updated successfully, but these errors were encountered: