Commit Graph

85 Commits

Author SHA1 Message Date
Farbod Salamat-Zadeh
6b1579741a fix: git stash entry formatting (#1452) 2021-12-06 21:20:37 +01:00
GenesisTMS
a88d92417d typo: which_key (#1560) 2021-12-06 21:12:42 +01:00
Luke Kershaw
582dbd4da8 defaults: change center layout default size (#1546)
* defaults: change `center` layout default size

- now matches the description and has space for a preview above the central block
2021-12-03 17:50:44 +01:00
Luke Kershaw
0c819d6605 docs: layout strategy usage (#1493) 2021-12-03 15:21:26 +01:00
Luke Kershaw
22e59556f9 chore: layout strategy tidying (#1509) 2021-11-29 10:42:23 +00:00
Luke Kershaw
d686fb2799 fix: cleanup of layout actions
* fix: finish docs and remove mistakes from merge

* fix: change order of `popup` changes based on type of change
  - removes "flash" issue where popups don't update in sync
2021-11-18 19:44:12 +00:00
Luke Kershaw
edcf07cf88 feat: layout actions (#1383)
Co-authored-by: johnybx <johnybx@users.noreply.github.com>
2021-11-18 19:44:12 +00:00
johnybx
b952c2f852 feat: add hide / unhide preview (#1305)
* feat: add hide / unhide preview or results and prompt

* fix edit actions while only preview window is active

* add option to start telescope without previewer -> "disable_previewer_at_startup"

* remove hide / unhide prompt and resutls, improve hide / unhide preview

* fix tests - check if popup window should be created with borders - popup.create does not support setting borderhighlight and border=false

* allow toggle preview even if preview is set to false

* reuse recalculate_layout in hide / unhide preview

* add docs to toggle preview

* check if preview window is valid window

* remove unnecessary changes

* cleanup, remove unnecessary changes

* close all previewers, refactor toggle preview code

[docgen] Update doc/telescope.txt
skip-checks: true
2021-11-18 19:44:12 +00: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
Desmond Chin
68308735c1 doc: fix typo in telescope.txt (#1431) 2021-11-13 13:50:53 +01:00
Luke Kershaw
22198ea588 docs: add a changelog entry for updated version requirements (#1444)
- also updates the error message to point to it
2021-11-13 11:17:15 +00:00
Luke Kershaw
bf77c5d2fa feat: results scrolling actions (#1436) 2021-11-13 11:15:07 +00:00
Andrew Wray
e4ab6d2844 Fix small typo in previewers section (#1433) 2021-11-09 09:35:39 +01:00
Luke Kershaw
4583828366 docs: generate docs for hl_result_eol (#1426)
Co-authored-by: Github Actions <actions@github>
2021-11-07 15:35:34 +00: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
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
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
Simon Hauser
f31ef36293 fix: opts.git_command for files, commits, bcommits (#1374) 2021-10-24 08:30:31 +02:00
nickelc
a823ae8eb5 docs: fix typo in qflist_previewer's default value (#1363) 2021-10-24 08:20:08 +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
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
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
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
a6c7498bdc feat: filetype_hook & improved docs; fix preview partial override (#1273) 2021-09-27 15:24:35 +02:00
tami5
60660334c7 feat(defaults): enable customization of path_display.truncate (#1264)
followup to https://github.com/nvim-telescope/telescope.nvim/pull/1254
and implementation of
https://github.com/nvim-telescope/telescope.nvim/pull/1254#issuecomment-922527270
2021-09-20 12:52:59 +03:00
Luke Kershaw
f0db7d3a59 feat: truncate option for path_display (#1254) 2021-09-19 20:38:00 +02:00
Luke Kershaw
37c9ab6688 feat: layout_strategies refactor (#1039)
* wip: 2021-07-22 15:00 BST

* wip: `horizontal` refactored

* wip: `center` refactored

* wip: `cursor` and `vertical` refactored

* wip: `current_buffer` refactor

- also changed `layout_config_defaults` as they gave errors when using `current_buffer`

* wip: `bottom_pane` refactor

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

* fix: put accidentally remove config option back

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

* wip: standardise `height` calculation for `center` and `bottom_pane`

* wip: improve comments

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

* stylua

- also fix a merge mistake

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

* fix: attempt to fix bad merge

* refactor: remove unused entry in `borderchars` table

- also fix some typos

* wip: tweak padding for `bottom_pane`

* wip: add `tabline` checks to `bottom_pane`

- also tweaked position so that `statusline` is not covered when borders are enabled

* stylua

* refactor: factor out size capping function

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

* fix: adjust tests that relied on height being number of results

* fix: forgot variable in calc_size_and_spacing

* fix: maybe this fixes these tests?

* test: try other plenary branch for ci

* test: switch back to main plenary branch for ci

* fix: actually define `max_results` in the test

* fix: final tweaks for edge cases

Co-authored-by: Github Actions <actions@github>
2021-09-19 09:30:25 +01:00
fdschmidt93
7c5b846f6f feat: skip/timeout preview if file cannot be easily previewed (#1231)
* For full configuration, see `:h telescope.defaults.preview`
* Unblocks previewer on binaries, too large files, and files that take too long to read
* Allows toggling treesitter highlighting for buffer_previewer
* Allows to globally opt out of previewer
2021-09-16 23:01:40 +02:00
Anthony Nichols
5f0ccf1346 feat: support <pattern> for git-for-each-ref (git_branches) (#1248) 2021-09-16 11:58:59 +02:00
Simon Hauser
5131df7df1 docs: rewrite readme and add missing config values + builtin opts 2021-09-16 11:12:12 +02:00
qualious
1d17cc4abc feat: smart path (#914)
path_display = { "smart" }

Co-authored-by: Deniz <deniz@admentum.se>
Co-authored-by: Simon Hauser <Simon-Hauser@outlook.de>
2021-09-12 21:14:00 +02:00
Rodrigodd
d022ccaf11 feat: lsp type definitions (#1224) 2021-09-12 11:36:28 +02:00
thibthib18
b4d6eb9a23 feat: git merge branch action (#1220) 2021-09-10 08:50:58 +02:00
fdschmidt93
fbe004142f feat: show keymaps for builtin actions (#1084)
* Add default mappings `<C-/>`and `?` for insert and normal mode, respectively, to show registered keymappings (`actions.which_key`) attached to prompt buffer
2021-09-01 20:11:53 +02:00
fdschmidt93
5d37c3ea08 feat: allow caching and resuming picker (#1051)
* expose `cache_picker` in telescope.setup to configure caching, see `:h telescope.defaults.cache_picker`
* add builtin.resume and builtin.pickers picker
2021-09-01 18:17:18 +02:00
Simon Hauser
baf39e5339 doc: generate docgen
i forgot it. My bad
2021-09-01 16:53:56 +02:00
Simon Hauser
364d795d22 fix: some improvements for telescope.symbols if run in insert mode (#1117)
- keep insert if run in insert mode
- also look in `.local/share/nvim/telescope/symbols/*.json` for symbols
  can be overriden with `symbol_path`
2021-08-21 16:48:19 +02:00
Luke Kershaw
f67d3e883d feat: allow tables in vimscript command parser (#1075) 2021-08-18 10:05:04 +01:00
Simon Hauser
e7362e9996 chore: reformat docs after tree-sitter-lua changes 2021-08-04 22:41:18 +02:00
zeertzjq
d7cdfcbeb6 feat: add option jump_type to lsp_definitions and lsp_implementations (#1077) 2021-08-04 22:33:13 +02:00
zeertzjq
654903fc04 fix: preview the correct man page section (#1076) 2021-08-04 22:19:39 +02: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
bi0ha2ard
b7cd8c7699 fix(entry_to_qf): handle nil entry.cwd and absolute filenames (#1058) 2021-08-04 08:56:15 +02:00
Luke Kershaw
f8caad1d6b fix: fix file_browser on windows and potentially other file opens (#1026) 2021-08-03 11:08:42 +02:00
Simon Hauser
46e03a935f feat: sort_mru for builtin buffers (#1028)
:help builtin.buffers
2021-07-19 09:10:06 +02:00
Corentin Brunel
b13306e5cc feat: add cursor layout (#878)
* Add basic implementation of "cursor" layout strategy

* Update cursor layout strategy to properly follow cursor

* feat(cursor_layout): handle previewer

* Refactor cursor layout code

* Add cursor theme

* Update readme

* Improve cursor theme and layout documentation

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

* Remove trailing whitespace

* Fix issues related with neovim and plugin api changes

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

* Allow preview width to be configured

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

Co-authored-by: Github Actions <actions@github>
Co-authored-by: cbrunel <cbrunel@sogescom.local>
2021-07-16 19:17:21 +01:00
wongxy
747396227d feat: enable to preview themes (#980) 2021-07-16 18:45:31 +02:00
Luke Kershaw
1866265fea feat: Add length option for shorten_path (#886)
* feat: add `shorten_len` option for path shortening

- adds option to configure the length of shortened parts of filenames
- only affects paths when "shorten" is in `path_display`

* chore: revert rebase for `path.lua` to 876bed9

* refactor: replace `shorten_len` with the `shorten` key in `path_display`

- also deprecates `utils.path_shorten` and passes straight to `plenary`s `Path:shorten`

* feat: allow `path_display` to handle table keys, as well as strings
2021-07-16 17:41:39 +01:00
Nazeeh ElDirghami
138697980b feat: Add ability to have a user defined function to format the path display (#1000) 2021-07-16 17:20:25 +02:00
Simon Hauser
876bed9632 chore: changelog for 473 (#992) 2021-07-14 19:54:06 +02:00