harpoon
harpoon copied to clipboard
Telescope preview with long file path
When I use Harpoon as extension of Telescope to open a file with really long path, it just display from the beginning, and I can not see the file name. The problem is if I have 2 different files but same directory, Telescope will show exactly the same and I think it quite inconvenience!
I think this will better if it perform like the other Telescope preview windows, always show the file name. Like this:
The #512 PR would allow you to use the path_display = { "truncate" }
-config for telescope. If it's already set - inside your telescope defaults
- it should just work!
require("telescope").extensions.harpoon.marks({
path_display = { "truncate" },
})
or
require("telescope").extensions.harpoon.marks(
require("telescope.themes").get_dropdown({
path_display = { "truncate" },
})
)
or
-- when setting up telescope:
require("telescope").setup({
defaults = {
path_display = { "truncate" },
},
})
-- when using a keymap:
require("telescope").extensions.harpoon.marks()
...
@ThePrimeagen can we please merge this awesome feature.. long path names makes the actual filenames non-visible