Skip to content

Commit

Permalink
fix: previewers & entry maker file encoding (#2430)
Browse files Browse the repository at this point in the history
(cherry picked from commit c8b6523)
  • Loading branch information
jamestrew authored and Conni2461 committed May 24, 2023
1 parent a0208d8 commit f97f4a0
Show file tree
Hide file tree
Showing 4 changed files with 80 additions and 36 deletions.
90 changes: 56 additions & 34 deletions doc/telescope.txt
Original file line number Diff line number Diff line change
Expand Up @@ -796,6 +796,8 @@ builtin.live_grep({opts}) *telescope.builtin.live_grep()*
{max_results} (number) define a upper result value
{disable_coordinates} (boolean) don't show the line & row
numbers (default: false)
{file_encoding} (string) file encoding for the entry &
previewer


builtin.grep_string({opts}) *telescope.builtin.grep_string()*
Expand Down Expand Up @@ -830,6 +832,8 @@ builtin.grep_string({opts}) *telescope.builtin.grep_string()*
{only_sort_text} (boolean) only sort the text, not the
file, line or row (default:
false)
{file_encoding} (string) file encoding for the entry &
previewer


builtin.find_files({opts}) *telescope.builtin.find_files()*
Expand Down Expand Up @@ -859,6 +863,7 @@ builtin.find_files({opts}) *telescope.builtin.find_files()*
{search_dirs} (table) directory/directories/files to
search
{search_file} (string) specify a filename to search for
{file_encoding} (string) file encoding for the previewer


builtin.fd() *telescope.builtin.fd()*
Expand All @@ -881,6 +886,7 @@ builtin.treesitter() *telescope.builtin.treesitter()*
current buffer)
{symbol_highlights} (table) string -> string. Matches symbol with
hl_group
{file_encoding} (string) file encoding for the previewer


builtin.current_buffer_fuzzy_find({opts}) *telescope.builtin.current_buffer_fuzzy_find()*
Expand All @@ -893,6 +899,7 @@ builtin.current_buffer_fuzzy_find({opts}) *telescope.builtin.current_buffer_fuzz
Options: ~
{skip_empty_lines} (boolean) if true we don't display empty lines
(default: false)
{file_encoding} (string) file encoding for the previewer


builtin.tags({opts}) *telescope.builtin.tags()*
Expand Down Expand Up @@ -962,6 +969,7 @@ builtin.git_files({opts}) *telescope.builtin.git_files()*
(default: false)
{git_command} (table) command that will be executed.
{"git","ls-files","--exclude-standard","--cached"}
{file_encoding} (string) file encoding for the previewer


builtin.git_commits({opts}) *telescope.builtin.git_commits()*
Expand Down Expand Up @@ -1201,8 +1209,9 @@ builtin.oldfiles({opts}) *telescope.builtin.oldfiles()*
{opts} (table) options to pass to the picker

Options: ~
{only_cwd} (boolean) show only files in the cwd (default: false)
{cwd_only} (boolean) alias for only_cwd
{only_cwd} (boolean) show only files in the cwd (default: false)
{cwd_only} (boolean) alias for only_cwd
{file_encoding} (string) file encoding for the previewer


builtin.command_history({opts}) *telescope.builtin.command_history()*
Expand Down Expand Up @@ -1302,6 +1311,7 @@ builtin.buffers({opts}) *telescope.builtin.buffers()*
{bufnr_width} (number) Defines the width of the buffer
numbers in front of the filenames
(default: dynamic)
{file_encoding} (string) file encoding for the previewer


builtin.colorscheme({opts}) *telescope.builtin.colorscheme()*
Expand All @@ -1322,6 +1332,9 @@ builtin.marks({opts}) *telescope.builtin.marks()*
Parameters: ~
{opts} (table) options to pass to the picker

Options: ~
{file_encoding} (string) file encoding for the previewer


builtin.registers({opts}) *telescope.builtin.registers()*
Lists vim registers, pastes the contents of the register on `<cr>`
Expand Down Expand Up @@ -1426,6 +1439,7 @@ builtin.lsp_references({opts}) *telescope.builtin.lsp_references()*
section (default: 30)
{show_line} (boolean) show results text (default: true)
{trim_text} (boolean) trim results text (default: false)
{file_encoding} (string) file encoding for the previewer


builtin.lsp_incoming_calls({opts}) *telescope.builtin.lsp_incoming_calls()*
Expand All @@ -1437,10 +1451,11 @@ builtin.lsp_incoming_calls({opts}) *telescope.builtin.lsp_incoming_calls()*
{opts} (table) options to pass to the picker

Options: ~
{fname_width} (number) defines the width of the filename section
(default: 30)
{show_line} (boolean) show results text (default: true)
{trim_text} (boolean) trim results text (default: false)
{fname_width} (number) defines the width of the filename section
(default: 30)
{show_line} (boolean) show results text (default: true)
{trim_text} (boolean) trim results text (default: false)
{file_encoding} (string) file encoding for the previewer


builtin.lsp_outgoing_calls({opts}) *telescope.builtin.lsp_outgoing_calls()*
Expand All @@ -1452,10 +1467,11 @@ builtin.lsp_outgoing_calls({opts}) *telescope.builtin.lsp_outgoing_calls()*
{opts} (table) options to pass to the picker

Options: ~
{fname_width} (number) defines the width of the filename section
(default: 30)
{show_line} (boolean) show results text (default: true)
{trim_text} (boolean) trim results text (default: false)
{fname_width} (number) defines the width of the filename section
(default: 30)
{show_line} (boolean) show results text (default: true)
{trim_text} (boolean) trim results text (default: false)
{file_encoding} (string) file encoding for the previewer


builtin.lsp_definitions({opts}) *telescope.builtin.lsp_definitions()*
Expand All @@ -1467,14 +1483,15 @@ builtin.lsp_definitions({opts}) *telescope.builtin.lsp_definitions()*
{opts} (table) options to pass to the picker

Options: ~
{jump_type} (string) how to goto definition if there is only one
and the definition file is different from the
current file, values: "tab", "split",
"vsplit", "never"
{fname_width} (number) defines the width of the filename section
(default: 30)
{show_line} (boolean) show results text (default: true)
{trim_text} (boolean) trim results text (default: false)
{jump_type} (string) how to goto definition if there is only one
and the definition file is different from
the current file, values: "tab", "split",
"vsplit", "never"
{fname_width} (number) defines the width of the filename section
(default: 30)
{show_line} (boolean) show results text (default: true)
{trim_text} (boolean) trim results text (default: false)
{file_encoding} (string) file encoding for the previewer


builtin.lsp_type_definitions({opts}) *telescope.builtin.lsp_type_definitions()*
Expand All @@ -1486,14 +1503,15 @@ builtin.lsp_type_definitions({opts}) *telescope.builtin.lsp_type_definitions()*
{opts} (table) options to pass to the picker

Options: ~
{jump_type} (string) how to goto definition if there is only one
and the definition file is different from the
current file, values: "tab", "split",
"vsplit", "never"
{fname_width} (number) defines the width of the filename section
(default: 30)
{show_line} (boolean) show results text (default: true)
{trim_text} (boolean) trim results text (default: false)
{jump_type} (string) how to goto definition if there is only one
and the definition file is different from
the current file, values: "tab", "split",
"vsplit", "never"
{fname_width} (number) defines the width of the filename section
(default: 30)
{show_line} (boolean) show results text (default: true)
{trim_text} (boolean) trim results text (default: false)
{file_encoding} (string) file encoding for the previewer


builtin.lsp_implementations({opts}) *telescope.builtin.lsp_implementations()*
Expand All @@ -1505,14 +1523,15 @@ builtin.lsp_implementations({opts}) *telescope.builtin.lsp_implementations()*
{opts} (table) options to pass to the picker

Options: ~
{jump_type} (string) how to goto implementation if there is only
one and the definition file is different from
the current file, values: "tab", "split",
"vsplit", "never"
{fname_width} (number) defines the width of the filename section
(default: 30)
{show_line} (boolean) show results text (default: true)
{trim_text} (boolean) trim results text (default: false)
{jump_type} (string) how to goto implementation if there is only
one and the definition file is different
from the current file, values: "tab",
"split", "vsplit", "never"
{fname_width} (number) defines the width of the filename section
(default: 30)
{show_line} (boolean) show results text (default: true)
{trim_text} (boolean) trim results text (default: false)
{file_encoding} (string) file encoding for the previewer


builtin.lsp_document_symbols({opts}) *telescope.builtin.lsp_document_symbols()*
Expand All @@ -1539,6 +1558,7 @@ builtin.lsp_document_symbols({opts}) *telescope.builtin.lsp_document_symbols()*
{ignore_symbols} (string|table) list of symbols to ignore
{symbol_highlights} (table) string -> string. Matches symbol
with hl_group
{file_encoding} (string) file encoding for the previewer


builtin.lsp_workspace_symbols({opts}) *telescope.builtin.lsp_workspace_symbols()*
Expand Down Expand Up @@ -1567,6 +1587,7 @@ builtin.lsp_workspace_symbols({opts}) *telescope.builtin.lsp_workspace_symbols()
{ignore_symbols} (string|table) list of symbols to ignore
{symbol_highlights} (table) string -> string. Matches symbol
with hl_group
{file_encoding} (string) file encoding for the previewer


builtin.lsp_dynamic_workspace_symbols({opts}) *telescope.builtin.lsp_dynamic_workspace_symbols()*
Expand All @@ -1589,6 +1610,7 @@ builtin.lsp_dynamic_workspace_symbols({opts}) *telescope.builtin.lsp_dynamic_wor
{ignore_symbols} (string|table) list of symbols to ignore
{symbol_highlights} (table) string -> string. Matches symbol
with hl_group
{file_encoding} (string) file encoding for the previewer


builtin.diagnostics({opts}) *telescope.builtin.diagnostics()*
Expand Down
Loading

0 comments on commit f97f4a0

Please sign in to comment.