Consistent filepath display and code cleanup. (#839)

BREAKING CHANGE: see :help telescope.changelog-839 for more information

Co-authored-by: Simon Hauser <Simon-Hauser@outlook.de>
This commit is contained in:
caojoshua
2021-07-08 01:30:44 -07:00
committed by GitHub
parent 38907ce7d7
commit d5a8e48aa6
11 changed files with 165 additions and 137 deletions

View File

@@ -177,6 +177,21 @@ local telescope_defaults = {
Default: true]]
},
path_display = { {}, [[
Determines how file paths are displayed
path_display can be set to an array with a combination of:
- "hidden" hide file names
- "tail" only display the file name, and not the path
- "absolute" display absolute paths
- "shorten" only display the first character of each directory in
the path
path_display can also be set to 'hidden' string to hide file names
Default: {}]]
},
borderchars = { { "", "", "", "", "", "", "", "" } },
get_status_text = {
@@ -247,13 +262,15 @@ local telescope_defaults = {
Into your config.
otherwise, just set the mapping to the function that you want it to be.
otherwise, just set the mapping to the function that you want it to
be.
...,
["<C-i>"] = require('telescope.actions').select_default,
...,
If the function you want is part of `telescope.actions`, then you can simply give a string.
If the function you want is part of `telescope.actions`, then you can
simply give a string.
For example, the previous option is equivalent to:
...,