radian-software / selectrum

🔔 Better solution for incremental narrowing in Emacs.
MIT License
737 stars 33 forks source link

[Feature Request] Add `//` and `~` shortcuts like in Ivy #231

Closed lljr closed 3 years ago

lljr commented 3 years ago

Hi :). I love this package. It has everything except two shortcuts I use frequently in Ivy. Maybe you'll want to add them?

They are navigation shortcuts. In Ivy, if you type ~ in the minibuffer the prompt's path changes to the user's home directory. There's also // which shortens the path to the root dir. I found those two shortcuts useful. I'm still learning Elisp so I can't send a meaningful PR :(. It's fine if these shortcuts are not added (maybe due to codebase design (?)), I think I can live without them :).

okamsn commented 3 years ago

Hello.

Those should already work. This is what the README says:

To navigate to your home directory, you can just use C-a C-k ~/. Alternatively, like in default completion, you can type ~/ after a / to ignore the preceding input and move to the home directory.

In Selectrum, you must use /~/, not just ~, to switch to finding files in the home directory. Does that not work for you?

lljr commented 3 years ago

@okamsn ah yes. That works. Thanks!

clemera commented 3 years ago

See also here.