Commit Graph
70 Commits
Author SHA1 Message Date
Marco De DonnoandSimon Hauser 6d2be79385 fix: do not alter jumplist when jumping to a line in a file (#2910)
(cherry picked from commit 236083884c)
2024-03-06 11:12:43 +01:00
rjooskeandSimon Hauser 199ce5fc25 fix(previewer): buffer previews for term not initially scrolled (#2899)
(cherry picked from commit e54fbf4ab2)
2024-03-06 11:10:50 +01:00
atusyandSimon Hauser 9594a7eb46 fix(previewer): buffer_previewer_maker now receives all necessary opts everywhere (#2833)
(cherry picked from commit 301505da4b)
2024-03-06 11:08:23 +01:00
Garry FilakhtovandSimon Hauser d0f095243b fix: jumplist picker resume after bwipeout (#2753)
With this change we will check if the provided buffer number is valid,
before querying its `buftype` option. This is necessary, because
currently we would fail with:
```
Error executing vim.schedule lua callback:
...scope.nvim/lua/telescope/previewers/buffer_previewer.lua:473:
Invalid buffer id: X
```
error, if we try to resume a jumplist picker after doing `:bwipeout`.

(cherry picked from commit 4522d7e3ea)
2023-11-28 11:19:08 +01:00
James TrewandSimon Hauser f97f4a04f7 fix: previewers & entry maker file encoding (#2430)
(cherry picked from commit c8b65238e8)
2023-05-24 17:08:36 +02:00
KevinSilvesterandSimon Hauser ce5cc56dee fix(preview): update mime-type check for json files (#2221) (#2480)
(cherry picked from commit 89c67676a8)
2023-05-14 22:18:03 +02:00
zoriyaandSimon Hauser 5c06f24ed3 fix: make git_status diff works with staged files (#2421)
(cherry picked from commit eba418cca7)
2023-04-09 10:23:32 +02:00
Simon Hauser fd1b8bd9cf fix: preview = true (#2168)
(cherry picked from commit 3a29c1e89d)
2023-01-06 14:27:30 +01:00
Fabian David SchmidtandSimon Hauser fdb4be95df fix(previewer): regression on live_grep (#2119)
(cherry picked from commit 8f80e82108)
2022-08-10 22:14:56 +02:00
Fabian David SchmidtandSimon Hauser 42bebcb81c fix(buffer_previewer): bypass path validation for terminal buffers (#2117)
(cherry picked from commit 787db424e3)
2022-08-10 22:14:50 +02:00
Simon HauserandGitHub 10a3310546 fix: from_entry escape and validation (#2058) 2022-07-10 21:28:22 +02:00
Simon HauserandGitHub 9b3afe51c4 fix: autocmd, show desc if available (#2046) 2022-07-07 16:45:32 +02:00
Simon Hauser 75deb22aa8 fix: crash in tags on enter for no results and random crash in previewer 2022-07-01 19:18:30 +02:00
Simon Hauser 4ef490defa fix: Inconsistent Color highlighting inside Git File Diff Preview
fix #1098
2022-06-30 14:01:52 +02:00
Simon HauserandSimon Hauser 77e2b8ceea chore: cleanup autocmd builtin (#1947) 2022-06-30 14:01:51 +02:00
zeertzjqandGitHub d96eaa914a fix: block autocommands when setting preview buffer (#2010)
Telescope creates most floating windows with `noautocmd = true`, so
these windows do not trigger autocommands, but preview buffer is set in
window using `nvim_win_set_buf()`, which triggers buffer autocommands.
This may be unwanted, so block them using 'eventignore'.
2022-06-15 10:43:10 +02:00
Simon HauserandGitHub 3d304a9a55 fix: TelescopePreviewerLoaded (#2005) 2022-06-13 21:49:10 +02:00
ibhagwanandGitHub cf2d6d3428 fix (tags|btags): escape all special characters (#1806) 2022-03-26 10:29:34 +01:00
ef7b6ada6d feat: improve UX with vim.notify (#1763)
* 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-13 18:11:27 +01:00
Simon HauserandGitHub 2d0b4a3243 fix: disable signcolumn in telescope windows (#1781) 2022-03-11 15:34:39 +01:00
LauraandGitHub a7517b4b2d refactor: remove redundant state in preview (#1761) 2022-03-10 16:34:02 +01:00
Simon HauserandGitHub 234066f875 fix: man_pages previewer, respecting MANPATH and apropos output parsing (#1764)
- introducing putils writer and use it rather than using PAGER env var
- introducing env for lua/telescope/_.lua job interface
  - to respect MANPATH (and PATH just in case)
- fix for apropos output parsing might return e.g. `alacritty, Alacritty`
  We need to split on first `,`
2022-03-10 13:48:40 +01:00
Vedant NeemaandGitHub 567ec85b15 fix builtin.autocommands throwing error (#1758) 2022-02-23 15:36:45 +01:00
daangoossens22andGitHub c948263d89 fix: builtin autocommands previewer throws error (#1732) 2022-02-14 17:36:55 +01:00
smhcandGitHub 991d0127f0 fix: previewer for builtin.builtin (#1583) 2021-12-10 11:44:50 +01:00
Simon HauserandGitHub d0083f9e4c fix: git_branch previewer highlighter error (#1543) 2021-12-05 08:39:16 +01:00
Simon HauserandGitHub a8e9aa58a4 fix: issue when scrollbind is set (#1496) 2021-11-26 22:42:54 +01:00
fdschmidt93andGitHub 97842abb03 fix: revert buffers previewer (#1400)
* Reverts #1120 many issues arise (mru, highlighting, settings inheritance, ...) when previewing actual buffers
2021-11-04 07:55:32 +01:00
Simon HauserandGitHub a0835edd86 fix: preview title key and a bug with dynamic_title (#1350) 2021-10-20 16:23:26 +02:00
fdschmidt93andGitHub ec48777990 fix: stacking highlights in buffer previewer (#1294) 2021-10-04 22:35:22 +02:00
fdschmidt93andGitHub a6c7498bdc feat: filetype_hook & improved docs; fix preview partial override (#1273) 2021-09-27 15:24:35 +02:00
Sávio Carlos Martins CostaandGitHub 87471bc3ff feat: add highlight group: TelescopePreviewMessage (#1286)
* feat: add highlight group: TelescopePreviewMessage

* fix indentation from 4 to 2 spaces
2021-09-27 11:59:05 +02:00
Simon HauserandGitHub 41f362006b fix: tags now also support suppercollider tags (#1284) 2021-09-26 12:56:06 +02:00
fdschmidt93andGitHub 2e7584f1cf fix: stacked hooks in buffer previewer (#1253) 2021-09-17 20:02:56 +02:00
fdschmidt93andGitHub 7c5b846f6f feat: skip/timeout preview if file cannot be easily previewed (#1231)
* For full configuration, see `:h telescope.defaults.preview`
* Unblocks previewer on binaries, too large files, and files that take too long to read
* Allows toggling treesitter highlighting for buffer_previewer
* Allows to globally opt out of previewer
2021-09-16 23:01:40 +02:00
fdschmidt93andGitHub 1c35ea319e fix: stale lnum in buffer previewer (#1229)
* fix: lnum to jump to might be stale eg when resuming buffer picker after changes
2021-09-10 13:21:04 +02:00
fdschmidt93andGitHub ac42f0c26c fix: clear buffer previewer fully for caching (#1201) 2021-09-02 16:36:08 +02:00
fdschmidt93andGitHub 97b7e6095f fix: string display for builtin.pickers (#1194) 2021-09-01 21:54:14 +02:00
fdschmidt93andGitHub 5d37c3ea08 feat: allow caching and resuming picker (#1051)
* expose `cache_picker` in telescope.setup to configure caching, see `:h telescope.defaults.cache_picker`
* add builtin.resume and builtin.pickers picker
2021-09-01 18:17:18 +02:00
Omar ZeghouaniandGitHub a1a7785acf fix: autocommands cursor outside of buffer (#1157)
Closes #957
2021-09-01 16:12:28 +02:00
fdschmidt93andGitHub 50e5e86ac3 fix: safer teardown of buffer previewer (#1158) 2021-08-23 20:20:41 +02:00
fdschmidt93andGitHub 79dc995f82 fix: (terminal) buffer previewer (#1120)
Use existing buffers for buffer previewer to allow previewing special buffer types
2021-08-23 15:27:11 +02:00
zeertzjqandGitHub 654903fc04 fix: preview the correct man page section (#1076) 2021-08-04 22:19:39 +02:00
Simon HauserandGitHub 79644ab677 chore: use stylua for formatting (#1040)
* chore: stylua job and config

* reformat with stylua
2021-07-23 11:42:37 -04:00
fdschmidt93andGitHub 3f841cb3c5 fix: error from hopping faster than preview (#1006) 2021-07-16 22:24:54 -04:00
df579bac42 refactor: move from telescope.path to plenary.path (#473)
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-14 19:25:00 +02:00
6ac5ee0854 feat: cycle previewers with commit and bcommit already using it (#528)
- 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-14 21:50:46 +02:00
Michał NowotnikandGitHub 22a78a4636 fix: prevents flickering when first loading a buffer preview entry (#797)
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-11 20:16:04 +02:00
Amirreza AskarpourandGitHub 9fd242db26 feat: add git_stash picker (#800) 2021-05-11 10:20:57 +02:00
Simon HauserandGitHub aefc831735 fix: no longer leaking one buffer previewer in some occasions (#664)
* 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-30 12:32:18 +02:00