Commit Graph

732 Commits

Author SHA1 Message Date
Luke Kershaw
e9743620ce fix: use string.format on builtin.resume error message (#1465) 2021-11-18 19:44:16 +01:00
TJ DeVries
9ac89ebf67 Fixes #1371
Force clearing the highlights while the picker is still open
2021-11-15 15:50:23 -05:00
fdschmidt93
e77926a258 chore: reformat files.lua after stylua update (#1456) 2021-11-15 20:03:14 +01:00
fdschmidt93
404d2b5f10 feat: allow changing results/prompt title & persisting multi on picker:refresh (#1451) 2021-11-15 17:58:43 +01:00
Luke Kershaw
729492406e feat: exclude option for shorten in path_display (#1429)
* feat: allow excluding positions for `shorten` in `path_display`

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

Co-authored-by: Github Actions <actions@github>
2021-11-14 09:37:15 +00:00
klausweiss
b2f16c788e fix: LSP code actions not working for some language servers (#1381) 2021-11-13 14:11:08 +01:00
Pranav Rao
3309526566 feat(worktrees): added support for bare repo git operations (#1370) 2021-11-13 14:09:47 +01:00
Desmond Chin
68308735c1 doc: fix typo in telescope.txt (#1431) 2021-11-13 13:50:53 +01:00
Luke Kershaw
bf77c5d2fa feat: results scrolling actions (#1436) 2021-11-13 11:15:07 +00:00
Zoltan Klinger
3d45c6c555 fix: typo in previewers documentation (#1450) 2021-11-13 08:52:08 +01:00
hungpt2702
f3ef592072 fix: actions.git_checkout_current_buffer calling deprecated method (#1439) 2021-11-10 14:18:02 +01:00
fdschmidt93
97842abb03 fix: revert buffers previewer (#1400)
* Reverts #1120 many issues arise (mru, highlighting, settings inheritance, ...) when previewing actual buffers
2021-11-04 07:55:32 +01:00
fdschmidt93
2097f11305 fix: deactivate binary ft detection for Win32 (#1413)
* Make `file` mime type detection for Windows users opt-in, as it caused issues when they had it
2021-11-04 07:32:02 +01:00
Julian Fricker
6652d4d555 feat: Full width select (#1403)
Can be changed back by setting 
telescope.setup {
  defaults = {
    hl_result_eol = false,
  }
}
2021-11-04 07:22:09 +01:00
Julian Fricker
6a8fbb53e0 breaking: bump nvim version requirement to 0.5.1 (#1406) 2021-11-04 07:20:17 +01:00
Simon Hauser
587a10d149 chore: remove a lot of deprecated stuff (#1399) 2021-11-01 20:30:10 +01:00
Simon Hauser
0caec3d6e4 Revert "break: changed the results window highlight to always be full width (#1312)" (#1398)
This reverts commit 3b9ac8edba.
2021-10-31 17:02:38 +01:00
Luke Kershaw
c08f95823d fix: check if caret is present before removal (#1390) 2021-10-31 15:52:09 +00:00
Julian Fricker
3b9ac8edba break: changed the results window highlight to always be full width (#1312)
Can be changed back by setting 
telescope.setup {
  defaults = {
    hl_result_eol = false,
  }
}
2021-10-29 18:57:41 +02:00
Luke Kershaw
02a02f7bcd fix: set preview titlehighlight when re-enabling preview (#1384) 2021-10-28 14:21:09 +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
Luke Kershaw
5809321290 feat: separate higlight for titles in picker windows (#1362)
- requires nvim-lua/plenary.nvim#260
2021-10-26 15:14:33 +01:00
Vsevolod
782d802d44 fix: missing check for negative index in cycle scrolling (#1372) 2021-10-24 16:01:18 +02:00
Simon Hauser
f31ef36293 fix: opts.git_command for files, commits, bcommits (#1374) 2021-10-24 08:30:31 +02:00
A. Schueler
09b0d87b9f fix: Exclude unlisted lsp buffers in oldfiles picker (#1219)
Files opened by LSPs are listed with a trailing `line 0` instead of a date like files opened by the user.
Use this behavior to filter out buffers that should not be displayed in oldfiles.
2021-10-24 08:22:56 +02:00
nickelc
a823ae8eb5 docs: fix typo in qflist_previewer's default value (#1363) 2021-10-24 08:20:08 +02:00
Luke Kershaw
f56222738b fix: always remove previous caret when change selection (#1364) 2021-10-21 10:46:32 +01:00
Simon Hauser
a0835edd86 fix: preview title key and a bug with dynamic_title (#1350) 2021-10-20 16:23:26 +02:00
Luke Kershaw
adfbd616c6 feat: recalculate picker layout on VimResized (#959)
* WIP: recalculate picker layout on `VimResized`

* refactor: `popup.resize` -> `popup.move`

* fix: scroll to the correct place after resize

* fix: update positioning in results buffer

* fix: completely redraw results buffer on resize

* fix: handle preview enable/disable

* fix: work with scrolling

* docs: add plan for `toggle_padding`

* refactor: factor out creation of picker windows

* refactor: pass highlights directly to popup_create

* refactor: remove lines update and factor out scroll repositioning

Co-authored-by: Github Actions <actions@github>
2021-10-20 11:06:10 +01:00
x1314aq
9cad3a4a5d fix(tags): wrong path separator on Windows (#1354)
the universal-ctags generates tag file in Unix path separator
even on Windows platform, this PR fix this.
2021-10-19 17:59:54 +02:00
Rafael Delboni
b5c63c6329 fix: Bug with nil action error (#1340)
only affects 0.5.1
2021-10-12 23:17:42 +02:00
fdschmidt93
c19eae901c feat: filtering for dynamic workspace symbols (#1336)
* enable `symbols` filtering opt for builtin.dynamic_workspace_symbols
2021-10-12 18:48:55 +02:00
fdschmidt93
45051df61b fix: loclist can have non current buf entries (#1333) 2021-10-12 14:42:41 +02:00
Zachary Churchill
3f45d64e9c feat: add gg and G to default mappings (#1325)
* feat: add `gg` and `G` to default mappings

* refactor: use action_state.get_current_picker

* docs: mention new default gg/G keymaps
2021-10-11 18:14:23 +02:00
Jean-Luc Bastarache
59f5873199 fix: highlighting when color_devicons=false (#1328) 2021-10-11 18:00:28 +02:00
Patrick Ziegler
ba41f0eeb1 fix: alias cwd_only and only_cwd option for buffers and oldfiles (#1316)
* Alias cwd_only and only_cwd option for builtins

Fixes #1199
Closes #1275
2021-10-09 15:40:08 +02:00
Simon Hauser
603f55dedf fix: processed count to exclude entries that got ignored in make_entry (#1323)
It doesnt make sense to count these. Most likely they were never shown.
Example: `man_pages` excludes pages from different sections. So you
filter for man pages and end up with like 5 entries and the counter
still says 1000. Not a good experience.
2021-10-09 15:34:22 +02:00
Jakub Łuczyński
917500dbe9 fix: check also fdfind in healthcheck (#1318)
Support different binary names when checking if fd is installed.
2021-10-09 15:34:08 +02:00
Simon Hauser
50e45f86d9 fix: scroll_strategy limit + sorting_strategy descending (#1322) 2021-10-09 15:23:18 +02:00
koopa1338
2dc75704b7 fix: scroll_strategy limit (#1320) 2021-10-09 09:06:52 +02:00
TJ DeVries
dea927d0eb feat: Add scrolling through results (#1232)
* some scrollin

* [WIP]: Fri 10 Sep 2021 02:24:20 PM EDT

* ok, I think scrolling works

* change to 1000 for now, dont need to scroll that far :)
2021-10-08 10:56:01 -04:00
Simon Hauser
ec6c13fc09 fix: code action for rust analyzer (#1311) 2021-10-07 13:49:14 +02:00
Javier Lopez
d1e9655d90 fix(healthcheck): migrate to new lua pattern (#1310) 2021-10-06 17:17:17 +02:00
fdschmidt93
ec48777990 fix: stacking highlights in buffer previewer (#1294) 2021-10-04 22:35:22 +02:00
Luke Kershaw
be600b5421 feat: more prompt position strategies (#1280)
* feat: allow `prompt_position` for `vertical` layout strategy

* feat: allow `prompt_position` for `bottom_pane` layout strategy

* stylua

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

* refactor: switch to `string.format`

* stylua

* feat: allow `prompt_position` for `center` layout strategy

* feat: handle user defined `prompt_position` within themes

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

* fix: tweak `center` layout

- ensure `prompt` title is visible when `prompt_position="bottom"`

* fix: refactor `center` tweak

- move title to bottom of picker when `prompt_position="bottom"`

* fix: tweak `bottom_pane` layout

* stylua

Co-authored-by: Github Actions <actions@github>
2021-10-04 21:16:58 +02:00
fdschmidt93
440c598de4 fix: which key float positioning (#1293)
* Adjust which key float positioning for recent plenary and telescope theme changes
2021-09-30 15:53:06 +02:00
Jonas Strittmatter
4e629cdea1 fix: show error message when nothing is selected (#1289)
* fix: always show error message when nothing is selected

This continues the fixes done in 4816a27d76 (ref #1283)

* Use correct variable name (selection) and add one more nil check

* Fix indentation
2021-09-27 20:45:27 +01:00
fdschmidt93
a6c7498bdc feat: filetype_hook & improved docs; fix preview partial override (#1273) 2021-09-27 15:24:35 +02:00
Sávio Carlos Martins Costa
87471bc3ff feat: add highlight group: TelescopePreviewMessage (#1286)
* feat: add highlight group: TelescopePreviewMessage

* fix indentation from 4 to 2 spaces
2021-09-27 11:59:05 +02:00
Simon Hauser
4816a27d76 fix: print error mesage and dont close telescope if nothing is selected (#1285) 2021-09-26 12:59:24 +02:00