summaryrefslogtreecommitdiff
path: root/lua/telescope/pickers
AgeCommit message (Collapse)Author
2023-03-21doc: fix border characters in docs (#2388)Pooyan Khanjankhani
* chore: Fix border characters in comments * [docgen] Update doc/telescope.txt skip-checks: true --------- Co-authored-by: Github Actions <actions@github>
2023-01-22docs: proof-read edits (#2311)James Trew
2023-01-06fix(tests): uses testharness in scrolling strategy (#2307)Adam Tajti
2022-12-28docs: fix typos/wording (#2283)Tsakiris Tryfon
2022-08-19Revert "rfc: use extmarks for highlighting and carets (#2099)" (#2138)Fabian David Schmidt
This reverts commit 8d13f4ca8a449d9bd687234b4cb7c531c50b0fa4.
2022-08-18rfc: use extmarks for highlighting and carets (#2099)Jeremy Saenz
* Starting to make some progress on extmarks for prefixes * Finished up extmarks for multi-icons * Cleaned up update_prefix calls, added display highlights * remove highlight_one_row * Remove TODOs * stylua fixes * fixes for luacheck * Fixed whitespace to appease the stylua gods * fixed a couple nits from pr * Got tests passing with new highlighting functionality * Apply suggestions from code review Co-authored-by: Fabian David Schmidt <39233597+fdschmidt93@users.noreply.github.com> Co-authored-by: Fabian David Schmidt <39233597+fdschmidt93@users.noreply.github.com>
2022-08-04fix: restore testing framework to actually work (#2070)TJ DeVries
after refactor to some new asynchronous items for finders, the tests stopped actually doing anything. now they do things again.
2022-07-12fix: cursor theme for nvim 0.7 (#2069)Simon Hauser
2022-07-12fix: cursor theme if winbar is set (#2066)Simon Hauser
2022-07-07chore: reformat with stylua 0.14.0Simon Hauser
2022-07-01docs: `make_entry` and `entry_display`julianf
2022-06-30break: deprecate utils.get_default utils.if_nil (#1545)Simon Hauser
2022-05-12feat(entry_display): expose prompt_bufnr opt (#1934)fdschmidt93
Required for `vim.ui.input` with file_browser extension when prompt_bufnr may be left intermittently
2022-04-18docs: add module prefix (#1847)Simon Hauser
2022-03-13feat: improve UX with vim.notify (#1763)tami5
* 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-02Change center layout strategy to allow vertical anchoring (#1719)Alef Pereira
* Change center layout strategy to allow vertical anchoring Affects `telescope.pickers.layout_strategies.center` that is used by dropdown (`telescope.themes.get_dropdown()`) theme, allowing more customization for dropdown theme, i. e. setting it in the top with mirrored preview. For `anchor` containing `N` or `S` will ignore `mirror` config and preview will be placed as follows: - Anchoring for `N` put the preview below the prompt result block. - Anchoring for `S` put the preview above the prompt result block. - For horizontal anchoring preview will be placed according to `mirror`. * [docgen] Update doc/telescope.txt skip-checks: true Co-authored-by: Github Actions <actions@github>
2022-01-15fix: update `multi_icon` with `select/drop/toggle_all` actions (#1682)Luke Kershaw
* fix: `multi_icon` with `select/drop/toggle_all` * typos * fix: add check for no caret found * fix: add check for no line found * fix: check `max_results` in `Picker:can_select_row` - also switch order of highlighting in `select/drop/toggle_all` actions * fix: make `max_results` check a strict inequality * [docgen] Update doc/telescope.txt skip-checks: true * fix: update `prompt_status` on `select/drop/toggle_all` actions Co-authored-by: Github Actions <actions@github>
2022-01-06fix: allow `selection_caret` to be entirely whitespace (#1660)Luke Kershaw
2022-01-05feat: multiselect icon (#1572)Luke Kershaw
* feat: add `multi_icon` option to pickers and corresponding highlight * feat: allow `multi_icon` to be any length * fix: adjust `selection_caret` highlighting
2021-12-10feat: layout `anchor` (#1582)Luke Kershaw
* feat: add `anchor` option to some `layout_strategies` * tests: improve tests for `resolve_height/width`
2021-12-10break: bump the minimum required neovim version to 0.6 or higher (#1549)Simon Hauser
So we can use `vim.json` and `vim.diagnostics`. If you aren't able to update to 0.6.* yet you should pin the previous commit.
2021-12-10feat: `center` layout `mirror` option (#1577)Luke Kershaw
2021-12-08fix: `bottom_pane` remove `results` border next to `prompt` (#1563)Luke Kershaw
2021-12-03docs: layout strategy usage (#1493)Luke Kershaw
2021-11-29chore: layout strategy tidying (#1509)Luke Kershaw
2021-11-28feat: add `preview width` option for `bottom_pane` layout (#1505)max397574
* feat(layout_strategies): started adding preview width for bottom pane * fix(bottom_pane preview_width): fixed some values and added defualt * fix(config): better default for preview cutoff * fix(layout): removed unnecessary variable value
2021-11-27feat: extend functionality of `entry_display.create` (#1408)Luke Kershaw
* 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-18feat: layout actions (#1383)Luke Kershaw
Co-authored-by: johnybx <johnybx@users.noreply.github.com>
2021-11-04feat: Full width select (#1403)Julian Fricker
Can be changed back by setting telescope.setup { defaults = { hl_result_eol = false, } }
2021-10-31Revert "break: changed the results window highlight to always be full width ↵Simon Hauser
(#1312)" (#1398) This reverts commit 3b9ac8edba8c1b4053c7f6ac8a4e78969cec66dd.
2021-10-29break: changed the results window highlight to always be full width (#1312)Julian Fricker
Can be changed back by setting telescope.setup { defaults = { hl_result_eol = false, } }
2021-10-24fix: missing check for negative index in cycle scrolling (#1372)Vsevolod
2021-10-09fix: scroll_strategy limit + sorting_strategy descending (#1322)Simon Hauser
2021-10-09fix: scroll_strategy limit (#1320)koopa1338
2021-10-04feat: more prompt position strategies (#1280)Luke Kershaw
* 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-09-19fix: adjust layout positioning for new indexing (#1260)Luke Kershaw
2021-09-19feat: `layout_strategies` refactor (#1039)Luke Kershaw
* 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-16docs: rewrite readme and add missing config values + builtin optsSimon Hauser
2021-08-20feat(performance): Major performance improvements using async v2 from ↵TJ DeVries
@oberblastmeister (#987) * start: Working w/ async jobs * short circuit to using bad finder if you pass writer.
2021-07-23chore: use stylua for formatting (#1040)Simon Hauser
* chore: stylua job and config * reformat with stylua
2021-07-20fix: check if tabline is present when calculating certain layouts (#1027)Luke Kershaw
* fix: check if tabline is present when calculating certain layouts - also tweaks height calculation for `center` strategy * refactor: remove `center` strategy tweak - will reimplement something similar in another PR for a few of the strategies * fix: check if `preview.line` is `nil` * refactor: factor out `tbln` calculation and `max_lines` adjustment - also tweaked `vertical` calculations so that no `nil` check is required
2021-07-18fix for #847 (#1022)Ben Smith
2021-07-18Mirror option for bottom_pane layout_strategy (#847)Ben Smith
* functional mirror opt for bottom_pane strategy * [docgen] Update doc/telescope.txt skip-checks: true * forgot 'end' to close function * [docgen] Update doc/telescope.txt skip-checks: true Co-authored-by: Github Actions <actions@github>
2021-07-16feat: add cursor layout (#878)Corentin Brunel
* 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-01feat: Consistent and sensible layout_config (#922)TJ DeVries
* feat: Consistent and sensible layout_config * [docgen] Update doc/telescope.txt skip-checks: true * [WIP]: Thu 17 Jun 2021 03:36:44 PM EDT * [WIP]: Thu 17 Jun 2021 03:38:11 PM EDT * layout_default -> layout_defaults * remove options from bug repot * Conni2461 suggestions: part 1 * [docgen] Update doc/telescope.txt skip-checks: true * Conni2461 suggestions: part 2 * [docgen] Update doc/telescope.txt skip-checks: true * Linting * Improve deprecation checks - Move `layout_defaults` handling to `deprecated.lua` - Check for "layout keys" outside of `layout_config` on `setup` * fixup: Just add a few more words Co-authored-by: Luke Kershaw <35707277+l-kershaw@users.noreply.github.com> Co-authored-by: Github Actions <actions@github>
2021-06-14chore: use plenary.strings and remove strings functions from utils (#690)JINNOUCHI Yasushi
Co-authored-by: Simon Hauser <Simon-Hauser@outlook.de>
2021-05-15feat: add ivy-style layout strategy (#771)TJ DeVries
* feat: add new layout strategy * [docgen] Update doc/telescope.txt skip-checks: true Co-authored-by: Github Actions <actions@github>
2021-04-08feat: asyncify pickers - except for live_grep (#709)TJ DeVries
* something kind of works already * yayayayayayayayayayayayayayayayayayayayayayayayayayayayayayayayaya * use async for everything besides live jobs * fix: fixup autocmds previewer * fix: lints for prime * temp: Add example of how we can think about async sorters * feat: Allow picker to decide when to cancel * fix: simplify scoring logic and tests * fixup: name * fix: Move back towards more backwards compat methods * fixup: Remove results from opts * fixup: remove trailing quote * fixup: Attempt to clean up some more async items. Next is status * wip: Add todo for when bfredl implements extmarks over the EOL * wip * fixup: got em * fixup: cleaning * fixup: docs
2021-04-06feat: buf highlights for current buffer fuzzy find (#732)TJ DeVries
* feat: Add buffer highlights from treesitter * fix: Handle not having tree sitter in some buffers * fixup * fixup * fixup: move back to old node
2021-03-29picker(git_branch): show committer, upstream and date (#695)Kyoichiro Yamada
* wip: rich finder for branches for: https://github.com/nvim-telescope/telescope.nvim/issues/569 * fix some diagnostics