Commit Graph
137 Commits
Author SHA1 Message Date
James TrewandSimon Hauser 2e5f7ae754 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.

(cherry picked from commit ccaeeb5af5)
2024-05-20 11:40:50 +02:00
James TrewandSimon Hauser d5fe96ec8a fix: expand/normalize paths more selectively (#2628)
(cherry picked from commit 3b8399c273)
2024-05-20 11:10:12 +02:00
James TrewandSimon Hauser 5150bc2693 fix(git_status): support path_display (#2881)
(cherry picked from commit 0902bb39eb)
2024-03-06 11:07:18 +01:00
James TrewandSimon Hauser 42bbf5a481 fix(builtin.keymaps): escape newline chars in desc (#2832)
closes #2827

(cherry picked from commit e0651458f2)
2024-03-06 10:40:52 +01:00
James TrewandSimon Hauser 50e942530e fix(live_grep/grep_string): support non-utf8 patterns (#2570)
(cherry picked from commit ffe35cb433)
2023-09-05 15:59:32 +02:00
Simon Hauser 776b509f80 fix(actions): which_key after mappings rework (#2556)
(cherry picked from commit 42267407ae)
2023-06-09 11:28:32 +02:00
James TrewandSimon Hauser f97f4a04f7 fix: previewers & entry maker file encoding (#2430)
(cherry picked from commit c8b65238e8)
2023-05-24 17:08:36 +02:00
Folke LemaitreandSimon Hauser 1c951e27e1 fix: icon highlights (broken on nightly) (#2522)
(cherry picked from commit 057ee0f878)
2023-05-24 17:06:01 +02:00
James TrewandSimon Hauser 54fc54fdd3 fix: icon hl width for various pickers (#2450)
(cherry picked from commit c20d4fb592)
2023-04-09 17:50:20 +02:00
莊喬andSimon Hauser 996eb191bf 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.

(cherry picked from commit b0395c2882)
2023-02-19 14:09:48 +01:00
Yuta KatayamaandSimon Hauser 9c16730e9b fix: rename ts_utils.get_node_range -> vim.treesitter.get_node_range (#2376)
(cherry picked from commit abba036478)
2023-02-19 14:09:38 +01:00
James TrewandSimon Hauser 0077389133 docs: proof-read edits (#2311)
(cherry picked from commit 053f2303c4)
2023-01-22 10:09:23 +01:00
Jonas StrittmatterandSimon Hauser 48a77baffb fix: correctly parse filenames with special chars in git_status (#2296)
(cherry picked from commit b24fdfdb25)
2023-01-06 14:35:46 +01:00
tzacharandSimon Hauser e800aac4fc fix: do not use nvim_buf_line_count on unloaded buffers (#2261)
(cherry picked from commit c571d96fe5)
2023-01-06 14:35:24 +01:00
Tsakiris TryfonandSimon Hauser 7408286e67 docs: fix typos/wording (#2283)
(cherry picked from commit a606bd10c7)
2023-01-06 14:35:17 +01:00
Luke KershawandSimon Hauser bdb0cd51ff 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>
(cherry picked from commit 278c797b58)
2023-01-06 14:31:47 +01:00
AntonandSimon Hauser a837cbdbe6 fix(builtin.commands): no preview for multiline description commands (#2244)
(cherry picked from commit 22e13f6f69)
2023-01-06 14:31:28 +01:00
Simon Hauser 8944b48f21 fix: rg invert and files-with-matches res line parsing (#2208)
(cherry picked from commit 9cf465894a)
2023-01-06 14:29:21 +01:00
Nghia Le MinhandSimon Hauser c0894883fb feat(diagnostics): change highlight groups to DiagnosticSign... (#2194)
(cherry picked from commit f174a0367b)
2023-01-06 14:28:12 +01:00
Tushar KuntawarandSimon Hauser b206cef4fe works with register name and content (#2178)
(cherry picked from commit 76ea9a898d)
2023-01-06 14:27:04 +01:00
Tushar KuntawarandSimon Hauser c640176e95 fix: builtin register picker better sorting (#2175)
(cherry picked from commit 2428953db3)
2023-01-06 14:26:07 +01: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
Simon HauserandSimon Hauser 4482c2b551 chore: cleanup vim options (#1946) 2022-06-30 14:01:48 +02:00
pjmtdwandGitHub 2e421ef02d fix: get mark list from opts.bufnr instead of using :marks (#1935)
Should fix marks when going through builtin.builtin
2022-05-15 22:00:01 +02:00
fdschmidt93andGitHub 85239d9c3e feat(builtin.keymaps): show lua fn name if available (#1929) 2022-05-09 11:08:53 +02:00
Michael MavesandGitHub 85d95dfddd fix(builtin.tags): custom filename width (#1842) 2022-05-04 22:13:40 +02:00
Chinmay DalalandGitHub 280c4e3037 fix(treesitter): use upstream get_node_text() instead of nvim-treesitter's deprecated one (#1905) 2022-05-01 09:45:26 +02:00
rowarioandGitHub 32505ece72 feat: added trim option to make_entry.gen_from_quickfix (#1838) 2022-04-18 09:23:07 +02:00
TomandGitHub d331433ed8 fix(grep): make filename parser non-greedy (#1785)
To protect against content variation including colon / number
combinations
2022-03-11 10:28:32 +01:00
Simon HauserandGitHub 234066f875 fix: man_pages previewer, respecting MANPATH and apropos output parsing (#1764)
- introducing putils writer and use it rather than using PAGER env var
- introducing env for lua/telescope/_.lua job interface
  - to respect MANPATH (and PATH just in case)
- fix for apropos output parsing might return e.g. `alacritty, Alacritty`
  We need to split on first `,`
2022-03-10 13:48:40 +01:00
James TrewandGitHub 206e71d133 fix: add opts.bufnr and opts.winnr to builtin picker (#1706) 2022-02-14 17:39:58 +01:00
Luke KershawandGitHub c1b9dab300 fix: handle filenames with colons in live_grep (#1609) 2022-01-16 16:54:51 +01:00
daangoossens22andGitHub d173740bb4 feat: make results pane of builtin keymaps more readable (#1684) 2022-01-14 21:13:32 +01:00
Simon HauserandGitHub 56325fefb2 feat: migrate to Telescope diagnostics using vim.diagnostic (#1553) 2021-12-10 17:49:06 +01:00
Farbod Salamat-ZadehandGitHub 6b1579741a fix: git stash entry formatting (#1452) 2021-12-06 21:20:37 +01:00
Simon HauserandGitHub 27294d73e4 fix: regression with grep builtins (#1548) 2021-12-03 17:57:28 +01:00
Luke KershawandGitHub b50b364ae1 fix: check for Windows drive letter when parsing vimgrep (#1494) 2021-12-03 16:29:20 +01:00
Daniel KempkensandGitHub aa41912ef8 fix: Remove symbol_msg substitution (#1525)
Because Elixir source code can contain `|`, the removed substitution
sometimes broke `lsp_document_symbols()`.

Example:

```
E5108: Error executing lua ...packer/start/telescope.nvim/lua/telescope/make_entry.lua:392: attempt to concatenate local 'symbol_name' (a nil value)
stack traceback:
        ...packer/start/telescope.nvim/lua/telescope/make_entry.lua:392: in function 'entry_maker'
        ...scope.nvim/lua/telescope/finders/async_static_finder.lua:17: in function 'new_table'
        ...acker/start/telescope.nvim/lua/telescope/builtin/lsp.lua:137: in function 'v'
        ...acker/start/telescope.nvim/lua/telescope/builtin/lsp.lua:500: in function 'v'
        ...cker/start/telescope.nvim/lua/telescope/builtin/init.lua:496: in function <...cker/start/telescope.nvim/lua/telescope/builtin/init.lua:467>
        ...ck/packer/start/telescope.nvim/lua/telescope/command.lua:179: in function 'run_command'
        ...ck/packer/start/telescope.nvim/lua/telescope/command.lua:241: in function 'load_command'
        [string ":lua"]:1: in main chunk
```

Closes #874
2021-12-01 18:27:53 +01:00
Luke KershawandGitHub 414a7a5b44 feat: extend functionality of entry_display.create (#1408)
* feat: extend functionality of `entry_display.create`

- now allows passing functions or fractional values to `width` option

* refactor: cache `width` instead of results window size

* feat: use new `width` functionality for more entry makers
2021-11-27 16:00:24 +00:00