Commit Graph

77 Commits

Author SHA1 Message Date
Turiiya
bf1a25dbfe feat: search_file option for builtin fd command (#2029) 2022-07-01 22:10:31 +02:00
Simon Hauser
75deb22aa8 fix: crash in tags on enter for no results and random crash in previewer 2022-07-01 19:18:30 +02:00
Fabian David Schmidt
ef9137d85c feat: refine with new_table 2022-07-01 18:13:25 +02:00
Anton
bef86acb6c feat(rg): pass multiple globs to rg by default (#2003) 2022-06-30 14:01:51 +02:00
Simon Hauser
f6efef4c41 feat: find_command can be a function (#2000) 2022-06-30 14:01:51 +02:00
Antoine
15f6a0bb08 feat(tags): process tagfiles on the fly (#1989) 2022-06-30 14:01:50 +02:00
Jeremy Neal
8488cd5ac7 feat: no-ignore-parent shorthand option for find_files. (#1963) 2022-06-30 14:01:50 +02:00
Simon Hauser
83b6cadb2c break: deprecate utils.get_default utils.if_nil (#1545) 2022-06-30 14:01:49 +02:00
Reed Koser
b98b9a93c6 fix: grep_string crashes when string has newline (#2026)
Fixes the crash below by sanitizing the title to not include the
linebreak (replacing it by a "\n" string)

stack traceback:
        [C]: in function 'nvim_buf_set_lines'
        .../nvim/plugged/plenary.nvim/lua/plenary/window/border.lua:222: in function '__align_calc_config'
        .../nvim/plugged/plenary.nvim/lua/plenary/window/border.lua:266: in function 'new'
        ...are/nvim/plugged/plenary.nvim/lua/plenary/popup/init.lua:384: in function 'create'
        ...re/nvim/plugged/telescope.nvim/lua/telescope/pickers.lua:326: in function '_create_window'
        ...re/nvim/plugged/telescope.nvim/lua/telescope/pickers.lua:399: in function 'find'
        ...m/plugged/telescope.nvim/lua/telescope/builtin/files.lua:151: in function 'v'
        ...m/plugged/telescope.nvim/lua/telescope/builtin/files.lua:475: in function 'v'
        ...im/plugged/telescope.nvim/lua/telescope/builtin/init.lua:487: in function 'grep_string'

Fixes #2023
2022-06-30 12:09:36 +02:00
kylo252
3f3cba430e feat(live_grep): add glob and type filter shorthand opts (#1695) 2022-05-04 21:57:29 +02:00
Simon Hauser
b83d6d4711 fix (treesitter): kind column
fix #1811
2022-03-30 21:49:33 +02:00
ibhagwan
cf2d6d3428 fix (tags|btags): escape all special characters (#1806) 2022-03-26 10:29:34 +01:00
tami5
ef7b6ada6d feat: improve UX with vim.notify (#1763)
* fix(notify): don't report request on new line

* ref(notify): update message format

* ref(msgs): always quote values + decrease duplication

* fix(ci): undefined variables

* ref(actions): temporary silent actions.__index errors

* cleanup

* revert: panic effort, we continue to use error for those

Co-authored-by: Simon Hauser <Simon-Hauser@outlook.de>
2022-03-13 18:11:27 +01:00
i3Cheese
6b3728876f fix(find_files): follow with unix find command (#1787) 2022-03-12 16:11:37 +01:00
Slotos
2032f4316f fix(*grep): escape dot when not using regex (#1784) 2022-03-10 14:17:15 +01:00
Simon Hauser
1daf0917cf fix: treesitter picker with lua (defintions) (#1779) 2022-03-08 10:37:56 +01:00
James Trew
206e71d133 fix: add opts.bufnr and opts.winnr to builtin picker (#1706) 2022-02-14 17:39:58 +01:00
fdschmidt93
015a35626d break!: remove file_browser from builtins (#1453)
The file_browser now has been fully removed.

Please move to github.com/nvim-telescope/telescope-file-browser.nvim
for a more featureful extension that replaces the builtin file browser.
2022-01-11 22:00:31 +01:00
Simon Hauser
e8ef88bfcb fix(builtin.treesitter): make sure that kind is not nil
If kind is nil then prefilter throws an error
fix #1631
2022-01-09 19:03:53 +01:00
pedro757
f06dd06bb1 fix: support find_command along with shorthand options (#1642) 2022-01-06 22:45:09 +01:00
fdschmidt93
1d1da664eb chore: deprecation notice for builtin.file_browser (#1574)
`builtin.file_browser` will be removed in favor of `telescope-file-browser.nvim`.
Primary rationale for carving out the file browser to an extension:
- Faster development
- Very expansive picker with larger feature set than builtins
2021-12-29 13:10:40 +01:00
Simon Hauser
88437804e1 chore: remove dot at the beginning (#1552)
We added this for rg 13.0 release because it was needed but it doesnt
seem to be needed anymore. Weird

This might be due to some changes in neovim or due to changes to jobs
2021-12-27 09:51:41 +01:00
h0adp0re
82e3cc322a fix: current_buffer_fuzzy_find in vue files (#1561) 2021-12-06 15:17:58 +01:00
Simon Hauser
16b0188cf5 fix: current_buffer_fuzzy_find check if nvim-ts is okay before calling is_enabled 2021-12-05 08:19:23 +01:00
Simon Hauser
60a4ce080f fix: dont change highlights when using current_buffer_fuzzy_find (#1524)
this happens if parsers are installed but highlight is set to false.
So parsing the buffer with treesitter will automatically apply them to
the buffer but because treesitter highlighting is disabled it will
change the buffer. Its stupid and i dont know why you want parser
installed but highlighting disabled but whatever.

We just dont calculate highlights for people who have highlight set
to false
2021-12-03 14:46:53 +01:00
fdschmidt93
e77926a258 chore: reformat files.lua after stylua update (#1456) 2021-11-15 20:03:14 +01:00
Denis Cornehl
99a3988d6e fix: buitin.tags broke when tags-file was in wildignore (#1387)
regression from
6f829bf6bc333809dd97e532dbc88a7fcf297b02
https://github.com/nvim-telescope/telescope.nvim/pull/1122
2021-10-28 12:34:46 +02:00
Chase Colman
978366ba46 fix: add no more flags delimiter for ripgrep (#1217)
This matches the behavior of fzf, if a user needs to pass additional
arguments they can use additional_args or change vimgrep_arguments.
2021-09-12 11:37:04 +02:00
Dheepak Krishnamurthy
288f243387 Add word to prompt title for grep string (#1184) 2021-09-09 09:43:59 -04:00
Dhruv Manilawala
e6838a6289 fix(ts-highlighting): get hl name from the capture (#1166)
After this commit (2460f0a702), the `hl_cache` variable
stores the hl_ID instead of the group name.

Another way to get the hl name which is adopted from the method used
here `_get_hl_from_capture`:

    ```lua
    local hl = vim.treesitter.highlighter.hl_map[query.captures[id]]
    ```

But, as the method covers another case, we can directly use it.

I've also added the type guard so that, in the future, it does not
explode like it does now.

fixes: #1151
2021-08-25 22:21:17 +02:00
tami5
03c2b8f6bb refactor(pickers): remove additional fileopen (#1154)
unfinished work from #1122
2021-08-23 10:17:59 +03:00
Emilia Simmons
d8eeb0e4ac pickers(*): Add support for &tags (#1122) 2021-08-23 01:02:09 +03:00
TJ DeVries
a97af306c4 feat(performance): Major performance improvements using async v2 from @oberblastmeister (#987)
* start: Working w/ async jobs

* short circuit to using bad finder if you pass writer.
2021-08-20 11:11:24 -04:00
Nazeeh ElDirghami
ca195e32e0 feat: live_grep and grep_string function for additional opts (allow file mask) (#1017) 2021-08-04 09:07:04 +02:00
Lee Marlow
82f4d3028b feat: add no_ignore option to find_files (#1010)
Allow find_files to find files ignored by .gitignore
and other ignore files. This is supported by fd, rg, and fdfind.
2021-07-29 12:45:19 +03:00
Simon Hauser
79644ab677 chore: use stylua for formatting (#1040)
* chore: stylua job and config

* reformat with stylua
2021-07-23 11:42:37 -04:00
Daniel Imfeld
3f17192322 feat: add ^ and $ to characters handled by regex escape (#1007) 2021-07-17 16:27:14 +07:00
wongxy
0708120a84 fix: correct the prompt title (#1013) 2021-07-17 10:27:36 +02:00
anott03
df579bac42 refactor: move from telescope.path to plenary.path (#473)
This will deprecate telescope.path, we will remove it soon. Please move over to plenary.path

Co-authored-by: Simon Hauser <Simon-Hauser@outlook.de>
2021-07-14 19:25:00 +02:00
Luke Kershaw
a4896e5ef3 fix: builtin find_files, find command win32 check == 0 (#989)
- changes check for Windows OS, as 0 is truthy, so `not 0` and `not 1` are both `false`
2021-07-14 13:46:46 +02:00
Luke Kershaw
999fad2ce5 feat: add Windows where file finder command (#979) 2021-07-13 19:16:50 +01:00
caojoshua
d5a8e48aa6 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>
2021-07-08 10:30:44 +02:00
Simon Hauser
6aa66d9211 fix: ripgrep 13 2021-06-12 17:53:35 +02:00
the continium
4aa4590510 fix: search_dirs in builtin.grep_string (#897) 2021-06-06 19:39:09 +02:00
fdschmidt93
57ac8dcc3e feat: add prefiltering to treesitter picker (#879) 2021-05-31 09:39:21 +02:00
Ben Smith
e88864123b Docs for builtin pickers (#783) 2021-05-13 18:44:26 +00:00
Khalid
25a7ecc289 feat: add use_regex option to grep_string (#767) 2021-05-08 14:02:18 +02:00
Alex Fischer
ad30a7b085 fix: file browser navigate to parent directory on windows (#786) 2021-04-28 20:15:25 +02:00
Dhruv Manilawala
28ae702682 fix: use treesitter language name instead of ft if available (#801)
* fix: use treesitter language name if available

This will fix the problem where the filetype is different than the
treesitter lang name. Eg., filetyep -> "sh", langname -> "bash"

* refactor: use treesitter only if the query object is available

* refactor: ok -> parser_ok ;)
2021-04-28 10:29:28 -04:00
August Masquelier
f92b9b1fae fix: live_grep path appending with cwd when already absolute (#768) 2021-04-17 22:50:07 +03:00