Commit Graph

1050 Commits

Author SHA1 Message Date
Simon Hauser
6daf35c88c fix: action mt so we can again concat actions from two different tables (#1143)
* fix: action mt so we can again concat actions from two different tables

- without actually changing the public interface
- without having a local table that keeps track of all actions

* this should clear actions now

we never actually called this function which is kinda a problem because
we never cleaned up previous mapping stores.
We can also make a better mappings store which has access to the keys
sequences which would help the showing actions part

* bugfix

* that should now clear everything

only tests left i think

* more tests

* cleanup

* hack: make sure all actions get cleared
2021-11-22 20:48:37 +01:00
Salomon Popp
6f82c6630c fix: error when opts is nil in pickers.new (#1471) 2021-11-20 16:07:52 +01:00
mroavi
af5a580310 docs: fix attempt to index nil opts in example (#1476) 2021-11-20 14:46:16 +01:00
Chris A James
7493f51700 docs: fix some spelling & grammar (#1475) 2021-11-20 11:03:52 +01:00
Luke Kershaw
d686fb2799 fix: cleanup of layout actions
* fix: finish docs and remove mistakes from merge

* fix: change order of `popup` changes based on type of change
  - removes "flash" issue where popups don't update in sync
2021-11-18 19:44:12 +00:00
Luke Kershaw
edcf07cf88 feat: layout actions (#1383)
Co-authored-by: johnybx <johnybx@users.noreply.github.com>
2021-11-18 19:44:12 +00:00
johnybx
b952c2f852 feat: add hide / unhide preview (#1305)
* 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-18 19:44:12 +00:00
Luke Kershaw
e9743620ce fix: use string.format on builtin.resume error message (#1465) 2021-11-18 19:44:16 +01:00
TJ DeVries
9ac89ebf67 Fixes #1371
Force clearing the highlights while the picker is still open
2021-11-15 15:50:23 -05:00
fdschmidt93
e77926a258 chore: reformat files.lua after stylua update (#1456) 2021-11-15 20:03:14 +01:00
fdschmidt93
404d2b5f10 feat: allow changing results/prompt title & persisting multi on picker:refresh (#1451) 2021-11-15 17:58:43 +01:00
Luke Kershaw
729492406e feat: exclude option for shorten in path_display (#1429)
* 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-14 09:37:15 +00:00
klausweiss
b2f16c788e fix: LSP code actions not working for some language servers (#1381) 2021-11-13 14:11:08 +01:00
Pranav Rao
3309526566 feat(worktrees): added support for bare repo git operations (#1370) 2021-11-13 14:09:47 +01:00
Simon Hauser
fc9ec7ffac chore: render nvim version as markdown 2021-11-13 13:52:40 +01:00
Desmond Chin
68308735c1 doc: fix typo in telescope.txt (#1431) 2021-11-13 13:50:53 +01:00
Cody Hiar
a9f8aaa618 Add link to changelog in README.md (#1447) 2021-11-13 11:24:22 +00:00
Luke Kershaw
22198ea588 docs: add a changelog entry for updated version requirements (#1444)
- also updates the error message to point to it
2021-11-13 11:17:15 +00:00
Luke Kershaw
bf77c5d2fa feat: results scrolling actions (#1436) 2021-11-13 11:15:07 +00:00
Zoltan Klinger
3d45c6c555 fix: typo in previewers documentation (#1450) 2021-11-13 08:52:08 +01:00
hungpt2702
f3ef592072 fix: actions.git_checkout_current_buffer calling deprecated method (#1439) 2021-11-10 14:18:02 +01:00
Andrew Wray
e4ab6d2844 Fix small typo in previewers section (#1433) 2021-11-09 09:35:39 +01:00
Luke Kershaw
4583828366 docs: generate docs for hl_result_eol (#1426)
Co-authored-by: Github Actions <actions@github>
2021-11-07 15:35:34 +00:00
Simon Hauser
078a48db9e docs: 0.5.1 or the latest nightly commit
Everything else is not supported
2021-11-05 16:07:17 +01:00
fdschmidt93
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
fdschmidt93
2097f11305 fix: deactivate binary ft detection for Win32 (#1413)
* Make `file` mime type detection for Windows users opt-in, as it caused issues when they had it
2021-11-04 07:32:02 +01:00
Julian Fricker
6652d4d555 feat: Full width select (#1403)
Can be changed back by setting 
telescope.setup {
  defaults = {
    hl_result_eol = false,
  }
}
2021-11-04 07:22:09 +01:00
Julian Fricker
6a8fbb53e0 breaking: bump nvim version requirement to 0.5.1 (#1406) 2021-11-04 07:20:17 +01:00
Simon Hauser
587a10d149 chore: remove a lot of deprecated stuff (#1399) nvim-0.5.0 2021-11-01 20:30:10 +01:00
Simon Hauser
0caec3d6e4 Revert "break: changed the results window highlight to always be full width (#1312)" (#1398)
This reverts commit 3b9ac8edba.
2021-10-31 17:02:38 +01:00
Luke Kershaw
c08f95823d fix: check if caret is present before removal (#1390) 2021-10-31 15:52:09 +00:00
Jack DeVries
d7f09f5895 doc: clarify quickfixlist abbreviation in README (#1392)
This really killed me when I was looking at this plugin for the first time. I spent like 20 minutes googling how to get search results into the quickfixlist because ctrl-F for "quickfixlist" on the README yielded no results!

There's nothing wrong with using the abbreviation in some places, but it should appear at least once in the form of `abbreviation (abbr.)`. That is, spelling it out next to the abbreviation at least once shows the reader the abbreviation they can search for next to learn more.
2021-10-30 15:30:39 +02:00
Julian Fricker
3b9ac8edba break: changed the results window highlight to always be full width (#1312)
Can be changed back by setting 
telescope.setup {
  defaults = {
    hl_result_eol = false,
  }
}
2021-10-29 18:57:41 +02:00
Luke Kershaw
02a02f7bcd fix: set preview titlehighlight when re-enabling preview (#1384) 2021-10-28 14:21:09 +01:00
Denis Cornehl
99a3988d6e fix: buitin.tags broke when tags-file was in wildignore (#1387)
regression from
6f829bf6bc333809dd97e532dbc88a7fcf297b02
https://github.com/nvim-telescope/telescope.nvim/pull/1122
2021-10-28 12:34:46 +02:00
Luke Kershaw
5809321290 feat: separate higlight for titles in picker windows (#1362)
- requires nvim-lua/plenary.nvim#260
2021-10-26 15:14:33 +01:00
Vsevolod
782d802d44 fix: missing check for negative index in cycle scrolling (#1372) 2021-10-24 16:01:18 +02:00
Simon Hauser
f31ef36293 fix: opts.git_command for files, commits, bcommits (#1374) 2021-10-24 08:30:31 +02:00
A. Schueler
09b0d87b9f fix: Exclude unlisted lsp buffers in oldfiles picker (#1219)
Files opened by LSPs are listed with a trailing `line 0` instead of a date like files opened by the user.
Use this behavior to filter out buffers that should not be displayed in oldfiles.
2021-10-24 08:22:56 +02:00
nickelc
a823ae8eb5 docs: fix typo in qflist_previewer's default value (#1363) 2021-10-24 08:20:08 +02:00
Luke Kershaw
f56222738b fix: always remove previous caret when change selection (#1364) 2021-10-21 10:46:32 +01:00
Simon Hauser
a0835edd86 fix: preview title key and a bug with dynamic_title (#1350) 2021-10-20 16:23:26 +02:00
Luke Kershaw
adfbd616c6 feat: recalculate picker layout on VimResized (#959)
* WIP: recalculate picker layout on `VimResized`

* refactor: `popup.resize` -> `popup.move`

* fix: scroll to the correct place after resize

* fix: update positioning in results buffer

* fix: completely redraw results buffer on resize

* fix: handle preview enable/disable

* fix: work with scrolling

* docs: add plan for `toggle_padding`

* refactor: factor out creation of picker windows

* refactor: pass highlights directly to popup_create

* refactor: remove lines update and factor out scroll repositioning

Co-authored-by: Github Actions <actions@github>
2021-10-20 11:06:10 +01:00
x1314aq
9cad3a4a5d fix(tags): wrong path separator on Windows (#1354)
the universal-ctags generates tag file in Unix path separator
even on Windows platform, this PR fix this.
2021-10-19 17:59:54 +02:00
Rafael Delboni
b5c63c6329 fix: Bug with nil action error (#1340)
only affects 0.5.1
2021-10-12 23:17:42 +02:00
fdschmidt93
c19eae901c feat: filtering for dynamic workspace symbols (#1336)
* enable `symbols` filtering opt for builtin.dynamic_workspace_symbols
2021-10-12 18:48:55 +02:00
fdschmidt93
45051df61b fix: loclist can have non current buf entries (#1333) 2021-10-12 14:42:41 +02:00
Zachary Churchill
3f45d64e9c feat: add gg and G to default mappings (#1325)
* feat: add `gg` and `G` to default mappings

* refactor: use action_state.get_current_picker

* docs: mention new default gg/G keymaps
2021-10-11 18:14:23 +02:00
Jean-Luc Bastarache
59f5873199 fix: highlighting when color_devicons=false (#1328) 2021-10-11 18:00:28 +02:00
Patrick Ziegler
ba41f0eeb1 fix: alias cwd_only and only_cwd option for buffers and oldfiles (#1316)
* Alias cwd_only and only_cwd option for builtins

Fixes #1199
Closes #1275
2021-10-09 15:40:08 +02:00