summaryrefslogtreecommitdiff
path: root/lua/telescope/config.lua
AgeCommit message (Collapse)Author
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-08Consistent filepath display and code cleanup. (#839)caojoshua
BREAKING CHANGE: see :help telescope.changelog-839 for more information Co-authored-by: Simon Hauser <Simon-Hauser@outlook.de>
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-14chore: use plenary.strings and remove strings functions from utils (#690)JINNOUCHI Yasushi
Co-authored-by: Simon Hauser <Simon-Hauser@outlook.de>
2021-06-09feat: set defaults for each picker in telescope setup (#883)Simon Hauser
This allows easier picker configuration for example: ```lua require("telescope").setup { pickers = { buffers = { show_all_buffers = true, sort_lastused = true, theme = "dropdown", previewer = false, mappings = { i = { ["<c-q>"] = "smart_send_to_qflist", } } } } } ``` This configuration will be applied when running `:Telescope buffers`
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-03feat: lsp diagnostics and prefiltering by entry attribute (#543)fdschmidt93
prefiltering for lsp_document_symbols and lsp_workspace_symbols. example: type `:var:` to show all vars
2021-03-03docs: start documenting previewers (#574)Simon Hauser
Co-authored-by: Muhammed Zakir <MuhammedZakir@users.noreply.github.com>
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-24feat: Add vim docs & generators (#370)TJ DeVries
* feat: Add vim docs & generators * example of what we could start to do * Docgen CI job * wip * incremental updates. soon good validation * [Actions] Generate Documentation skip-checks: true * pretty cool now * [Actions] Generate Documentation skip-checks: true * make sure telescope is loaded first * Add updates. Maybe this will not delete now? * Add defaults tags as well * :smile: Co-authored-by: Simon Hauser <Simon-Hauser@outlook.de> Co-authored-by: Github Actions <actions@github>
2021-02-24feat: make buffer previewer default and deprecate bat previewer (#420)Simon Hauser
To revert back to bat previewers put this into your config: file_previewer = require'telescope.previewers'.cat.new, grep_previewer = require'telescope.previewers'.vimgrep.new, qflist_previewer = require'telescope.previewers'.qflist.new,
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-04nit: Abstract some functions (#498)TJ DeVries
2021-02-01fix: remove env workaround for term_previewer (#482)Simon Hauser
Also fixes #484
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-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
2020-12-29feat: All buffer previewers are now async and more config options (#354)Simon Hauser
Configure preview window with: autocmd User TelescopePreviewerLoaded setlocal wrap autocmd User TelescopePreviewerLoaded setlocal number file_maker example: Use regex highlighting for certain filetype like `*min.js` because they slow down things with treesitter highlighter. Just a snippet for tests. We will do an extension :) local previewers = require('telescope.previewers') local putils = require('telescope.previewers.utils') local pfiletype = require('plenary.filetype') local _bad = { '.*%.min%.js' } local bad_files = function(filepath) for _, v in ipairs(_bad) do if filepath:match(v) then return true end end return false end local new_maker = function(filepath, bufnr, bufname, use_ft_detect, callback) if use_ft_detect == nil then use_ft_detect = true end if bad_files(filepath) then previewers.buffer_previewer_maker(filepath, bufnr, bufname, false, callback) local ft = pfiletype.detect(filepath) putils.regex_highlighter(bufnr, ft) else previewers.buffer_previewer_maker(filepath, bufnr, bufname, use_ft_detect, callback) end end require('telescope').setup { defaults = { buffer_previewer_maker = new_maker, } }
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-09Feat: Opt in vim buffers for previewers (#298)Simon Hauser
Enable with: require('telescope').setup { defaults = { file_previewer = previewers.vim_buffer_cat.new, grep_previewer = previewers.vim_buffer_vimgrep.new, qflist_previewer = previewers.vim_buffer_qflist.new, } }
2020-11-22Various previewer fixes (#260)Simon Hauser
- Set env vars for previewer with set_env({ key = value } fix #228) - Set pager for git previewes (default is GIT_PAGER=less so users can scroll see #253) - Use less for people who don't have bat but less installed - Reset less env to only '-RS' because '-X' will break scrolling(fix #253, thanks @eth3lbert) - Scrolling for buffer previewer(thanks @tami5 for helping) - Also new function to create buffer previewers (which has scrolling by default). Used for tags and help_tags previewer. - Add new setting set_env to readme
2020-10-30feat: Closes #205TJ DeVries
2020-10-25feat: Add ability to turn off devicon colorsTJ DeVries
2020-10-19feat: Add ability to configure default sortersTJ DeVries
2020-10-17refactor: prompt->prompt_title (#169)Alvaro Muñoz
* refactor: prompt->prompt_title ; prompt_prefix->prompt_text * undo prompt_prefix rename * undo prompt_prefix rename
2020-10-09fix: Add 'use_less' config valueTJ DeVries
2020-10-08feat: Add scroll_strategy = 'cycle'TJ DeVries
2020-10-08fix: Allow people to still override ALL the mappingsTJ DeVries
2020-10-08feat: Add more easily customizable mappings.TJ DeVries
Closes: #131
2020-10-08fix: Remove space that I did not mean to addTJ DeVries
2020-10-08feat: prompt_prefix option (#154)Alvaro Muñoz
* enable prompt_prefix option * add hl and default value * default hl and prefix * fixup: move the redraw til after prompt create * fixup: nits Co-authored-by: TJ DeVries <devries.timothyj@gmail.com>
2020-10-08feat: ALPHA Add layout_defaults and layout_config optionsTJ DeVries
2020-10-08fix: Remove useless prompt_titleTJ DeVries
2020-10-04fix: Results height configurable. Properly collapse on border = falserockerBOO
2020-09-29feat: Add status, better debug, and some associated refactorsTJ DeVries
* [WIP]: Mon 28 Sep 2020 01:08:24 PM EDT * add much much better tracking. so much less hax * status updates, oneshot job updates, etc. * remove temp function * add status function * asdfasdfasdf
2020-09-11Add smart case to vimgrep arguments (#60)Christian Clason
2020-09-11feat: Add some more layout optionsTJ DeVries
2020-09-11feat: add top down prompt positionTJ DeVries
2020-09-10feat: add border and bordercharsTJ DeVries
2020-09-10Allow easily changing grep argumentsTJ DeVries
2020-09-07Begin work on larger global config, to tailor defaultsTJ DeVries
2020-09-04feat: vertical layouts. see 'layout_strategy'TJ DeVries