summaryrefslogtreecommitdiff
path: root/lua/telescope/previewers
AgeCommit message (Collapse)Author
2021-08-04fix: preview the correct man page section (#1076)zeertzjq
2021-07-23chore: use stylua for formatting (#1040)Simon Hauser
* chore: stylua job and config * reformat with stylua
2021-07-20fix: unknown filetype error message (#1034)Simon Hauser
2021-07-16fix: error from hopping faster than preview (#1006)fdschmidt93
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-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-05-11fix: prevents flickering when first loading a buffer preview entry (#797)Michał Nowotnik
There's a slight lag on the first preview loading (during preview buffer creation). It is not visible the next time user chooses a file for preview because scratch buffer for the file already exists. This lag *and* setting preview window to display the newly created buffer before its fully initialized causes a brief flash of blank terminal background. This change delays setting preview window to display the new preview buffer and consequently eliminates the flash. It should improve user experience since flickering can be distracting.
2021-05-11feat: add git_stash picker (#800)Amirreza Askarpour
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-07fix: only expand if we are not in_fast_event()Simon Hauser
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-26fix: change git previewers from using -P to --no-pager for better ↵Jae-Won Chung
compatibility (#558)
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-12feat: buffer previewers ls is now colorized (#505)Simon Hauser
Requires up to date plenary version
2021-02-09fix: all git builtin respect cwd now (#517)Simon Hauser
2021-02-02remove bat env theme variable (#489)Raphael
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-02-01fix: remove env workaround for term_previewer (#482)Simon Hauser
Also fixes #484
2021-01-30fix: dont error if the previewer is not able to set at the current timeTJ DeVries
2021-01-30fix: no TS highlight if it gets loaded after Telescope (#479)elianiva
2021-01-30fix: git branches previewer add nil check to cend (#478)Corentin Brunel
Co-authored-by: Corentin Brunel <cbrunel@localhost.localdomain>
2021-01-24fix: allow previewer win customization (#460)Alvaro Muñoz
2021-01-23fix: escape filename for previewer and action (#456)elianiva
2021-01-22feat: add vim buffer directory viewer using plenary scandir.ls_async (#421)Simon Hauser
feat: git_status (??) now shows file or directory fix: attempt to index field 'state' (a nil value)
2021-01-19fix: error message too many open files (#432)Simon Hauser
and buffer previewer still "erroring" out for builtin.buffers
2021-01-15fix: preview for unnamed buffers (#434)Simon Hauser
2021-01-15feat: show git log for remote branches (#428)Simon Hauser
2021-01-11refactor file_maker signature and fix scrolling (#412)Simon Hauser
2021-01-11fix: previewer windows fix (#371)Simon Hauser
2021-01-09fix: use valid paths for term_previewer vimgrep and qflist (#402)JINNOUCHI Yasushi
2021-01-05fix: handle directories in windows with dir (term_previewer) (#395)Mike
2021-01-03fix: termopen previewer for powershell (#382)Simon Hauser
2021-01-01fix: make sure preview buffer is valid before writing to it (#376)Alvaro Muñoz
2020-12-31fix: tags now work with hasktags (#375)Simon Hauser
2020-12-31fix: has ts (#374)Simon Hauser
2020-12-30fix: add ts_parsers.ft_to_lang to detect lang (#373)fffed
Add detection of a proper buffer language by `ts_parsers.ft_to_lang` as `ts_parsers.has_parser` works with `language` but not with `filetype` https://github.com/nvim-treesitter/nvim-treesitter/issues/796
2020-12-30feat: append mode for previewers.utils.job_maker (#372)Alvaro Muñoz
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-19Refactor previewers (#345)Simon Hauser