summaryrefslogtreecommitdiff
path: root/lua/telescope/actions/init.lua
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-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-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-06typo: `which_key` (#1560)GenesisTMS
2021-12-03fix: actions.delete_buffer shouldnt force deleteSimon Hauser
fix #1541
2021-11-23fix: telescope close process and cleanup layout actions (#1480)Simon Hauser
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: 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-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-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-10fix: pasting multiline register content (#971)toppair
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
2021-07-03feat: select_all, toggle_all and drop_all actions (#931)fdschmidt93
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-31feat: send to loclist (#868)runiq
2021-05-30Add documentation for quickfix actions (#869)runiq
* Add documentation for quickfix actions * [docgen] Update doc/telescope.txt skip-checks: true Co-authored-by: Github Actions <actions@github>
2021-05-11fix: rename `actions.git_switch` to `git_switch_branch` (#835)Kyoichiro Yamada
2021-05-11create new action: git switch (#798)Kyoichiro Yamada
* create new action: git switch If the branch already exists in local, switch to that. If the branch is only in remote, create new branch tracking remote and switch to new one. * fix a point of review * fix a point of review: map to git-switch action * Revert "fix a point of review" This reverts commit 017ce424a3adfe1b3712a421385cfc3f4258a0fb. * undocument header comment
2021-05-11feat: add git_stash picker (#800)Amirreza Askarpour
2021-04-23docs: Git actions docs fix (#787)Ben Smith
* Removed function headers for git actions * [docgen] Update doc/telescope.txt skip-checks: true * [docgen] Update doc/telescope.txt skip-checks: true * Added TODO & comments instead of removing headers * [docgen] Update doc/telescope.txt skip-checks: true Co-authored-by: Github Actions <actions@github>
2021-04-23feat: add search history picker (#769)Volodymyr Kot
Co-authored-by: Volodymyr Kot <vkot@palantir.com>
2021-04-14git(action): create and checkout branch (#755)Ben Smith
* added git action for creating and checking out a new branch, added basic docstrings for git actions * Added confirmation for creation of new branch, changed default mapping to <c-u> * Switched back to `<c-a>` default mapping for now
2021-04-03Fix git rebase input message (#720)Thiago Medeiros
2021-03-17fix: related to #13 telescope-project, enter insert mode on prompt close (#637)Christopher Laidler
* fix: related to #13 telescope-project, enter insert mode on prompt close * fix: related to #13 telescope-project, enter insert mode on prompt close * revert changes made in error * fix PR issue * fix: undefined variable do_close * use action_state as actions is deprecated * [docgen] Update doc/telescope.txt skip-checks: true Co-authored-by: Github Actions <actions@github>