summaryrefslogtreecommitdiff
path: root/lua/telescope/actions/init.lua
AgeCommit message (Collapse)Author
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>
2021-03-14feat & fix: Command History Picker (#656)tami5
2021-03-12feat: add `add_to_qflist`, `add_selected`, and `smart_add` (#636)elianiva
* feat: add `add_to_qflist`, `add_selected`, and `smart_add` * refactor: use local function
2021-03-09feat: add completion to pre-filtering (#626)fdschmidt93
Works by pressing `<C-l>` in insert mode. Supported are all builtins that have prefiltering. Means: - lsp_workspace_symbols - lsp_workspace_diagnostics - lsp_document_symbols - lsp_document_diagnostics
2021-03-07fix: `error using dictionary as a string` when running send_to_qflist (#622)oberblastmeister
2021-03-05feat: define scroll speed + smart_send to qflist (#610)elianiva
* smart send to qflist * Previewer scrolling for half window height * Start doing cleanup in readme * feat: add ability to define the scrolling speed * move scrolling action to action.set * docs: added more docs for actions * [docgen] Update doc/telescope.txt skip-checks: true Co-authored-by: Simon Hauser <Simon-Hauser@outlook.de> Co-authored-by: Github Actions <actions@github>
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-24fix: scroll misbehaving + fixed jump to middle (#547)elianiva
* fix: scroll misbehaving + fixed jump to middle * add test * fixx * fix nil
2021-02-24feat: adds M mapping in normal mode (#544)Hubert Pelczarski
2021-02-24feat: advanced normal mode (#463)Simon Hauser
Add <count>j and k to normal mode and H and L to jump at top and bottom of displayed results
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-04feat: Open quickfix list on it's own action (#497)Tae Sandoval
Given that Telescope has a picker for quickfix items, opening its window automatically isn't that useful, so this commit removes the call from send_to_qflist and send_selected_to_qflist. Some users may prefer the old behaviour though so a new action open_qflist was created. To open quickfix with one key, you can do this: ``` ["<C-q>"] = actions.send_to_qflist + actions.open_qflist, ``` Co-authored-by: Tae Sandoval <tssm@users.noreply.github.com>
2021-01-27Undo #465 (#469)anott03
We have broke all extension that do some sort of goto_file_selection:replace Problem described here: https://github.com/nvim-telescope/telescope.nvim/pull/465#issuecomment-767831897 Possible solution: https://github.com/nvim-telescope/telescope.nvim/pull/465#issuecomment-767808213
2021-01-25fix: move to actions.select as default action (#465)anott03
2021-01-23fix: escape filename for previewer and action (#456)elianiva
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
2021-01-04add selected command to cmd-history (#383)Senghan Bright
2020-12-21fix: normal mode toggle issueCedric M'Passi
2020-12-10Feat: symbols json picker (#303)Simon Hauser
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: add back filetypedetect on edit (#283)Mike Hartington
* add back filetypedetect on edit * chore(): apply feedback