Commit Graph
185 Commits
Author SHA1 Message Date
d00d9df48c fix(which_key): close window on mouse click action (#3053)
* fix(which_key): close window on mouse click action

`nvim_buf_delete` is not allowed during text change or window change.
Window switching with left mouse click was leading to race
condition/error.

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

---------

Co-authored-by: Github Actions <actions@github>
2024-04-16 01:03:24 +00:00
Mohamad Sulton HasanuddinandGitHub a3284957d3 fix(which_key): increase zindex for popup window (#3046) 2024-04-15 23:46:49 +00:00
James TrewandGitHub 5a701e9990 fix(actions): set function name for generate.which_key (#3044)
Using anonymous function is throwing warning "No name available for
anonymous functions" when `action_generate.which_key` is used as shown
in the docs.
2024-04-10 01:26:51 +00:00
Hannu HartikainenandGitHub 4626aaa2bc fix(scrolling): enhance and simplify scrolling (#3028)
The previous scrolling implementation (#2687) moved the result selection
by one item at a time, which isn't technically scrolling (ie. moving the
view) and feels quite slow.

Let the neovim builtin scrolling do its thing, so using the scroll wheel
feels like scrolling and is functionally scrolling, too. Scrolling does
not move the selection so after scrolling it typically makes sense to
click. Moving the selection with keyboard takes you back to where you
were. This is in line with typical desktop user interfaces.
2024-04-02 13:36:54 +00:00
1bb28df3cf feat(actions): support scrolling and selecting with the mouse (#2687)
* feat(scrolling and mouse support): support scrolling and selecting with the mouse

* fix ascending sorting_strategy mouse clicks

---------

Co-authored-by: James Trew <j.trew10@gmail.com>
2024-03-30 04:05:03 +00:00
James TrewandGitHub 3b8399c273 fix: expand/normalize paths more selectively (#2628) 2024-03-19 22:55:27 +00:00
VurtuneandGitHub 7472420f87 fix(action.toggle_prompt_position): add fallback old position (#2974)
`action_layout.toggle_prompt_position` old_pos deals with nil value at first declaration when prompt_position is set to top in flex layout_strategy
2024-03-07 22:10:20 +00:00
LiuandGitHub 2e1e382df4 feat(action): add type into qf entry when calling entry_to_qf function (#2897) 2024-02-24 15:24:24 +01:00
James TrewandGitHub 0f865f17af fix(action): horizontal scroll after preview toggling (#2915) 2024-02-09 02:38:30 +00:00
KobuandGitHub f1fd99ebfb doc(action_state): improve description of action_state.get_current_line (#2895) 2024-01-27 13:52:55 +01:00
24778fd72f feat(picker): allow appending original window cword to prompt (#2878)
* feat(picker): allow appending original window cword to prompt

* add default mapping and document

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

* add mapping to README

also format README

* oops

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

---------

Co-authored-by: Github Actions <actions@github>
2024-01-20 02:38:27 +00:00
Simon HauserandGitHub 9cf58f438f fix(config)!: fallback to vim.o.winblend (#2861) 2024-01-18 11:45:02 +01:00
ae6708a90b fix(which_key): always close on telescope prompt exit
* Add autocmd to make `which_key` window close on prompt exit

Currently `actions.which_key` supports a `close_with_action` option
(default true). When this is set, the `which_key` window will close
after any Telescope action is triggered. This makes sense. However, when
it is false, the `which_key` window remains open even after Telescope
closes. This seems like a bug.

This PR fixes this by setting an autocommand when `close_with_action` is
false to close on prompt exit.

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

* Add autocmd to make `which_key` window close on prompt exit

Currently `actions.which_key` supports a `close_with_action` option
(default true). When this is set, the `which_key` window will close
after any Telescope action is triggered. This makes sense. However, when
it is false, the `which_key` window remains open even after Telescope
closes. This seems like a bug.

This PR fixes this by setting an autocommand when `close_with_action` is
false to close on prompt exit.

---------

Co-authored-by: Github Actions <actions@github>
2023-12-25 21:01:16 +00:00
5f18f3dc51 fix(action): ensure delete_mark handles uppercase marks
* fix(action): delete_mark can not delete an uppercase named mark which
not in the current buffer

* Update init.lua

Co-authored-by: James Trew <66286082+jamestrew@users.noreply.github.com>

* format and lint

---------

Co-authored-by: James Trew <66286082+jamestrew@users.noreply.github.com>
Co-authored-by: James Trew <j.trew10@gmail.com>
2023-12-02 22:01:46 +00:00
Chen LuandGitHub e4c62dedd7 feat(actions): add delete_mark (#2769)
* feat(actions): add delete_mark

* style(init.lua): fix formatting
2023-11-26 03:37:50 +00:00
Giuseppe RotaandGitHub 8c9fd22952 fix(actions): set location list title (#2741) 2023-10-23 09:57:47 +02:00
Simon HauserandGitHub 550055e640 fix: correctly create User autocmd in action.which_key (#2736) 2023-10-11 08:07:30 +02:00
Folke LemaitreandGitHub 205f469244 fix(actions): fixes folding. Fixes #699 (#2726) 2023-10-06 01:56:00 +00:00
Munif TanjimandGitHub 84d53dfdbe feat(pickers): fully customizable layout (#2572) 2023-09-27 08:34:22 +02:00
Andrés CuellarandGitHub ed9574dd6d Add git_rename_branch git action (#2713) 2023-09-23 20:29:15 +00:00
James TrewandGitHub 08e6d7904d feat(actions): add quickfix list autocmd event exec (#2672)
Add `QuickFixCmdPre` and `QuickFixCmdPost` event triggers to
`send_selected_to_qf` and `send_all_to_qf`
2023-09-10 12:16:48 +02:00
Sofronie CristianandGitHub 74be3c3bba fix(builtin.pickers): fix wrong picker resuming when using filtering (#2682)
When filtering is applied, `picker:get_index(picker:get_selection_row())` returns index relative to the filtered entry list rather than the original full results. This causes inaccurate indexing into the `cache_pickers` table.
2023-09-03 20:42:09 +00:00
Sergey KuznetsovandGitHub 32e6792f86 fix(actions): fix Esc in git actions confirmation (#2674)
For some git actions pressing Esc for the dialog of action confirmation
didn't cancel the action. I moved asking for confirmation to a separate
function and a bit changed notifications about canceled action.
2023-08-29 19:56:53 +00:00
James TrewandGitHub 7bb2fcecdc Revert "expand paths more smartly (#2599)" (#2615)
This reverts commit f52ea4061d.
2023-07-21 21:50:44 -04:00
James TrewandGitHub f52ea4061d expand paths more smartly (#2599) 2023-07-21 22:12:29 +00:00
219584a6ef fix(lsp_dynamic_workspace_symbols): add prefilter as per documentation (after to_fuzzy_refine) (#2584)
* fix(lsp_dynamic_workspace_symbols): add prefilter as per documentation (after to_fuzzy_refine)

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

* docs grammar

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

---------

Co-authored-by: Github Actions <actions@github>
Co-authored-by: James Trew <j.trew10@gmail.com>
2023-06-24 22:11:35 +00:00
Lucía Andrea Illanes AlbornozandGitHub 5fff2a138b Implements horizontal scrolling in previewer & results. (#2437)
* Implements horizontal scrolling in previewer & results.

* docs: update wrt. horizontal scrolling in previewer &  results
2023-06-24 19:17:55 +00:00
Simon HauserandGitHub 42267407ae fix(actions): which_key after mappings rework (#2556) 2023-06-08 23:10:26 +02:00
Munif TanjimandGitHub 9a82b5b73e fix: use :botright modifier for quickfix window open (#2554) 2023-06-07 23:54:23 +00:00
Zhanibek AdilbekovandGitHub 333966610c fix(bcommits): wrong selection field is used (#2550) 2023-06-07 11:17:57 +02:00
Simon HauserandGitHub eb95a31836 Revert "fix: correctly restore cursor position in original window (#2336)" (#2538)
This reverts commit 3f1b57908b.
2023-05-25 07:43:19 +02:00
Simon HauserandGitHub dda9a3965b fix(actions): send_to_* and smart_send_to_* now append to history (#2527) 2023-05-24 15:25:24 +02:00
cristiansofronieandGitHub 3f1b57908b fix: correctly restore cursor position in original window (#2336) 2023-05-24 14:04:27 +02:00
YAMAMOTO YujiandGitHub a709dbb5d5 feat: open buffers in various directions (#2463)
Fix the problem I reported in <https://github.com/nvim-telescope/telescope.nvim/issues/1725#issuecomment-1502548033>.
Supporting the abbreviations of the commands to specify the direction makes too
many combinations, so I added only their unabbreviated names.

In addition, make the error message more detailed for users that passes
unsupported command.
2023-05-24 11:14:03 +02:00
Simon HauserandGitHub ebf93395e7 fix: opening file starting with a plus (#2509) 2023-05-14 22:27:44 +02:00
NAKAI TsuyoshiandGitHub 713d26b985 fix(actions): support commands with special chars (#2224) 2023-04-26 07:22:53 +03:00
James TrewandGitHub 031322a7c3 fix(action): grep_string select_default with nil column (#2447) 2023-04-09 10:09:42 +02:00
Rafael BodillandGitHub f43eb22e0c fix: Incorrect refine option for prompt_prefix (#2413) 2023-03-21 13:34:53 -04:00
James TrewandGitHub 98f9d5f948 feat: utilize last window cursor position (#2416)
closes #2386
2023-03-21 13:32:11 -04:00
SvenandGitHub ccda9f02f3 feat: extend git_delete_branch to delete of all selected branches (#2337) 2023-02-19 11:42:59 +01:00
Reid SwanandGitHub 19ce7f8f24 feat: add support for wrapping history on reaching history begin or end (#2349) 2023-01-30 22:06:16 +01:00
vladislav dosterandGitHub dce1156ca1 docs: telescope.nvim spelling and grammar fixes (#2325)
Corrects the following issues:
- article agreement
- spelling
2023-01-22 10:07:45 +01:00
James TrewandGitHub 053f2303c4 docs: proof-read edits (#2311) 2023-01-22 09:57:53 +01:00
Ryan BlonnaandGitHub 4b4db1ff7d fix: escape filename used in drop commands (#2339) 2023-01-22 09:19:49 +01:00
Simon HauserandGitHub 30826fcfb8 fix: generate.refine with border=false (#2223) 2022-11-06 12:58:29 +01:00
Jieru MeiandGitHub a7ede53f06 fix: checktime when git checkout (#2176) 2022-09-27 21:11:56 +02:00
Jonas StrittmatterandGitHub 30e2dc5232 fix: check for window before scrolling previewer (#2163)
This avoids an error when scrolling the preview window
but the window is not visible (e.g. due to a screen resize).
2022-09-17 10:15:36 +02:00
Ryan KovalandGitHub 2b5060362b feat: added support for tabdrop (#2143) 2022-09-04 21:47:25 +02:00
Simon HauserandGitHub 49b043e2a3 fix: nop i_<c-j> because we dont want allow new line (#2147) 2022-09-03 11:22:26 +02:00
Ryan BlonnaandGitHub d793de0f12 feat: add drop command for buffers (#2131) 2022-08-13 11:18:17 +02:00