Commit Graph
154 Commits
Author SHA1 Message Date
James Trew 2768d5e921 feat(previewer): show unwritten buffer previewers for some pickers
Use actual buffer contents for buffer previewers for some pickers
(buffers, treesitter, current_buffer_fuzzy_find, for starters). Not
to be confused with reusing buffers for preview buffers.

This lets users view previews of buffers with unwritten changes. For
treesitter and current_buffer_fuzzy_find, not showing actual buffer
content is arguably a bug considering the finder operates over the
buffer (written or not). So there are instances where you can search
over unwritten content in the buffer only to see an outdated, written
only content in the preview.
2024-07-24 20:29:25 -04:00
James TrewandGitHub 4c96370cf9 fix(make_entry): improve filename_first support (#3140)
Few pickers with entry makers that relied on `entry_display.create` were
not properly passing the highlight table returned by `transform_path`.
This made the `filename_first` `path_display` option not work as
expected for these pickers.
2024-05-27 01:50:31 +00:00
Max JendrukandGitHub 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 TrewandGitHub ccaeeb5af5 fix(builtin.buffers): previews with specified cwd option (#3111)
Currently, the buffer name is normalized to the `cwd` option value.
This buffer name is then used as the filename, which is used as the file
path for the previewer. But if the `cwd` value is not the actual cwd,
the buffer path can no longer be found by the previewer (relative to the
true cwd).

This is fixed by adding a `path` value to the entry that's the full path
of the buffer. The previewer will then use this full path to find the
file to preview.
2024-05-17 02:55:28 +00:00
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 TrewandGitHub 3b8399c273 fix: expand/normalize paths more selectively (#2628) 2024-03-19 22:55:27 +00:00
LiuandGitHub 2e1e382df4 feat(action): add type into qf entry when calling entry_to_qf function (#2897) 2024-02-24 15:24:24 +01:00
Tyler MillerandGitHub eb88dc6434 feat(builtin.autocommands): support jumping to lua callback src (#2916) 2024-02-14 03:00:33 +00:00
James TrewandGitHub 0902bb39eb fix(git_status): support path_display (#2881) 2024-01-21 01:50:21 +00:00
JDandGitHub 4367e05c06 fix(builtin)!: quickfix entry maker does not used fixed width for file (#2842) 2024-01-09 10:14:24 +01:00
James TrewandGitHub e0651458f2 fix(builtin.keymaps): escape newline chars in desc (#2832)
closes #2827
2023-12-27 17:21:05 +00:00
blue pitayaandGitHub dc7f25c810 add 'full' for line_width in diagnostics options (#2452)
* add 'full' for line_width in diagnostics options

* lowercase documentation entry and change error notify method

* moved line_width options checking
2023-09-03 19:15:21 +00:00
James TrewandGitHub d2e17ba18a Revert "Fix tagrelative option not considered in builtin.tags (#2583)" (#2629)
This reverts commit 6074847b6e due to
performance regression.
2023-08-01 00:22:53 +00:00
James TrewandGitHub 7bb2fcecdc Revert "expand paths more smartly (#2599)" (#2615)
This reverts commit f52ea4061d.
2023-07-21 21:50:44 -04:00
James TrewandGitHub f52ea4061d expand paths more smartly (#2599) 2023-07-21 22:12:29 +00:00
6074847b6e Fix tagrelative option not considered in builtin.tags (#2583)
* Fix tagrelative option not considered in builtin.tags

* Fix wrong notify name

* ctags filtering with grep or rg and normalize path

* pass stylua check

---------

Co-authored-by: James Trew <j.trew10@gmail.com>
2023-06-25 19:16:15 +00:00
James TrewandGitHub ffe35cb433 fix(live_grep/grep_string): support non-utf8 patterns (#2570) 2023-06-21 21:25:35 +00:00
Simon HauserandGitHub 42267407ae fix(actions): which_key after mappings rework (#2556) 2023-06-08 23:10:26 +02:00
James TrewandGitHub c8b65238e8 fix: previewers & entry maker file encoding (#2430) 2023-05-24 11:49:38 +02:00
James TrewandGitHub 106662e056 feat(diagnotics): add disable_coordinates option (#2477) 2023-05-24 11:05:10 +02:00
Folke LemaitreandGitHub 057ee0f878 fix: icon highlights (broken on nightly) (#2522) 2023-05-23 14:31:04 +02:00
James TrewandGitHub c20d4fb592 fix: icon hl width for various pickers (#2450) 2023-04-09 10:04:20 +02:00
莊喬andGitHub b0395c2882 fix: avoid eval "= directly in builtin registers picker (#2347)
When "= contains expression not ought to be run in current context, the
`getreg('=')` raises error.

For example `:put =foo` (where `foo` is undefined) then open registers
picker it fails. Also #2228.

Now specify second arg to `getreg` to get register expr (instead of
"evaluated" result) as content, like what `:registers` command displays.

This has behavior change, if user still want to see/paste the
evaluated result, a customized action will be needed.
2023-02-19 11:08:46 +01:00
Yuta KatayamaandGitHub abba036478 fix: rename ts_utils.get_node_range -> vim.treesitter.get_node_range (#2376) 2023-02-19 10:40:59 +01:00
Simon HauserandGitHub 203bf56091 Revert "feat(git): git_commits shows the current branch graph (#2288)" (#2358)
This reverts commit 01d92285ef.
2023-01-31 08:24:16 +01:00
James TrewandGitHub 053f2303c4 docs: proof-read edits (#2311) 2023-01-22 09:57:53 +01:00
Jonas StrittmatterandGitHub b24fdfdb25 fix: correctly parse filenames with special chars in git_status (#2296) 2023-01-06 12:04:15 +01:00
tzacharandGitHub c571d96fe5 fix: do not use nvim_buf_line_count on unloaded buffers (#2261) 2023-01-06 11:58:16 +01:00
Tsakiris TryfonandGitHub a606bd10c7 docs: fix typos/wording (#2283) 2022-12-28 14:49:57 +01:00
01d92285ef feat(git): git_commits shows the current branch graph (#2288)
Co-authored-by: Cyan Joeng <cyan.joeng@gmail.com>
2022-12-28 15:43:35 +03:00
278c797b58 fix(builtin.live_grep): add spacer ":" even when coordinates disabled (#2275)
* fix(builtin.live_grep): add spacer ":" even when coordinates disabled

* fix docgen

Co-authored-by: Simon Hauser <Simon-Hauser@outlook.de>
2022-12-21 08:53:29 +01:00
AntonandGitHub 22e13f6f69 fix(builtin.commands): no preview for multiline description commands (#2244) 2022-12-02 12:04:45 +01:00
zbqandGitHub 3c2e5fb23e feat: add configuration to fix encoding of output of find_command in find_files (#2232) 2022-11-28 22:41:37 +01:00
Xavier YoungandGitHub 4d77743a8e feat(builtin.keymaps): display noremap/buffer indicators and add lhs filter (#2246) 2022-11-27 20:04:07 +01:00
Simon HauserandGitHub 9cf465894a fix: rg invert and files-with-matches res line parsing (#2208) 2022-10-25 21:22:17 +02:00
Nghia Le MinhandGitHub f174a0367b feat(diagnostics): change highlight groups to DiagnosticSign... (#2194) 2022-10-09 09:01:36 +02:00
Tushar KuntawarandGitHub 76ea9a898d works with register name and content (#2178) 2022-09-30 19:29:25 +02:00
Tushar KuntawarandGitHub 2428953db3 fix: builtin register picker better sorting (#2175) 2022-09-27 21:17:11 +02:00
Simon HauserandGitHub 524c4eb7fb fix: more autocmds desc fixes (#2049) 2022-07-07 22:38:28 +02:00
Simon HauserandGitHub 9b3afe51c4 fix: autocmd, show desc if available (#2046) 2022-07-07 16:45:32 +02:00
Simon HauserandGitHub 30f2a367f2 feat(grep_string): invert_match for search="", removing empty lines (#2040) 2022-07-06 20:38:51 +02:00
Charles MoscofianandGitHub 6ea106329a fix: path_display hidden for make_entry.gen_from_quickfix (#2038) 2022-07-04 21:38:10 +02:00
julianfandSimon Hauser a0a038170d docs: make_entry and entry_display 2022-07-01 16:59:10 +02:00
TJ DeVriesandSimon Hauser 8f56fede21 feat: Add entry_index for entry_makers
cleanup
2022-07-01 16:58:42 +02:00
Simon Hauser 1ba967f84e fix: truncate for builtin.buffers
fix #2022
2022-06-30 14:29:57 +02:00
Dane SummersandSimon Hauser db4635bddf fix(current_buffer_tags): tag-relative=never (#1970) 2022-06-30 14:01:51 +02:00
Simon HauserandSimon Hauser 77e2b8ceea chore: cleanup autocmd builtin (#1947) 2022-06-30 14:01:51 +02:00
838c32d6a8 refactor: make_entry more consistent (#1410)
drops `ignore_filename`, use `path_display= { "hidden" }`

Co-authored-by: Simon Hauser <Simon-Hauser@outlook.de>
2022-06-30 14:01:50 +02:00
Simon HauserandSimon Hauser 83b6cadb2c break: deprecate utils.get_default utils.if_nil (#1545) 2022-06-30 14:01:49 +02:00
Simon HauserandSimon Hauser 5510587ff4 feat(vim_options): show scope information in display (#1956)
Also make type, scope and value searchable
2022-06-30 14:01:49 +02:00