summaryrefslogtreecommitdiff
path: root/lua/telescope/utils.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-13chore: delete unused functions (#1788)Simon Hauser
* chore: delete unused functions * chore: remove unused file No one needs this WIP file as well. We already have all these pickers implemented in a better way
2022-03-11feat(lsp): ignore_symbols option (#1745)tami5
Co-authored-by: Simon Hauser <Simon-Hauser@outlook.de>
2021-12-27fix: transform_path nil input (#1576)Simon Hauser
2021-12-10feat: migrate to Telescope diagnostics using vim.diagnostic (#1553)Simon Hauser
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-14feat: `exclude` option for `shorten` in `path_display` (#1429)Luke Kershaw
* feat: allow excluding positions for `shorten` in `path_display` * [docgen] Update doc/telescope.txt skip-checks: true Co-authored-by: Github Actions <actions@github>
2021-11-01chore: remove a lot of deprecated stuff (#1399)Simon Hauser
2021-09-20feat(defaults): enable customization of path_display.truncate (#1264)tami5
followup to https://github.com/nvim-telescope/telescope.nvim/pull/1254 and implementation of https://github.com/nvim-telescope/telescope.nvim/pull/1254#issuecomment-922527270
2021-09-19feat: `truncate` option for `path_display` (#1254)Luke Kershaw
2021-09-12feat: smart path (#914)qualious
path_display = { "smart" } Co-authored-by: Deniz <deniz@admentum.se> Co-authored-by: Simon Hauser <Simon-Hauser@outlook.de>
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-01doc: generate docgenSimon Hauser
i forgot it. My bad
2021-09-01feat: add utility for fetching buffer directory (#902)Logan Connolly
2021-08-20startup: load once and only when called for devicons (#1139)TJ DeVries
2021-08-06fixup: styluaTJ DeVries
2021-08-06fix: Do not transform URIsTJ DeVries
2021-07-23chore: use stylua for formatting (#1040)Simon Hauser
* chore: stylua job and config * reformat with stylua
2021-07-18feat: check type of `path_display` and warn user if wrong (#1023)Luke Kershaw
2021-07-16feat: Add length option for `shorten_path` (#886)Luke Kershaw
* feat: add `shorten_len` option for path shortening - adds option to configure the length of shortened parts of filenames - only affects paths when "shorten" is in `path_display` * chore: revert rebase for `path.lua` to 876bed9 * refactor: replace `shorten_len` with the `shorten` key in `path_display` - also deprecates `utils.path_shorten` and passes straight to `plenary`s `Path:shorten` * feat: allow `path_display` to handle table keys, as well as strings
2021-07-16feat: Add ability to have a user defined function to format the path display ↵Nazeeh ElDirghami
(#1000)
2021-07-14chore: changelog for 473 (#992)Simon Hauser
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-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-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: add filtering by symbol(s) to lsp_{document,workspace}_symbols (#903)fdschmidt93
2021-06-10feat: improved configuration and sorting of ↵fdschmidt93
lsp_{document,workspace}_diagnostics (#867)
2021-04-20fix: support multiple clients in lsp code actions (#722)William Boman
* fix: support multiple clients in lsp code actions * no goto * reduce diff a bit * use displayer, also include lsp client name for each entry * review comments
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-02fix: make sure devicons are loaded (#590)Simon Hauser
2021-03-01refactor: move transform_devicons and get_devicons to utils (#580)ndavid
So extension developers can access them
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: proper multibytes chars alignment (#560)elianiva
I am 100% did not spoil anything, I swear
2021-02-09fix: all git builtin respect cwd now (#517)Simon Hauser
2021-02-09hotfix: displayer showing now items on windows (#515)JINNOUCHI Yasushi
No longer use ffi for strdisplaywidth and utf_ptr2len on windows. That might lead to wrong truncations on windows but its better than nothing.
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-15feat: show git log for remote branches (#428)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-07feat: Force delete buffersTJ DeVries
2020-12-03fix: Set and unset report to what's needed when deleting buffers. (#282)Julian Berman
Fixes #105.
2020-11-13fix: Multiple Previewer fixes (#225)Simon Hauser
Fixes previews for files beginning with ~/ Previewer will now show directories Fix if clause with vim.fn.executable
2020-11-02feat: v1 options menu (#133)Senghan Bright
Still has a bunch of improvements that can be done, but wanted to merge in some of the related changes. * options parser * wip: vimoptions finder * feat: pre-populate ex-command line with `:set foo=` * use options current value when populating command line * fix: use result.raw_value to store original option value * . * options: Continue work on option finder * [WIP]: Tue 27 Oct 2020 10:34:09 PM EDT * [WIP]: Mon 02 Nov 2020 08:20:13 PM EST * [WIP]: Mon 02 Nov 2020 09:04:23 PM EST Co-authored-by: TJ DeVries <devries.timothyj@gmail.com>
2020-10-15fix: Use entry maker for marksTJ DeVries
2020-09-28fix: 126TJ DeVries
2020-09-24wip: Add some stuff for nvim_fileTJ DeVries
2020-09-17feat: Improved previewers and cleanupTJ DeVries
2020-09-16feat: Easy Termopen for Previewer (#88)TJ DeVries
First pass, but seems to work. Fixed a few other related items, so pushing it to master now. * [WIP]: Wed 16 Sep 2020 05:17:10 PM EDT * [WIP]: Wed 16 Sep 2020 06:10:33 PM EDT * [WIP]: Wed 16 Sep 2020 06:19:43 PM EDT
2020-09-12feat: builtin.commands (#54)TimUntersberger
* fix: use correct path separator on windows * fix: add utils.get_separator * asdf * feat: add builtin.commands * change commands sorter * change sorter * change sorter
2020-09-04fix: Don't push past midnight. You'll make clason's stuff break :/TJ DeVries