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 10:30:44 +02:00
committed by GitHub
co-authored by Simon Hauser
parent 38907ce7d7
commit d5a8e48aa6
11 changed files with 165 additions and 137 deletions
+14
View File
@@ -8,6 +8,20 @@ deprecated.picker_window_options = function(opts)
-- Deprecated: PR:922, 2021/06/25
-- Can be removed in a few weeks.
if opts.shorten_path then
table.insert(messages,
"'opts.shorten_path' is no longer valid. Please use 'opts.path_display' instead. " ..
"Please See ':help telescope.changelog-839'"
)
end
if opts.hide_filename then
table.insert(messages,
"'opts.hide_filename' is no longer valid. Please use 'opts.path_display' instead. " ..
"Please See ':help telescope.changelog-839'"
)
end
if opts.width then
table.insert(messages, "'opts.width' is no longer valid. Please use 'layout_config.width' instead")
end