Commit Graph

114 Commits

Author SHA1 Message Date
Simon Hauser
544c5ee407 fix: termopen previewer (#1901)
- buffer leaking
- still insert mode on confirm
2022-05-01 09:46:50 +02:00
Austin Ray
557c8b98c5 docs: add 'https://' prefix to smart history link (#1885) 2022-04-30 12:35:34 +02:00
fdschmidt93
7cde1ca834 fix(actions): don't exec pre or post if replaced (#1892) 2022-04-28 15:37:01 +02:00
fdschmidt93
8b02088743 fix(which_key): get full path & handle table assignment of funcrefs (#1875) 2022-04-22 23:40:39 +02:00
Dave Lage
697ee7aa70 feat: lua autocmd (#1707) 2022-04-22 16:20:59 +02:00
kylo252
cc1a3440f9 fix: fix keep insert when going from telescope window to telescope window (#1600)
Also fixes `initial_mode`

Co-authored-by: Simon Hauser <Simon-Hauser@outlook.de>
2022-04-22 16:13:32 +02:00
fdschmidt93
d88094fbfd feat: show assigned function in actions.which_key (#1871) 2022-04-22 15:52:22 +02:00
Simon Hauser
831f76a809 docs: add module prefix (#1847) 2022-04-18 08:21:00 +02:00
Simon Hauser
a5be929142 docs: document more actions and add introduction to actions (#1829) 2022-04-17 14:47:13 +02:00
Joshua Cao
8af0d384d2 fix: save position into jumplist before 'edit' action (#1234)
currently enabled for some builtins. You can manually enable it by adding `push_cursor_on_edit = true` to the builtin options. But feel free to open a PR if you find a builtin that needs this option enabled.
2022-04-08 20:09:58 +02:00
Simon Hauser
d38ad438f3 fix: action replace/enhance if the replaced/enhanced action as combined (#1814) 2022-03-31 18:42:38 +02:00
Dhruv Manilawala
5a93a6f005 fix: typo for notify log level (#1813) 2022-03-30 21:43:32 +02:00
Dhruv Manilawala
4eedf1599e fix: add %s to notify message of git checkout action (#1812) 2022-03-30 17:12:46 +02:00
Jonathan Birk
6a43634f5f doc: help for select_{default,tab,vertical,horizontal} (#1801) 2022-03-20 20:08:54 +01:00
Luke Kershaw
f8a67765f5 fix: default layout_config to {} on cycle_layout actions (#1796) 2022-03-20 11:26:51 +01:00
Simon Hauser
9f0dd2e402 fix: action mt again (#1487)
actions should be concatinable again
2022-03-13 19:22:16 +01:00
tami5
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
Daniel Imfeld
b501d9ecb7 fix: skip path escaping when adding items to quickfix list (#1712) 2022-03-06 20:34:44 +01:00
Vivianne
1ebf53d8db docs: fix typo 'seperator' in documentation (#1767) 2022-03-04 13:31:25 +01:00
Connor Sheehan
88229d5afd fix(actions.qflist): make it work with vim quickfix commands (#1742)
use `r` mode to instead use `" "` mode. This makes Telescope quickfix list action send results
to a new list in the quickfix stack instead of overwriting the entries in the current list. 

Doing so enables `:chistory`, `:colder` and `:cnewer` functions to review results of 
previous Telescope queries.

The location list uses a similar API and is updated in this PR also
(ie this also enables :lhistory, :lolder and :lnewer).
2022-02-13 03:00:52 +03:00
Christian Clason
21cb64aa1a fix(action): insert symbol in insert mode (#1722)
followup to #1618, ensure insert after cursor
2022-01-28 16:12:50 +01:00
Luke Kershaw
2bfc0eb2cf fix: update multi_icon with select/drop/toggle_all actions (#1682)
* fix: `multi_icon` with `select/drop/toggle_all`

* typos

* fix: add check for no caret found

* fix: add check for no line found

* fix: check `max_results` in `Picker:can_select_row`

- also switch order of highlighting in `select/drop/toggle_all` actions

* fix: make `max_results` check a strict inequality

* [docgen] Update doc/telescope.txt
skip-checks: true

* fix: update `prompt_status` on `select/drop/toggle_all` actions

Co-authored-by: Github Actions <actions@github>
2022-01-15 22:27:03 +00:00
Simon Hauser
c54fc1733e Revert "fix: folding when a file is opened (#1643)" (#1673)
This reverts commit 01426c491b.
2022-01-09 21:18:15 +01:00
Abel Mulugeta
01426c491b fix: folding when a file is opened (#1643)
* fix: folding after a file is opened

fixes #559

* fix: wrap nvim_win_set_cursor in autocmd

* chore: Cleanup folding fix

* explain the reason behind the autocmd

Co-authored-by: Simon Hauser <Simon-Hauser@outlook.de>
2022-01-09 18:49:19 +01:00
Luke Kershaw
1bb5d5567f fix: allow which_key action without preview (#1668) 2022-01-09 18:40:40 +01:00
kylo252
a1f838d436 chore: remove redundant run_builtin action (#1589) 2021-12-27 09:48:34 +01:00
Christian Clason
7ebc27d818 fix(actions): force insertmode after inserting symbol (#1618)
required after upstream changes to prompt buffer behavior
(see
 28134f4e78)

Fixes #1608
2021-12-27 09:40:37 +01:00
Jieru Mei
3f4ee6f267 fix: which_key action foldenable=false by default (#1578) 2021-12-10 09:55:24 +01:00
Richard Lu
a20f01353b fix: ensure buffer is listed before edit_buffer (#1492) 2021-12-06 21:13:24 +01:00
GenesisTMS
a88d92417d typo: which_key (#1560) 2021-12-06 21:12:42 +01:00
Simon Hauser
4016ebe8e8 fix: actions.delete_buffer shouldnt force delete
fix #1541
2021-12-03 17:28:15 +01:00
Simon Hauser
1c57cc6140 Revert "fix: action mt so we can again concat actions from two different tables (#1143)" (#1486)
This reverts commit 6daf35c88c.
2021-11-23 23:51:25 +01:00
Simon Hauser
7695d224c8 fix: telescope close process and cleanup layout actions (#1480) 2021-11-23 21:11:05 +01:00
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
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
bf77c5d2fa feat: results scrolling actions (#1436) 2021-11-13 11:15:07 +00:00
hungpt2702
f3ef592072 fix: actions.git_checkout_current_buffer calling deprecated method (#1439) 2021-11-10 14:18:02 +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
Simon Hauser
587a10d149 chore: remove a lot of deprecated stuff (#1399) 2021-11-01 20:30:10 +01: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
fdschmidt93
440c598de4 fix: which key float positioning (#1293)
* Adjust which key float positioning for recent plenary and telescope theme changes
2021-09-30 15:53:06 +02:00
Jonas Strittmatter
4e629cdea1 fix: show error message when nothing is selected (#1289)
* fix: always show error message when nothing is selected

This continues the fixes done in 4816a27d76 (ref #1283)

* Use correct variable name (selection) and add one more nil check

* Fix indentation
2021-09-27 20:45:27 +01:00
gavynriebau
ac03f495c6 fix: wrap vim.cmd in pcall to avoid error (#1247)
When opening a file under swap from the "fd" finder results an error was
printed after the file was opened, wrapping the call to "vim.cmd" in a
pcall avoids the error.
2021-09-16 12:02:24 +02:00
Simon Hauser
5131df7df1 docs: rewrite readme and add missing config values + builtin opts 2021-09-16 11:12:12 +02:00
fdschmidt93
29997233bc fix: make qf commands possible from any picker (#1237)
* Allow any qf cmd by defaulting to {lnum=1, col=1} for qflist if values are unset
2021-09-13 18:30:14 +02:00
thibthib18
b4d6eb9a23 feat: git merge branch action (#1220) 2021-09-10 08:50:58 +02:00
August Masquelier
12a44ededa fix(actions_generate.which_key): overriding opts (#1221)
* Fix error from type mismatch on repeated calls of `action.which_key` when instantiated by `actions.generate`
2021-09-07 17:29:57 +02:00
fdschmidt93
fbe004142f feat: show keymaps for builtin actions (#1084)
* Add default mappings `<C-/>`and `?` for insert and normal mode, respectively, to show registered keymappings (`actions.which_key`) attached to prompt buffer
2021-09-01 20:11:53 +02:00