summaryrefslogtreecommitdiff
path: root/lua/telescope/make_entry.lua
AgeCommit message (Collapse)Author
2021-09-10fix: jump to tag if buffer has unsaved changes (#1230)Simon Hauser
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-07-23chore: use stylua for formatting (#1040)Simon Hauser
* chore: stylua job and config * reformat with stylua
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-11refactor: Jumplist picker uses quickfix entry maker. Delete jumplist entry ↵caojoshua
maker. (#973)
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-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-27fix: display issues in `:Telescope registers` (#940)Luke Kershaw
* fix: display issues in `:Telescope registers` - Problems occured when a register contained newlines - Caused issues in `Picker:set_selection` - Couldn't move selection when a register with newlines was selected
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-10feat: improved configuration and sorting of ↵fdschmidt93
lsp_{document,workspace}_diagnostics (#867)
2021-05-30fix: attempt to concatenate when entry.kind == nil or or symbol_type == nil ↵Alex Mastro
(#853)
2021-05-11feat: add git_stash picker (#800)Amirreza Askarpour
2021-05-09feat: jumplist picker and jump to row/col on existing buffers. (#813)caojoshua
2021-05-08feat: add option to configure width of items in gen_from_lsp_symbols() (#812)Tom Praschan
2021-05-08feat: Add only_sort_tags option for builtin.tags (#825)Eugene Oliveros
2021-04-17fix: live_grep path appending with cwd when already absolute (#768)August Masquelier
2021-04-15feat: table layout for builtin commands (#754)Weihang Lo
2021-04-09feat: add icons to git_status finder (#401)Senghan Bright
* add icons to git_status finder * fix lint warning * fix incorrect removed icon * refactor, more states/icons * refactor, widen columns to allow for 3char width icons * attempted col width fix * fixup: small comments Co-authored-by: TJ DeVries <devries.timothyj@gmail.com>
2021-04-09fix: update to newer code (#744)TJ DeVries
2021-04-07fix: Use standardized names for current buffer fuzzy find (#737)TJ DeVries
2021-04-06feat: buf highlights for current buffer fuzzy find (#732)TJ DeVries
* feat: Add buffer highlights from treesitter * fix: Handle not having tree sitter in some buffers * fixup * fixup * fixup: move back to old node
2021-04-04feat: current buffer fuzzy find improvements (#694)August Masquelier
If you don't want to have a previewer disable it with `:Telescope current_buffer_fuzzy_find previewer=false` To ignore empty lines do: `:Telescope current_buffer_fuzzy_find skip_empty_lines=true`
2021-03-04fix: error from unset LspDiagnosticSign & introduce opts.no_sign to ↵fdschmidt93
lsp_*_diagnostics (#607)
2021-03-04feat: workspace diagnostics, jump to and improved styling (#599)fdschmidt93
Changes: `Telescope lsp_diagnostics` is now `Telescope lsp_document_diagnostics` New: `Telescope lsp_workspace_diagnostics` Co-authored-by: Fabian David Schmidt <fabian.david.schmidt@hotmail.com> Co-authored-by: elianiva <dicha.arkana03@gmail.com>
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-01refactor: move transform_devicons and get_devicons to utils (#580)ndavid
So extension developers can access them
2021-02-12fix: git_commits when a commit has no message (#529)Danilo Luvizotto
2021-02-09fix: all git builtin respect cwd now (#517)Simon Hauser
2021-02-08feat: show all sections in man_pages (#512)JINNOUCHI Yasushi
:Telescope sections=ALL
2021-02-02feat: add sections opt for man_pages and fix for macos (#413)JINNOUCHI Yasushi
:Telescope man_pages sections=3 will only show man pages from section 3 :Telescope man_pages sections=1,2,3 will show man pages from section 1, 2 and 3
2021-01-31fix: Multi byte truncate for displayer (#464)JINNOUCHI Yasushi
This is needed for calling strdisplaywidth() from Lua loop. See https://github.com/nvim-telescope/telescope.nvim/issues/414 See https://github.com/neovim/neovim/blob/a1ed941a7881122fda2fd48e71e890ed55e4d08e/src/nvim/eval/funcs.c#L9845-L9858 Co-authored-by: Simon Hauser <Simon-Hauser@outlook.de>
2021-01-11feat: only_search_text (#419)TJ DeVries
2021-01-04feat: Add highlight to builtin.git_status (#388)Cedric M'Passi
2021-01-04Fix missing global (#384)Senghan Bright
* add selected command to cmd-history * make N_ function global * fix vimoptions description resolution and add color
2021-01-03fix: termopen previewer for powershell (#382)Simon Hauser
2020-12-31fix: tags now work with hasktags (#375)Simon Hauser
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-27feat: all entry_makers are now overridable and icons for builtin.buffers (#364)tamago324
2020-12-19Feat: displayer hl_chars and TelescopeResults hlgroups (#349)Simon Hauser
2020-12-19More colours (#351)Senghan Bright
* add vim hl_groups for autocmds finder * spacing * add displayer/colouring for git_commits * LSP colouring and restore filename for workspace symbols * resolve review issues. * fix: handle 'show_line', 'ignore_filename', 'hide_filename' * fix lsp workspace defaults * allow for setting show_line when ignore filename is true * move lsp_doc_symbol lineinfo to 2nd column * reformat treesitter display to match LSP * use utility functions for setting opts defaults * add fix-me note for unlikely configuration permutation * use hl_chars format for inline lineinfo
2020-12-18Add more colour (#346)Senghan Bright
* add colour to buffers finder * new display function for LSP workspace/doc symbols * add more hl_groups and opts paramter * use make_display() for man_pages finder. * use make_display for registers finder and add color * don't use quickfix make_entry() for builtin finder * make_entry() for builtin finder * remove debug output * revert change to internal.builtin finder * fix_spacing
2020-12-17Update autocmd, highlights and help_tags previewers (#332)Simon Hauser
Also make vim buffer line configurable
2020-12-17feat: add search_dirs opt to builtin.find_files to search from multiple dirs ↵Anirudh Haritas Murali
(#237)
2020-12-13change quickfix make_entry to use column displayer (#331)Senghan Bright
* change quickfix make_entry to use column displayer * fix: don't convert filename to empty string
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-03Feat: Displayer now supports highlights for separator and elements (#304)Simon Hauser
Separator Example: When creating the displayer ```lua local displayer = entry_display.create { separator = " ", separator_hl = 'Visual', -- New items = { { width = opts.bufnr_width }, { width = 4 }, { remaining = true }, }, } ``` Elements Example: When submitting data ```lua local hl_group = x == y then 'Normal' or 'Visual' return displayer { entry.bufnr, { entry.indicator, hl_group }, display_bufname .. ":" .. entry.lnum, } ```
2020-12-02new builtin - autocommands (#302)Senghan Bright
* feat: new builtin - Autocommands finder * fix: remove decorators to avoid confusion. * make preview split same hl-group as border * use highlight instead of marker character for preview selection hl
2020-11-26Refactor builtin (#287)Simon Hauser
2020-11-23feat: Buffers rework (indicators and sorting) (#208)Simon Hauser