Folke Lemaitre
719b36fa70
perf(picker): cache wether ts lang exists and disable smooth scrolling on big files
2025-02-05 21:39:34 +01:00
Folke Lemaitre
af31c31287
perf(picker): cache treesitter line highlights
2025-02-05 20:32:30 +01:00
Ian Liu
8676c409e1
feat(picker.git): add create and delete branch to git_branches ( #909 )
...
CI / ci (push) Failing after 0s
## Description
<!-- Describe the big picture of your changes to communicate to the
maintainers
why we should accept this pull request. -->
This PR adds two actions: `git_create_branch` and `git_delete_branch`.
They are aimed to be included in the `git_branches` picker to easily
create/delete git branches with custom keymaps.
## Related Issue(s)
<!--
If this PR fixes any issues, please link to the issue here.
- Fixes #<issue_number>
-->
## Screenshots
<!-- Add screenshots of the changes if applicable. -->
---------
Co-authored-by: Ian Liu <ian.liu@tupl.com>
Co-authored-by: Folke Lemaitre <folke.lemaitre@gmail.com>
2025-02-05 20:01:44 +01:00
Folke Lemaitre
23ce529fb6
feat(matcher): call on_match after setting score
2025-02-05 19:44:33 +01:00
Folke Lemaitre
c61114fb32
fix(explorer): always refresh state when opening the picker since changes might have happened that were not monitored
2025-02-05 15:33:07 +01:00
Folke Lemaitre
9fe43bdf9b
fix(picker): disabled preview main
2025-02-05 11:14:22 +01:00
Folke Lemaitre
4c12475e80
feat(explorer): git index watcher
2025-02-05 11:10:03 +01:00
Folke Lemaitre
8c6c54e26a
ci: auto generate picker function types
2025-02-05 07:44:26 +01:00
Folke Lemaitre
27cba535a6
feat(picker): pin picker as a split to left/bottom/top/right with ctrl+z+(hjkl)
2025-02-05 07:13:15 +01:00
Folke Lemaitre
1839c65f67
feat(picker.preview): allow confguring preview = {main = true, enabled = false}
2025-02-04 23:47:42 +01:00
Folke Lemaitre
4b9ea98007
fix(picker.actions): don't reuse_win in floating windows (like the picker preview)
2025-02-04 23:34:56 +01:00
Folke Lemaitre
b07788f14a
feat(explorer): disable fuzzy searches by default for explorer since it's too noisy and we can't sort on score due to tree view
2025-02-04 22:18:43 +01:00
Folke Lemaitre
d4e63531c9
feat(picker.lsp): use existing buffers for preview when opened
2025-02-04 22:06:02 +01:00
jdrouhard
6d3c135235
fix(picker.actions): fix qflist position ( #911 )
...
vim.fn.setqflist() and vim.fn.setloclist() use (1,1)-indexing, but
vim.api.nvim_win_set_cursor() uses (1,0)-indexing. Adjust for this when
sending items to qflist/loclist.
2025-02-04 21:56:18 +01:00
Folke Lemaitre
94bd2eff74
fix(explorer): last status for indent guides taking hidden / ignored files into account
2025-02-04 21:08:05 +01:00
Folke Lemaitre
38f392a8ad
fix(explorer): strip cwd from search text for explorer items
2025-02-04 20:40:29 +01:00
Folke Lemaitre
3fd437ccd3
fix(explorer): dont focus first file when not searching
2025-02-04 20:23:41 +01:00
Folke Lemaitre
1989921466
feat(explorer): different hl group for broken links
2025-02-04 20:04:19 +01:00
Folke Lemaitre
9688bd92cd
fix(picker.preview): don't clear preview state on close so that colorscheme can be restored. Closes #932
2025-02-04 19:52:09 +01:00
Folke Lemaitre
1d4bea4a9e
feat(explorer): focus on first file when searching in the explorer
2025-02-04 19:48:50 +01:00
Folke Lemaitre
dfa79e0443
feat(explorer): show symlink target
2025-02-04 19:31:49 +01:00
Folke Lemaitre
8e0dfd2856
fix(git): use nul char as separator for git status
2025-02-04 19:08:38 +01:00
Folke Lemaitre
bc87992e71
fix(explorer.git): dont reset cursor when git status is done updating
2025-02-04 18:56:48 +01:00
Folke Lemaitre
c255d9c6a0
fix(explorer): dont process git when picker closed
2025-02-04 18:03:22 +01:00
Folke Lemaitre
50fa1be38e
fix(explorer): check that picker is still open
2025-02-04 18:02:08 +01:00
Folke Lemaitre
c22e46ab9a
fix(picker.list): nil check
2025-02-04 17:42:11 +01:00
Folke Lemaitre
427f036c65
fix(health): better health checks for picker. Closes #917
2025-02-04 17:24:27 +01:00
Folke Lemaitre
84d1a92fab
fix(picker.db): better script to download sqlite3 on windows. See #918
2025-02-04 17:19:15 +01:00
Folke Lemaitre
6149a7babb
feat(explorer): rewrite that no longer depends on fd
for exploring
2025-02-04 17:13:06 +01:00
Folke Lemaitre
52bc24c232
fix(picker.finder): correct check if filter changed
2025-02-04 17:11:58 +01:00
Folke Lemaitre
54a041f7fc
fix(picker.input): set as not modified when setting input through API
2025-02-04 17:11:41 +01:00
Folke Lemaitre
47b3b69570
feat(picker.matcher): internal on_match
2025-02-04 17:11:23 +01:00
Folke Lemaitre
455228ed3a
feat(rename): add old
to on_rename
callback
2025-02-04 17:10:55 +01:00
Folke Lemaitre
969608ab79
feat(picker): picker:dir()
to get the dir of the item (when a directory) or it's parent (when a file)
2025-02-04 17:10:17 +01:00
Folke Lemaitre
6235f44b11
feat(picker): opts.on_close
2025-02-04 17:09:47 +01:00
Folke Lemaitre
b773368f8a
feat(picker): better checkhealth
CI / ci (push) Failing after 0s
2025-02-03 21:06:11 +01:00
Folke Lemaitre
c667622fb7
fix(picker.select): default height shows just the items. See #902
2025-02-03 20:51:04 +01:00
Folke Lemaitre
97570d23ac
fix(explorer): don't use --absolute-path option, since that resolves paths to realpath. See #901 . See #905 . See #904
2025-02-03 19:45:14 +01:00
Folke Lemaitre
762821e420
fix(picker.actions): close preview before buffer delete
CI / ci (push) Failing after 0s
2025-02-03 15:22:21 +01:00
Folke Lemaitre
44733eaa78
fix(explorer): clear selection after delete. Closes #898
2025-02-03 14:47:52 +01:00
Folke Lemaitre
95d3e7f961
fix(picker.actions): get win after splitting or tabnew. Fixes #896
2025-02-03 14:26:54 +01:00
Folke Lemaitre
e294fd8a27
fix(picker): better handling when entering the root layout window. Closes #894
2025-02-03 14:20:06 +01:00
Folke Lemaitre
abc0bbd160
refactor(picker.actions): generic picker action
2025-02-03 13:03:22 +01:00
Folke Lemaitre
c030827d7a
fix(picker.input): fixed startinsert weirdness with prompt buffers (again)
2025-02-03 13:03:22 +01:00
Folke Lemaitre
34097ff37e
fix(explorer): clear cache after action. Fixes #890
2025-02-03 12:03:46 +01:00
Folke Lemaitre
85e1b343b0
feat(explorer): add hl groups for ignored / hidden files. Closes #887
2025-02-03 11:37:14 +01:00
Folke Lemaitre
c8430fdd8d
fix(win): better handling of alien buffers opening in managed windows. See #886
2025-02-03 10:41:16 +01:00
Folke Lemaitre
604c603dfa
fix(picker.preview): update main preview when changing the layout
2025-02-03 10:41:16 +01:00
Folke Lemaitre
cef4fc9181
perf(explorer): use cache when possible for opening/closing directories. Closes #869
2025-02-03 09:26:07 +01:00
hankertrix
d897ead2b7
fix(picker.git_log): add extra space between the date and the message ( #885 )
...
## Description
Add additional space between the date of the commit and the commit
message so that the message is more readable. Also added support for
spaces between the type and the scope of the commit.
## Screenshots
Before:


After:


2025-02-03 09:03:15 +01:00