Commit graph

230 commits

Author SHA1 Message Date
James Trew
10b8a82b04
docs(previewer): term_preview env option (#3226)
* docs(previewer): term_preview `env` option

* [docgen] Update doc/telescope.txt
skip-checks: true

---------

Co-authored-by: Github Actions <actions@github>
2024-07-26 03:29:57 +00:00
OKURA Masafumi
79552ef848
docs: mention default value of follow option for find_files (#3209)
https://github.com/nvim-telescope/telescope.nvim/blob/master/lua/telescope/builtin/__files.lua#L298

It seems the default value is `false`, and unlike other options, the default value of `follow` option is not mentioned.
2024-07-20 14:11:14 +00:00
James Trew
7bd2f9b72f
docs: update layout_strategies config options (#3188)
* docs: update layout_strategies config options

* [docgen] Update doc/telescope.txt
skip-checks: true

---------

Co-authored-by: Github Actions <actions@github>
2024-06-27 03:27:53 +00:00
James Trew
979bfa2c44
feat(builtin.buffers): enhance and bind delete_buffer action (#3145)
* feat(builtin.buffers): enhance and bind `delete_buffer` action

* change default bind and add docs

* [docgen] Update doc/telescope.txt
skip-checks: true

---------

Co-authored-by: Github Actions <actions@github>
2024-06-15 14:24:18 +00:00
Chris Grieser
77cab9ad63
feat(builtin.colorscheme): add option ignore_builtins (#3155) 2024-06-15 15:29:34 +02:00
James Trew
127159a52f
fix(lsp.reference): single reference direct jump (#3137)
* fix(lsp.reference): single reference direct jump

* [docgen] Update doc/telescope.txt
skip-checks: true

---------

Co-authored-by: Github Actions <actions@github>
2024-05-29 01:34:22 +00:00
Xavier Young
2df52609a1
feat(picker): allow appending original window <cWORD>, <cfile> and cursor line to prompt (#3134) 2024-05-27 23:02:25 +02:00
Max Jendruk
05f4d6f0a9
feat(builtin.treesitter): add symbol_width opt (#3105)
* Add options to customize length of symbols and line numbers for gen_from_treesitter

* Revert adding symbol_type_width option

* Add docs and type hint
2024-05-23 01:50:14 +00:00
James Trew
6f6bb80655
Revert "refactor(lsp): simplify list_to_jump (#3099)" (#3101)
This reverts commit e9be6bb7a7.
2024-05-14 14:34:00 +00:00
James Trew
e9be6bb7a7
refactor(lsp): simplify list_to_jump (#3099)
* refactor(lsp): simplify `list_to_jump`

* [docgen] Update doc/telescope.txt
skip-checks: true

---------

Co-authored-by: Github Actions <actions@github>
2024-05-14 04:10:11 +00:00
James Trew
fac83a556e
fix(previewer): improve binary mime type check (#3083)
* fix(previewer): improve binary mime type check

Problem: mime type for a ts/js file can either return `text/plain` or
`application/javascript` based on the contents of the file.
Previously, this meant `application/javascript` would be considered
"possibly binary". This, in conjunction with how `vim.filetype.match`
does not give a result for a filename that ends in `.ts`, would lead to
a typescript file taking the path of `check_mime_type` and eventually
`mime_hook`.

Solution: Include `application/javascript` as a non-binary file type
during mime type check.

* [docgen] Update doc/telescope.txt
skip-checks: true

---------

Co-authored-by: Github Actions <actions@github>
2024-05-03 01:34:49 +00:00
James Trew
7d1698f3d8
fix(utils): transform_path always return styling (#3067)
* fix(utils): transform_path always return styling

* fix docs/type hints

* [docgen] Update doc/telescope.txt
skip-checks: true

---------

Co-authored-by: Github Actions <actions@github>
2024-04-21 02:14:52 +00:00
Anton
a4432dfb9b
feat(entry_maker): add 'filename_first' option for path_display (#3010)
* Initial commit

* Fixes issue with find_files where devicons where disabled

* Fixes issue with vimgrep where devicons where disabled

* Fixes trailing space for path with only a file name

* Adds test for reverse path_display

* Refactors reverse to filename_first

* Adds tests

* Fixes highlighting

* Fixes linting issues

* Uses trim function

* Fixes issue with highlighting

* Moves local function to utils

* Removes redundant code

* Adds highlighting for gen_from_buffer

* fix formatting

---------

Co-authored-by: alycklama <>
Co-authored-by: James Trew <j.trew10@gmail.com>
2024-04-20 04:21:35 +00:00
James Trew
d00d9df48c
fix(which_key): close window on mouse click action (#3053)
* fix(which_key): close window on mouse click action

`nvim_buf_delete` is not allowed during text change or window change.
Window switching with left mouse click was leading to race
condition/error.

* [docgen] Update doc/telescope.txt
skip-checks: true

---------

Co-authored-by: Github Actions <actions@github>
2024-04-16 01:03:24 +00:00
James Trew
4d4ade7f2b
build: rework ci tests to include windows (#3011) 2024-04-13 17:27:53 +02:00
James Trew
1fa3b801f0
docs(builtin.colorscheme): add colors option desc (#2989)
* docs(builtin.colorscheme): add `colors` option desc

* docgen plz
2024-03-18 02:05:26 +00:00
Damjan 9000
6868df51d2
feat(bultin.buffer): add select_current option (#2918) 2024-02-24 15:21:25 +01:00
Kushashwa Ravi Shrimali
e9fd72bdb8
feat: only cache picker if the prompt is non empty; support last non-empty search instead (#2817) 2024-02-24 15:05:48 +01:00
James Trew
2f3857c25b
feat(mappings): allowing passing desc to mappings (#2892) 2024-01-27 14:00:48 +01:00
Kobu
f1fd99ebfb
doc(action_state): improve description of action_state.get_current_line (#2895) 2024-01-27 13:52:55 +01:00
James Trew
1bfbb1fb5c
Revert "doc(layout_strategies): document shared options for bottom_pane" (#2893) 2024-01-25 03:56:32 +00:00
James Trew
36dce6261a
doc(layout_strategies): document shared options for bottom_pane (#2887)
* doc(layout_strategies): document shared options for `bottom_pane`

* [docgen] Update doc/telescope.txt
skip-checks: true

---------

Co-authored-by: Github Actions <actions@github>
2024-01-23 03:13:22 +00:00
James Trew
24778fd72f
feat(picker): allow appending original window cword to prompt (#2878)
* feat(picker): allow appending original window cword to prompt

* add default mapping and document

* [docgen] Update doc/telescope.txt
skip-checks: true

* add mapping to README

also format README

* oops

* [docgen] Update doc/telescope.txt
skip-checks: true

---------

Co-authored-by: Github Actions <actions@github>
2024-01-20 02:38:27 +00:00
Simon Hauser
9cf58f438f
fix(config)!: fallback to vim.o.winblend (#2861) 2024-01-18 11:45:02 +01:00
JD
4367e05c06
fix(builtin)!: quickfix entry maker does not used fixed width for file (#2842) 2024-01-09 10:14:24 +01:00
James Trew
fa4d663c8c
docs(git_status): add missing opt expand_dir (#2824)
* docs(git_status): add missing opt `expand_dir`

* [docgen] Update doc/telescope.txt
skip-checks: true

---------

Co-authored-by: Github Actions <actions@github>
2023-12-25 16:45:01 +00:00
Chen Lu
e4c62dedd7
feat(actions): add delete_mark (#2769)
* feat(actions): add delete_mark

* style(init.lua): fix formatting
2023-11-26 03:37:50 +00:00
James Trew
721cdcae13
chore: fix marks picker options (#2783)
* chore: fix marks picker options

* [docgen] Update doc/telescope.txt
skip-checks: true

---------

Co-authored-by: Github Actions <actions@github>
2023-11-15 03:47:37 +00:00
Hicro
060fedfdea
feat(lsp-jump-type): tab drop as new jump_type option for go-to LSP pickers (#2751) 2023-10-23 09:41:29 +02:00
Simon Hauser
fd00a0a269
chore: generate highlight_limit docs 2023-10-11 07:57:45 +02:00
James Trew
ffe90fac32
feat(current_buffer_fuzzy_find): results_ts_highlight option (#2722)
* feat(current_buffer_fuzzy_find): `results_ts_highlight` option

adds new option to the `current_buffer_fuzzy_find` picker
`results_ts_highlight` to enable/disable treesitter highlight for result
entries (default: true)

closes #2720

* [docgen] Update doc/telescope.txt
skip-checks: true

---------

Co-authored-by: Github Actions <actions@github>
2023-09-29 01:42:03 +00:00
Munif Tanjim
84d53dfdbe
feat(pickers): fully customizable layout (#2572) 2023-09-27 08:34:22 +02:00
James Trew
59812c26d8
docs(readme): update to latest tag version (#2700)
* docs(readme): update to latest tag version

* [docgen] Update doc/telescope.txt
skip-checks: true

---------

Co-authored-by: Github Actions <actions@github>
2023-09-14 02:23:21 +00:00
James Trew
f5363d3c2a
feat(diagnostics): add sort_by option (#2632)
* feat(diagnostics): add `sort_by` option

* [docgen] Update doc/telescope.txt
skip-checks: true

---------

Co-authored-by: Github Actions <actions@github>
2023-08-06 20:46:34 +00:00
Luis
22735947d8
feat: highlight range in grep buffer previewer (#2611) 2023-07-27 09:24:50 +02:00
James Trew
1228f3b15c
Revert "fix: preserve queued keys at picker launch (#2274)" (#2619)
* Revert "fix: preserve queued keys at picker launch (#2274) (#2618)"

This reverts commit f78d956901.

* [docgen] Update doc/telescope.txt
skip-checks: true

---------

Co-authored-by: Github Actions <actions@github>
2023-07-22 23:23:22 +00:00
Aaron Kollasch
e7e6492a2d
feat(git): Add bcommits_range picker (#2398)
* Filter bcommits by selection in visual mode

* Split bcommits_range into new picker

* Add option to run bcommits_range as operator

Starts operator-pending mode and shows commits in the range of lines
covered by the next text object or motion

* Rename range arguments to "first" and "last"

Can't use start/end, since end is an annoying keyword to use in lua
and start/stop doesn't fit as well

* Move operators functionality to new module

* Run bcommits if no range given to bcommits_range

* Make bcommits_range default to current line

Instead of calling bcommits

* Improve documentation of telescope.operators

* Add default value for last_operator

Default to a no-op callback

* Update bcommits_range for detached worktrees

See #2597

* Rename range arguments to "from" and "to"

* Move shared bcommits picker into single function
2023-07-22 21:35:52 +00:00
James Trew
2ea8dcd17b
feat(git): support detached working trees (#2597)
* feat(git): support detached working trees

closes #2595

* [docgen] Update doc/telescope.txt
skip-checks: true

* fix: use_file_path

---------

Co-authored-by: Github Actions <actions@github>
2023-07-14 17:12:03 +00:00
Nghia Le Minh
219584a6ef
fix(lsp_dynamic_workspace_symbols): add prefilter as per documentation (after to_fuzzy_refine) (#2584)
* fix(lsp_dynamic_workspace_symbols): add prefilter as per documentation (after to_fuzzy_refine)

* [docgen] Update doc/telescope.txt
skip-checks: true

* docs grammar

* [docgen] Update doc/telescope.txt
skip-checks: true

---------

Co-authored-by: Github Actions <actions@github>
Co-authored-by: James Trew <j.trew10@gmail.com>
2023-06-24 22:11:35 +00:00
Lucía Andrea Illanes Albornoz
5fff2a138b
Implements horizontal scrolling in previewer & results. (#2437)
* Implements horizontal scrolling in previewer & results.

* docs: update wrt. horizontal scrolling in previewer &  results
2023-06-24 19:17:55 +00:00
Simon Hauser
66b03e7740
feat!(previewer): replace plenary.filetype with vim.filetype.match (#2529) 2023-06-09 11:24:52 +02:00
Simon Hauser
6d3fbffe42 Revert "feat!: allow full height, width by resolving 1 as a percentage rather than absolute val (#2525)"
This reverts commit 066bda8ea4.
2023-05-25 07:44:39 +02:00
bn-peters
5b7cedd7f2
feat(builtin): implement filter for keymaps (#2462) 2023-05-24 14:23:08 +02:00
Simon Hauser
066bda8ea4
feat!: allow full height, width by resolving 1 as a percentage rather than absolute val (#2525)
this is technically a breaking change but i doubt anyone uses height/width 1 (absolute value). It makes more sense to treat 1 as 100%
2023-05-24 12:27:19 +02:00
James Trew
c8b65238e8
fix: previewers & entry maker file encoding (#2430) 2023-05-24 11:49:38 +02:00
William Henrotin
9f501680e5
feat: find git root from current buffer (#2435) 2023-05-24 11:36:37 +02:00
暮晨
6dec8cf723
feat(lsp): add 'reuse_win' for reuse window options (#2454) 2023-05-24 11:21:16 +02:00
James Trew
106662e056
feat(diagnotics): add disable_coordinates option (#2477) 2023-05-24 11:05:10 +02:00
Christian Clason
d8c5ed4e40
feat(ts)!: use upstream treesitter implementation (#2499)
bumps minimum required neovim version to 0.9, see `help telescope.changelog-2499`
2023-05-24 10:43:04 +02:00
James Trew
40c31fdde9
feat(previewer): add option for ls --short (#2486)
Co-authored-by: Github Actions <actions@github>
2023-05-16 09:02:09 +03:00