summaryrefslogtreecommitdiff
path: root/lua/telescope/actions
AgeCommit message (Collapse)Author
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-06fix: skip path escaping when adding items to quickfix list (#1712)Daniel Imfeld
2022-03-04docs: fix typo 'seperator' in documentation (#1767)Vivianne
2022-02-13fix(actions.qflist): make it work with vim quickfix commands (#1742)Connor Sheehan
use `r` mode to instead use `" "` mode. This makes Telescope quickfix list action send results to a new list in the quickfix stack instead of overwriting the entries in the current list. Doing so enables `:chistory`, `:colder` and `:cnewer` functions to review results of previous Telescope queries. The location list uses a similar API and is updated in this PR also (ie this also enables :lhistory, :lolder and :lnewer).
2022-01-28fix(action): insert symbol in insert mode (#1722)Christian Clason
followup to #1618, ensure insert after cursor
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-09Revert "fix: folding when a file is opened (#1643)" (#1673)Simon Hauser
This reverts commit 01426c491b2b612b48f48b26e2e77679006999d3.
2022-01-09fix: folding when a file is opened (#1643)Abel Mulugeta
* fix: folding after a file is opened fixes #559 * fix: wrap nvim_win_set_cursor in autocmd * chore: Cleanup folding fix * explain the reason behind the autocmd Co-authored-by: Simon Hauser <Simon-Hauser@outlook.de>
2022-01-09fix: allow `which_key` action without preview (#1668)Luke Kershaw
2021-12-27chore: remove redundant run_builtin action (#1589)kylo252
2021-12-27fix(actions): force insertmode after inserting symbol (#1618)Christian Clason
required after upstream changes to prompt buffer behavior (see https://github.com/neovim/neovim/commit/28134f4e78819c2bbf0344326b9d44f21eb0d736) Fixes #1608
2021-12-10fix: `which_key` action `foldenable=false` by default (#1578)Jieru Mei
2021-12-06fix: ensure buffer is listed before edit_buffer (#1492)Richard Lu
2021-12-06typo: `which_key` (#1560)GenesisTMS
2021-12-03fix: actions.delete_buffer shouldnt force deleteSimon Hauser
fix #1541
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-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-13feat: results scrolling actions (#1436)Luke Kershaw
2021-11-10fix: actions.git_checkout_current_buffer calling deprecated method (#1439)hungpt2702
2021-11-04fix: revert buffers previewer (#1400)fdschmidt93
* Reverts #1120 many issues arise (mru, highlighting, settings inheritance, ...) when previewing actual buffers
2021-11-01chore: remove a lot of deprecated stuff (#1399)Simon Hauser
2021-10-11feat: add `gg` and `G` to default mappings (#1325)Zachary Churchill
* feat: add `gg` and `G` to default mappings * refactor: use action_state.get_current_picker * docs: mention new default gg/G keymaps
2021-09-30fix: which key float positioning (#1293)fdschmidt93
* Adjust which key float positioning for recent plenary and telescope theme changes
2021-09-27fix: show error message when nothing is selected (#1289)Jonas Strittmatter
* fix: always show error message when nothing is selected This continues the fixes done in 4816a27d7680feed293d21a945c476947af20d29 (ref #1283) * Use correct variable name (selection) and add one more nil check * Fix indentation
2021-09-16fix: wrap vim.cmd in pcall to avoid error (#1247)gavynriebau
When opening a file under swap from the "fd" finder results an error was printed after the file was opened, wrapping the call to "vim.cmd" in a pcall avoids the error.
2021-09-16docs: rewrite readme and add missing config values + builtin optsSimon Hauser
2021-09-13fix: make qf commands possible from any picker (#1237)fdschmidt93
* Allow any qf cmd by defaulting to {lnum=1, col=1} for qflist if values are unset
2021-09-10feat: git merge branch action (#1220)thibthib18
2021-09-07fix(actions_generate.which_key): overriding opts (#1221)August Masquelier
* Fix error from type mismatch on repeated calls of `action.which_key` when instantiated by `actions.generate`
2021-09-01feat: show keymaps for builtin actions (#1084)fdschmidt93
* Add default mappings `<C-/>`and `?` for insert and normal mode, respectively, to show registered keymappings (`actions.which_key`) attached to prompt buffer
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-08-23fix: (terminal) buffer previewer (#1120)fdschmidt93
Use existing buffers for buffer previewer to allow previewing special buffer types
2021-08-21fix: some improvements for telescope.symbols if run in insert mode (#1117)Simon Hauser
- 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-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-04fix(entry_to_qf): handle nil entry.cwd and absolute filenames (#1058)bi0ha2ard
2021-08-03fix: fix `file_browser` on windows and potentially other file opens (#1026)Luke Kershaw
2021-07-30feat: add git reset action for git commits picker (#999)Joel Palmer
2021-07-25refactor: remove unused parameter (#1044)elianiva
2021-07-23fix: make path for send to qflist correct (#1037)Sebastian Lyng Johansen
2021-07-23chore: use stylua for formatting (#1040)Simon Hauser
* chore: stylua job and config * reformat with stylua
2021-07-17fix: prevent error if preview scroll is triggered but no preview is ↵Abe Nonym
available (#994)
2021-07-14refactor: move from telescope.path to plenary.path (#473)anott03
This will deprecate telescope.path, we will remove it soon. Please move over to plenary.path Co-authored-by: Simon Hauser <Simon-Hauser@outlook.de>
2021-07-10fix: pasting multiline register content (#971)toppair
2021-07-09hotfix: just only false to disableSimon Hauser
I knew i will break it with my last commit
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: option to `include_extensions` in `builtin` picker (#953)Luke Kershaw
- add option `include_extensions` which defaults to `false` - if `include_extensions` is `true` then add functions from extensions to results - update `actions.run_builtin` to check if extension function provided