summaryrefslogtreecommitdiff
path: root/lua/telescope/pickers.lua
AgeCommit message (Collapse)Author
2021-11-30fix: keep previewer `winid` state updated on layout changes (#1522)Luke Kershaw
2021-11-29add Normal highlights for prompt and results (#1514)max397574
* feat(highlight): add Normal highlights for prompt and results * fix(highlight): link to TelescopeNormal by default
2021-11-28fix: Border window also need to be winblend due to window overlap in ↵akiyosi
multigrid UI (#1421)
2021-11-23Revert "fix: action mt so we can again concat actions from two different ↵Simon Hauser
tables (#1143)" (#1486) This reverts commit 6daf35c88c07dd4b220468968a742cda04889cd3.
2021-11-23fix: telescope close process and cleanup layout actions (#1480)Simon Hauser
2021-11-22fix: action mt so we can again concat actions from two different tables (#1143)Simon Hauser
* fix: action mt so we can again concat actions from two different tables - without actually changing the public interface - without having a local table that keeps track of all actions * this should clear actions now we never actually called this function which is kinda a problem because we never cleaned up previous mapping stores. We can also make a better mappings store which has access to the keys sequences which would help the showing actions part * bugfix * that should now clear everything only tests left i think * more tests * cleanup * hack: make sure all actions get cleared
2021-11-20fix: error when opts is nil in pickers.new (#1471)Salomon Popp
2021-11-18fix: cleanup of layout actionsLuke Kershaw
* 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-18feat: layout actions (#1383)Luke Kershaw
Co-authored-by: johnybx <johnybx@users.noreply.github.com>
2021-11-18feat: add hide / unhide preview (#1305)johnybx
* 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-15Fixes #1371TJ DeVries
Force clearing the highlights while the picker is still open
2021-11-15feat: allow changing results/prompt title & persisting multi on ↵fdschmidt93
picker:refresh (#1451)
2021-11-01chore: remove a lot of deprecated stuff (#1399)Simon Hauser
2021-10-31fix: check if caret is present before removal (#1390)Luke Kershaw
2021-10-28fix: set preview `titlehighlight` when re-enabling preview (#1384)Luke Kershaw
2021-10-26feat: separate higlight for titles in picker windows (#1362)Luke Kershaw
- requires nvim-lua/plenary.nvim#260
2021-10-21fix: always remove previous caret when change selection (#1364)Luke Kershaw
2021-10-20fix: preview title key and a bug with dynamic_title (#1350)Simon Hauser
2021-10-20feat: recalculate picker layout on `VimResized` (#959)Luke Kershaw
* 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-11fix: highlighting when `color_devicons=false` (#1328)Jean-Luc Bastarache
2021-10-09fix: processed count to exclude entries that got ignored in make_entry (#1323)Simon Hauser
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-08feat: Add scrolling through results (#1232)TJ DeVries
* 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-09-19fix: pickers use entry.filename as default and fallback to entry.value for ↵TheLeoP
file_ignore_patterns (#1243)
2021-09-16docs: rewrite readme and add missing config values + builtin optsSimon Hauser
2021-09-09fix: restoring picker table/function opts (#1205)fdschmidt93
* fix: missing opts for cached picker creation * fix: make properly overridable
2021-09-01feat: allow caching and resuming picker (#1051)fdschmidt93
* expose `cache_picker` in telescope.setup to configure caching, see `:h telescope.defaults.cache_picker` * add builtin.resume and builtin.pickers picker
2021-09-01fix(pickers): initial normal mode (#1165)fdschmidt93
fix(pickers): opts.default_text and cursor are now correctly set for opts.initial_mode="normal"
2021-08-20fix: Close async oneshot jobs on finder:close (#1140)TJ DeVries
2021-08-20feat: Use nvim_buf_set_extmark right_align to do the magic for us (#1138)TJ DeVries
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-08-11feat: api for clearing completion cb in userspace (#1097)fdschmidt93
2021-08-11feat: Move to plenary.popup (#1102)TJ DeVries
2021-07-23chore: use stylua for formatting (#1040)Simon Hauser
* chore: stylua job and config * reformat with stylua
2021-07-18Set a filetype for the results buffer (#1019)Rasmus Bergström
**Why** is the change needed? So that it can be targeted with specific settings. These could include disabling plugins for the buffer (as in #840) or disabling folding (as per #991). **How** is the need addressed? - Add a filetype to the buffer after it has been created. Closes #991
2021-07-09feat: cycle prompt history (#521)Simon Hauser
history is enabled on default but cycle_history_next and cycle_history_prev is not mapped yet Example: require('telescope').setup { defaults = { mappings = { i = { ["<C-Down>"] = require('telescope.actions').cycle_history_next, ["<C-Up>"] = require('telescope.actions').cycle_history_prev, } } } } For more information :help telescope.defaults.history big thanks to clason and all other testers :)
2021-07-03feat: select_all, toggle_all and drop_all actions (#931)fdschmidt93
2021-07-02feat: `selection_strategy` closest (#885)Tom
* Added closest selection_strategy to use default_selection_index initially but prefer highest ranked match when prompt not empty * Updated supporting documentation to include selection_strategy
2021-07-02fix: table number option extend (#947)Luke Kershaw
* fix: prevent error when overriding tables with numbers Fixes #944 - refactor `config.smarter_depth_2_extend` - use `config.smarter_depth_2_extend` for setting `layout_config` in `Picker:new` * test: check that can override a table with a number for layout configuration
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-14feat: cycle previewers with commit and bcommit already using it (#528)Simon Hauser
- new git previewers - jump to line in bcommit previewer - vimdiff for bcommits - dynamic preview window titles - more previewers documentation Cycle previewers are not mapped yet. So you need to setup yourself: ```lua require('telescope').setup { defaults = { mappings = { i = { ["<C-s>"] = actions.cycle_previewers_next, ["<C-a>"] = actions.cycle_previewers_prev, }, }, } } ``` Co-authored-by: Thore Strassburg <thore@weilbier.net>
2021-06-09feat: delete entry from the picker without closing telescope (#828)Dhruv Manilawala
This action is not mapped but you can do it yourself in your telescope setup call Example config: ```lua require("telescope").setup { pickers = { buffers = { mappings = { i = { ["<c-d>"] = "delete_buffer", } } } } } ```
2021-05-26fix: abort picker set_selection if no manager (#866)kaddkaka
2021-05-15Reset multi-selection in Picker:refresh() (#830)Tom Praschan
If there's a new finder the multi selection is invalidated, so reset it
2021-05-09fix: add check for nil win_id in Picker.close_windows (#831)Luke Kershaw
This probably fixes issues with nobuflisted buffers (startify, dashboard-nvim and probably more)
2021-04-28fix: Fix things for conniTJ DeVries
2021-04-22feat: allow reset prompt to set text as wellTJ DeVries
2021-04-16fix: Default to an empty sorter, so we always have oneTJ DeVries
2021-04-15feat: Add more sorter hooks (#752)TJ DeVries
* feat: Add more sorter hooks * fix breaking conni brain
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-03-30fix: no longer leaking one buffer previewer in some occasions (#664)Simon Hauser
* fix: stop leaking last preview buffer * fix: formatting for docs * fix: async check if file is dir or not and - fix for in_fast_event when overriding file_maker * fix: filtering for space in keymaps and fzy * fix: show correct result numbers when using file_ignore_patterns * Handle early close. Caused because we actually cleaning up buffers now * cleanup * [docgen] Update doc/telescope.txt