James Trew
3b8399c273
fix: expand/normalize paths more selectively ( #2628 )
2024-03-19 22:55:27 +00:00
James Trew
c816406bd5
fix(builtin.lsp): bad check for jump_type option ( #2991 )
2024-03-18 15:39:57 +00:00
James Trew
5730b950d9
fix(builtin.lsp): extra No Name buffer opening with jump_type ( #2990 )
2024-03-18 13:41:56 +00: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
James Trew
8cd58c6e81
fix(lsp): incoming/outgoing_call range locations ( #2985 )
...
Previous implementation uses the incorrect lsp result fields for
generating call site locations resulting in incomplete and incorrect
results.
2024-03-18 01:09:56 +00:00
fcying
04dfe370b0
fix: remove duplicate lazyloaded items in colorscheme ( #2951 )
2024-03-18 00:28:10 +00:00
0x7a7a
e9e01d6998
fix: select correct results row with sorting_strategy=ascending ( #2986 )
2024-03-15 20:16:51 +00:00
Miguel Ángel
67c598fdd4
docs(readme): clean up command example ( #2984 )
2024-03-14 18:20:41 +00:00
Simon Hauser
b323abeb4b
doc: release of 0.1.6 ( #2982 )
2024-03-13 09:04:46 +01:00
Vurtune
7472420f87
fix(action.toggle_prompt_position): add fallback old position ( #2974 )
...
`action_layout.toggle_prompt_position` old_pos deals with nil value at first declaration when prompt_position is set to top in flex layout_strategy
2024-03-07 22:10:20 +00:00
James Trew
dc1ea28cc2
Revert "fix(picker): actually set prompt win to text wrap ( #2930 )" ( #2967 )
...
This reverts commit 52190bd8f9 .
2024-03-04 06:59:31 +01:00
Jan Steinke
13c1436932
feat(previewer): use treesitter for highlights, regex fallback ( #2971 )
...
* don't force regex highlighting
* forwards opts
2024-03-03 22:23:28 +00:00
James Trew
aa83606299
fix(config): set default cache_picker.ignore_empty_prompt to false ( #2962 )
2024-03-01 18:09:04 +00:00
Pou Yan
5f5fc3aa75
fix(picker): wrap vim.fn.expand cword in pcall to avoid Vim:E348 ( #2961 )
...
* fix(picker): wrap vim.fn.expand cword in pcall to avoid Vim:E348: No string under cursor
* run stylua
---------
Co-authored-by: James Trew <j.trew10@gmail.com >
2024-02-29 11:59:47 +00:00
James Trew
d5c4d98563
doc(config): fix default for cache_picker.ignore_empty_prompt ( #2957 )
2024-02-28 01:00:20 +00:00
Liu
2e1e382df4
feat(action): add type into qf entry when calling entry_to_qf function ( #2897 )
2024-02-24 15:24:24 +01:00
Damjan 9000
6868df51d2
feat(bultin.buffer): add select_current option ( #2918 )
2024-02-24 15:21:25 +01:00
James Trew
52190bd8f9
fix(picker): actually set prompt win to text wrap ( #2930 )
2024-02-24 15:12:39 +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
955e50dfed
feat(git_files): support emoji/unicode in filenames ( #2943 )
...
Pass `core.quotepath=false` to achieve this.
Could alternatively pass `-z` but that uses `\0` line termination and
complicates things.
Closes #2900
2024-02-24 01:28:29 +00:00
James Trew
fa81a4b133
fix(picker): prevent status text from hiding prompt ( #2936 )
...
There's a limitation with extmark's `right_align` virtual text and how
it handles side scrolling. This causes text entered to be hidden behind
the virtual text rather than begin the side scroll.
An issue is opened upstream https://github.com/neovim/neovim/issues/27540
But this could take a while before it's fixed as it's considered
`complexity:high`.
This PR adds a temporary workaround of just hiding the status text if the
prompt is long enough to interfere with it.
2024-02-24 01:10:33 +00:00
James Trew
12e42a3625
fix(current_buffer_fuzzy_find): error on select ( #2942 )
...
Previous implementation of placing the cursor on the first column of the
highlight failed to take into account that the highlighter can return
more than one data structure.
2024-02-24 01:08:59 +00:00
James Trew
a5b69afa48
refactor(lsp): consolidate some picker jump logic ( #2935 )
2024-02-23 03:15:55 +00:00
Pedro Ferrari
b744cf5975
fix(git_branch): previewer commit hash dynamic highlighting ( #2921 )
...
* Fix highlight of commit hash in git branches preview
* Update lua/telescope/previewers/buffer_previewer.lua
Co-authored-by: James Trew <66286082+jamestrew@users.noreply.github.com >
---------
Co-authored-by: James Trew <66286082+jamestrew@users.noreply.github.com >
2024-02-17 01:44:31 +00:00
Anton Kastritskii
45d61cc8da
fix(builtin.current_buffer_fuzzy_find): manually go through highlighted chars to pick smallest one ( #2922 )
2024-02-15 13:54:21 +00:00
Anton Kastritskii
fac5da839e
feat(builtin.current_buffer_fuzzy_find): jump to first matched char ( #2909 )
...
* feat(builtin.current_buffer_fuzzy_find): jump to first matched char
* use highlighter to detect column to jump to
* replace default select
* handle non 0 based column index
* handle no highlight scenario
---------
Co-authored-by: James Trew <j.trew10@gmail.com >
2024-02-15 02:01:13 +00:00
Tyler Miller
eb88dc6434
feat(builtin.autocommands): support jumping to lua callback src ( #2916 )
2024-02-14 03:00:33 +00:00
James Trew
0f865f17af
fix(action): horizontal scroll after preview toggling ( #2915 )
2024-02-09 02:38:30 +00:00
Marco De Donno
236083884c
fix: do not alter jumplist when jumping to a line in a file ( #2910 )
2024-02-04 21:37:33 +00:00
ALX99
7b5c5f56a2
docs(developers): fix incorrect file paths ( #2902 )
2024-02-01 03:54:50 +00:00
rjooske
e54fbf4ab2
fix(previewer): buffer previews for term not initially scrolled ( #2899 )
2024-01-29 18:11:46 +00: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
atusy
301505da4b
fix(previewer): buffer_previewer_maker now receives all necessary opts everywhere ( #2833 )
2024-01-23 23:36:00 +01: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
20efb38649
docs(contrib): update contribution guide ( #2879 )
2024-01-21 23:07:28 +01:00
James Trew
0902bb39eb
fix(git_status): support path_display ( #2881 )
2024-01-21 01:50:21 +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
Sebastian Lyng Johansen
b4befa1c2f
fix: fallback to filetype for get_lang for treesitter highlighting ( #2867 )
2024-01-18 11:43:26 +01:00
James Trew
43cabe5327
docs: update CONTRIBUTING.md ( #2876 )
2024-01-18 04:18:33 +00:00
Arne Van Maele
da8b3d4859
feat(builtin.oldfiles): support file location opening ( #2863 )
2024-01-12 03:53:31 +00:00
James Trew
d8129bf9f0
fix(pickers): when no lnum given, don't set entry.lnum ( #2865 )
...
Fixes couple of regressions from #2791 when no line number info is given
in the prompt (eg. `file.txt` rather than `file.txt:10`).
Both issues stemming from the fact that when no line number info is
given, the `entry.lnum` was set to `0`. `entry.lnum` is 1-index.
- Sending results to quickfix would send faulty results (closes #2864 )
- Will no open the file on the correct (previous) line number
For this, setting the lnum to 1 is still undesirable since this
overwrites the lnum priority handling in the `select` action.
2024-01-12 03:35:52 +00:00
James Trew
b3ff5f3320
fix(builtin.oldfiles): cwd matching with special characters ( #2860 )
...
`vim.fn.matchstrpos({expr}, {pat})` doesn't handle all characters well
since the pattern (cwd path in this case) is used as a regex pattern.
2024-01-11 02:02:29 +00:00
James Trew
5550bbb1b6
fix(builtin.marks): normalize mark path ( #2859 )
2024-01-11 01:38:09 +00:00
JD
4367e05c06
fix(builtin)!: quickfix entry maker does not used fixed width for file ( #2842 )
2024-01-09 10:14:24 +01:00
taeruh
03681adde1
fix(builin.grepstring): use 'normal!' instead of 'normal' ( #2852 )
2024-01-09 09:39:44 +01:00
Dmitriy Kovalenko
0bf09d05ab
feat: Support Line Column in file pickers ( #2791 )
...
This implements a experimental interface for allowing prompts like this `file.txt:3:4`. It is already enabled on default for `find_files` and `git_files`.
Be wary of breaking changes for the interface if you plan to manually enable it.
2024-01-09 09:35:26 +01:00
James Trew
87e92ea31b
chore(debounce): update type annotations to use LuaCATS ( #2848 )
2024-01-04 16:24:19 +00:00