summaryrefslogtreecommitdiff
path: root/lua/telescope/pickers.lua
AgeCommit message (Collapse)Author
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
2021-03-09nit: Don't reset highlights on detachTJ DeVries
2021-02-28fix: entry_prefix if selection_caret > entry_prefix (#572)Simon Hauser
2021-02-27feat: multi selection. Only integrates with send_selected_to_qflist (#551)TJ DeVries
This will not yet work with select actions. More work is needed in that case. Co-authored-by: Simon Hauser <Simon-Hauser@outlook.de>
2021-02-27fix: a lot of small things and adds more customization for caret (#554)Simon Hauser
Attention: prompt_prefix will no longer add a space at the end. So if you still want a space at the end make sure your configuration has one. The default should not be changed. So if you haven't copied prompt_prefix in your config this doesn't affect you. Feat: - prompt prefix does no longer always end with space - selection_caret configurable. Default: `> ` - result_prefix configurable. Default: ` ` - more actions for git_branches - <c-t> does track the branch - <c-r> does rebase branch - also added delete branch action but not configured. See readme on how to do that Fixes: - fix docgen ci - Better error for lsp_workspace_symbols - better formatting for CONTRIBUTING.md - move from systemlist to plenary.job - git branch now supports checkout on remote branches
2021-02-23feat: file browser & refresh interface (#290)Simon Hauser
and more picker api stuff for sunjon. refresh is implemented for file_browser and git_status
2021-02-22feat: Action improvements (#472)TJ DeVries
* feat: replace_map * feat: Add action_set and action_state * fix: Move all actions.get_ to action_state.get_ * fix: replace all internal references of _goto_file_selection_edit * feat: add some docs * fix: lint * feat: actions.select * remove mentions and usage of goto_file_selection APIs * feat: special case attach_mappings to be overridable and defaultable * Having goto_file_selection mappings will cause a error as well as replacing deprecated goto_file_selection methodes For config and replacing use this instead: - actions.select_default - actions.select_horizonal - actions.select_vertical - actions.select_tab Only replacing: - actions.set.edit -- for replacing all select functions * adds actions.state.select_key_to_edit_key Co-authored-by: Simon Hauser <Simon-Hauser@outlook.de>
2021-02-09fix: all git builtin respect cwd now (#517)Simon Hauser
2021-02-04nit: Abstract some functions (#498)TJ DeVries
2021-02-02Add user autocmd TelescopeFindPre (#491)Raphael
* Add user autocmd Telescope * change name to TelescopeFindPre * update Readme for Telescope user autocmds
2021-01-28feat: allow a callback to be called on on_lines update (for filtering tags ↵Senghan Bright
from query text) (#455) * allow a callback to be called on on_lines update * . * remove unused _filter_marker var * nit: Move to table and implement 'close' Co-authored-by: TJ DeVries <devries.timothyj@gmail.com>
2021-01-24fix: allow previewer win customization (#460)Alvaro Muñoz
2021-01-17feat: Add option to set initial_mode (#442)wordhou
2021-01-11feat: quickfix (#293)TJ DeVries
* feat: quickfix (not implemented) * [WIP]: Wed 09 Dec 2020 11:11:30 PM EST * somewhat working linked list impl * getting closer * might be working * might be working for real * works and implemented basic example * dont forget to close prompt * fix descending and add more tests * test fixes * fix test * more logging * Fix some more tests * Fix logging messing up tests * fix: lint * fix: multi select stuffs
2021-01-05feat: add actions.get_current_line (#391)oberblastmeister
2020-12-21feat: Add better highlighting and new CI abilities (#355)TJ DeVries
* Revert "Revert "fix: Better highlights (#344)" (#350)" This reverts commit 7950fc8ba0accfcf6c540c7810feee646281fd8a. * better highlights take 2 * fixup * install fd find for sameness * add some debug output * more deterministic * better ci
2020-12-18Revert "fix: Better highlights (#344)" (#350)Senghan Bright
This reverts commit eca83f214ab6c64ca8df838a306d1a4570accd31.
2020-12-18fix: Better highlights (#344)TJ DeVries
* scratch: easy reproduce for buffers * fix: Many highlight fixes
2020-12-18fix results count padding (#348)Senghan Bright
2020-12-11Fix: scroller for descending (#327)Simon Hauser
2020-12-10refactor: Move scroller into own testable moduleTJ DeVries
2020-12-10Revert "fix: cycle scroll when num_results is small (#316)"TJ DeVries
I didn't test this cause I'm noob. It's my fault not tami's This reverts commit d9bf9181bccecb774ba7d56cdf5db440547f3b50.
2020-12-10fix: cycle scroll when num_results is small (#316)aca
2020-12-09ci: Add luacheck ci job (#317)Simon Hauser
* Add luacheck ci job * Fix most of the linting issues * fixup: lint Co-authored-by: TJ DeVries <devries.timothyj@gmail.com>
2020-12-03Fix file_ingore_patterns for tags and lsp (#309)Simon Hauser
closes #299 authored by: @Conni2461
2020-11-23feat: Buffers rework (indicators and sorting) (#208)Simon Hauser
2020-11-23feat: v0.1 of extensions (#278)TJ DeVries
2020-11-16feat: Allow overriding actions from mappings (#248)TJ DeVries
2020-11-13fix: #236TJ DeVries
2020-11-13fix: selection_strategies row and follow (#218)Simon Hauser
2020-11-02feat: v1 options menu (#133)Senghan Bright
Still has a bunch of improvements that can be done, but wanted to merge in some of the related changes. * options parser * wip: vimoptions finder * feat: pre-populate ex-command line with `:set foo=` * use options current value when populating command line * fix: use result.raw_value to store original option value * . * options: Continue work on option finder * [WIP]: Tue 27 Oct 2020 10:34:09 PM EDT * [WIP]: Mon 02 Nov 2020 08:20:13 PM EST * [WIP]: Mon 02 Nov 2020 09:04:23 PM EST Co-authored-by: TJ DeVries <devries.timothyj@gmail.com>
2020-10-30feat: Closes #205TJ DeVries
2020-10-27fix: attempt to fix problem for tami, hopefully no more errorTJ DeVries
2020-10-25feat: Add ability to turn off devicon colorsTJ DeVries