Commit graph

189 commits

Author SHA1 Message Date
Folke Lemaitre
9b80e444f5
feat(picker.actions): added separate hl group for pick win current 2025-01-29 06:42:12 +01:00
Folke Lemaitre
dcd3bc0329
fix(picker): split edit_win in {"pick_win", "jump"} 2025-01-29 00:14:14 +01:00
Folke Lemaitre
2ba5be8491
feat(picker): added edit_win action bound to ctrl+enter to pick a window and edit 2025-01-28 23:55:41 +01:00
Folke Lemaitre
dfaa18d1c7
perf(picker.matcher): optimize matcher priorities and skip items that can't match for pattern subset 2025-01-28 22:57:18 +01:00
Folke Lemaitre
04e2995bbf
fix(picker.preview): don't enable numbers when minimal=true 2025-01-28 19:32:07 +01:00
Folke Lemaitre
32cffd2e60
feat(picker): added notifications picker. Closes #738 2025-01-28 17:16:32 +01:00
Folke Lemaitre
bb3db117a4
feat(picker): added git_stash picker. Closes #762 2025-01-28 16:05:30 +01:00
Folke Lemaitre
4e30ff0f1e
fix(picker.multi): apply source filter settings for multi source pickers. See #761 2025-01-28 14:19:25 +01:00
Folke Lemaitre
ea44a2d4c2
fix(picker.config): fix wrong opts.cwd = true config. Closes #757 2025-01-28 13:21:00 +01:00
Folke Lemaitre
0396bdfc3e
feat(picker.format): filename_only option 2025-01-23 19:52:01 +01:00
Folke Lemaitre
08d4f14cd8
fix(picker): starting a picker from the picker sometimes didnt start in insert mode. Fixes #718 2025-01-23 19:36:50 +01:00
Folke Lemaitre
e6fb5381a9
feat(picker.git): git_log, git_log_file, git_log_line now do git_checkout as confirm. Closes #722 2025-01-23 19:18:20 +01:00
Folke Lemaitre
9e7bfc05d5
fix(picker.icons): opts.icons -> opts.icon_sources. Fixes #715 2025-01-23 13:12:56 +01:00
Folke Lemaitre
d03bd00ced
feat(picker): added lazy source to search for a plugin spec. Closes #680 2025-01-23 13:04:00 +01:00
Folke Lemaitre
9d5d3bdb17
feat(picker): added opts.rtp (bool) to find/grep over files in the rtp. See #680 2025-01-23 13:03:27 +01:00
Folke Lemaitre
bab8243395
feat(picker.util): smart path truncate. Defaults to 40. Closes #708 2025-01-23 12:00:08 +01:00
Jorge Villalobos
b7c08df2b8
feat(picker.keymaps): add global + buffer toggles (#705)
## Description

This PR adds 2 actions to the `keymaps` picker, to toggle the `global`
and `local` options.

## Related Issue(s)

None.

## Screenshots


https://github.com/user-attachments/assets/3f4ca80a-b554-47a2-970b-15dc84f357d8
2025-01-23 10:57:16 +01:00
Folke Lemaitre
97898e910d
feat(picker): added new icons picker for nerd fonts and emoji. Closes #703 2025-01-23 10:51:17 +01:00
Folke Lemaitre
2762c37eb0
feat(picker.keymaps): improvements to keymaps picker 2025-01-23 09:14:29 +01:00
acidclouds
bc47e0b1dd
feat(picker): preview window horizontal scrolling (#686)
## Description

This is an initial commit for trying to add horizontal scrolling for the
picker preview window.

Known issue: when scrolling horizontally with scope indent, the indent
chars persist in the preview window and don't disappear as they
should...

Edit:
I just realized this happens only when we are previewing a buffer that
is already open. Only in that case the indents are being rendered... if
we are previewing a file that is not currently open the indents don't
get rendered and therefore there is no issue. Maybe this is a bug?
Should we prevent rendering of the indent guides in the preview window?

## Related Issue(s)

  - Fixes #676 

## Screenshots


![image](https://github.com/user-attachments/assets/573fdba6-93cf-44f1-824d-609106996e6b)

---------

Co-authored-by: Val Gorokhovsky <valery.gorokhovsky@riverbed.com>
2025-01-23 09:13:54 +01:00
Folke Lemaitre
8b2c78a3bf
feat(picker.multi): multi now also merges keymaps 2025-01-23 00:29:28 +01:00
Folke Lemaitre
b24886c995
refactor(picker): item.fid => item.source_id 2025-01-23 00:13:45 +01:00
Folke Lemaitre
450d1d4d4c
feat(picker.smart): re-implemented smart as multi-source picker 2025-01-22 23:49:57 +01:00
Folke Lemaitre
9434986ff1
feat(picker): multi source picker. Combine multiple pickers (as opposed to just finders) in one picker 2025-01-22 23:49:56 +01:00
Folke Lemaitre
5e69fb83d5
feat(picker.finder): optional transform function 2025-01-22 23:49:56 +01:00
Folke Lemaitre
9c0e2d4362
refactor(picker): pass finder context to transform 2025-01-22 23:49:56 +01:00
Folke Lemaitre
5a4b684c0d
feat(picker.filter): Filter arg for filter 2025-01-22 23:49:56 +01:00
Folke Lemaitre
4c2827246a
refactor(picker.proc): make it easier to customize proc finders 2025-01-22 23:49:56 +01:00
Folke Lemaitre
7b85dfc6f6
feat(picker.matcher): frecency and cwd bonus can now be enabled on any picker 2025-01-22 23:49:56 +01:00
Folke Lemaitre
fcceedf473
refactor(picker): move resolving of preview / format to config 2025-01-22 23:49:55 +01:00
Folke Lemaitre
efb6d1f8b8
feat(picker): syntax highlighting for command and search history 2025-01-22 23:49:55 +01:00
Folke Lemaitre
3fa2ea3115
perf(picker): gc optims 2025-01-21 18:33:13 +01:00
Jorge Villalobos
67fbab1bf7
feat(picker.smart): add bufdelete actions from buffers picker (#679)
## Description

This enables the ability to delete buffers directly from the `smart`
picker (or other combined pickers) by adding a check + warning to the
`bufdelete` action (ensuring it only operates on buffer items), and
adding the same `dd` and `<c-x>` mappings as the `buffers` picker.

## Related Issue(s)

TBD... searching.

## Screenshots


https://github.com/user-attachments/assets/6c5c4b5e-74ed-4778-9f31-a714f7da1853
2025-01-21 08:43:37 +01:00
Kyle Whliang
390f687431
fix(picker.git_branches): handle detached HEAD (#671)
## Description

Handle [detached
HEAD](https://git-scm.com/docs/git-checkout#_detached_head)

- list: display correct information
- preview: without error notification
- action: checkout the commit that HEAD detached at

<!-- Describe the big picture of your changes to communicate to the
maintainers
  why we should accept this pull request. -->

## Related Issue(s)

<!--
  If this PR fixes any issues, please link to the issue here.
  - Fixes #<issue_number>
-->

- Fixes #672 

## Screenshots

<!-- Add screenshots of the changes if applicable. -->

Before:
<img width="1308" alt="image"
src="https://github.com/user-attachments/assets/fad291a3-a730-4a2b-9eb2-4a0edd83d794"
/>

After:
<img width="1038" alt="image"
src="https://github.com/user-attachments/assets/d312579a-e12d-4286-845c-a706d91a6c95"
/>

---------

Co-authored-by: Folke Lemaitre <folke.lemaitre@gmail.com>
2025-01-20 20:03:38 +01:00
Folke Lemaitre
5e00b0ab27
feat(picker.matcher): new opts.matcher.file_pos which defaults to true to support patterns like file:line:col or file:line. Closes #517. Closes #496. Closes #651 2025-01-20 11:40:06 +01:00
Folke Lemaitre
b59f4ff477
feat(picker.debug): debug option to detect garbage collection leaks 2025-01-20 10:30:45 +01:00
Folke Lemaitre
d0a0046e37
fix(picker.lsp): lazy resolve item lsp locations. Fixes #650 2025-01-20 09:56:12 +01:00
Folke Lemaitre
40cea79697
fix(picker.undo): disable number and signcolumn in preview 2025-01-19 23:40:36 +01:00
Folke Lemaitre
781b6f6ab0
feat(picker): added args option for files and grep. Closes #621 2025-01-19 22:01:23 +01:00
Folke Lemaitre
5c45f1c193
feat(picker): added undo picker to navigate the undo tree. Closes #638 2025-01-19 21:54:18 +01:00
Folke Lemaitre
348307a82e
feat(picker.lsp): added lsp_workspace_symbols. Supports live search. Closes #473 2025-01-19 17:29:37 +01:00
Folke Lemaitre
c6c76a6aa3
fix(picker.diagnostics): sort on empty pattern. Fixes #641 2025-01-19 16:27:19 +01:00
Folke Lemaitre
8563dfce68
feat(picker): added git_branches picker. Closes #614 2025-01-19 16:24:35 +01:00
Folke Lemaitre
b170ced527
feat(picker): added spelling picker. Closes #625 2025-01-19 14:02:18 +01:00
Folke Lemaitre
ee988fa4b0
feat(picker.commands): added builtin commands. Fixes #634 2025-01-19 13:01:26 +01:00
Folke Lemaitre
aa53f6c079
feat(picker): added toggle/flag/action for follow. Closes #633 2025-01-19 11:38:03 +01:00
Folke Lemaitre
d88eab6e3f
feat(picker.list): make conceallevel configurable. Fixes #635 2025-01-19 11:32:44 +01:00
Folke Lemaitre
6001fb2077
feat(picker): allow setting a custom opts.title. Fixes #620 2025-01-19 09:53:09 +01:00
Folke Lemaitre
540ecbd9a4
fix(picker): better normkey. Fixes #610 2025-01-18 14:51:27 +01:00
Folke Lemaitre
2e70b7f423
feat(picker): added {preview} and {flags} title placeholders. Closes #557, Closes #540 2025-01-18 09:35:22 +01:00