This repository has been archived by the owner on Apr 16, 2024. It is now read-only.
add shortcuts for telescope search history #258
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
bind by default shortcuts in telescope for previous & next history entries. See
:help telescope.defaults.history
and nvim-telescope/telescope.nvim#1208 and nvim-telescope/telescope.nvim#521I don't see any downside to this, only upsides, that's why I'm suggesting it.
And if you think this belongs in doom-nvim by default, I also wonder about potentially adding:
to telescope settings, in a separate PR, if you would be interested. It's documented at
telescope.defaults.path_display
. By default, telescope cuts the end of a filename. And the end is the most interesting part... It contains the actual filename you'll open. With truncate, it will cut the start, which is a reasonable default. There are more advanced options (like cut individual folder names in the path), but truncate seems to be a reasonable default, better than cutting at the end. Let me know if you would be interested in such a separate PR too.