Commit graph

1292 commits

Author SHA1 Message Date
Folke Lemaitre
2b6a41b8e1
style(picker.grep): added grep debug mode 2025-02-07 06:34:45 +01:00
Folke Lemaitre
c7293bdfe7
fix(picker.projects): add custom project dirs 2025-02-07 06:26:45 +01:00
Folke Lemaitre
b9a17d82a7
fix(explorer): disable follow for explorer search by default. No longer needed. Link directories may show as files then though, but that's not an issue. See #960 2025-02-07 06:19:40 +01:00
Folke Lemaitre
4a6ed6912e
docs: docgen 2025-02-06 22:19:24 +01:00
Folke Lemaitre
64129e4c3c
feat(terminal): added start_insert 2025-02-06 22:17:26 +01:00
Folke Lemaitre
bb76cae87e
feat(terminal): auto_close and auto_insert. Closes #965 2025-02-06 22:14:18 +01:00
Folke Lemaitre
ba8badfe74
fix(picker.colorscheme): use wildignore. Closes #969 2025-02-06 21:39:03 +01:00
Folke Lemaitre
a0bee9f662
fix(explorer): call original on_close. Closes #971 2025-02-06 21:34:14 +01:00
Folke Lemaitre
cd6e336ec0
fix(picker): initial preview state when main 2025-02-06 21:24:13 +01:00
Folke Lemaitre
270250cf46
fix(picker.projects): use fd or fdfind 2025-02-06 19:25:44 +01:00
Folke Lemaitre
8deea64dba
fix(bigfile): check that passed path is the one from the buffer 2025-02-06 19:11:55 +01:00
Folke Lemaitre
98a7b647c9
feat(statuscolumn): added mouse click handler to open/close folds. Closes #968 2025-02-06 19:03:08 +01:00
Folke Lemaitre
7fa92a2450
feat(bigfile): configurable average line length (default = 1000). Useful for minified files. Closes #576. Closes #372 2025-02-06 15:08:26 +01:00
Folke Lemaitre
1a30610ab7
perf(explorer): early exit for tree calculation 2025-02-06 14:29:45 +01:00
Folke Lemaitre
c72e62ef90
perf(picker.list): only re-render when visible items changed 2025-02-06 14:29:16 +01:00
Folke Lemaitre
22da4bd511
fix(picker.list): let user override wrap
Some checks failed
CI / ci (push) Failing after 0s
2025-02-06 11:38:10 +01:00
Folke Lemaitre
a542ea4d34
fix(picker.list): better wrap settings for when wrapping is enabled 2025-02-06 11:37:20 +01:00
Folke Lemaitre
82c4a50985
feat(explorer): added support for live search 2025-02-06 10:25:39 +01:00
Folke Lemaitre
a6b3d7840b
fix(picker.matcher): don't optimize pattern subsets when pattern has a negation 2025-02-06 08:47:27 +01:00
Stefan Krüger
aba21ddc71
feat(scope): allow injected languages to be parsed by treesitter (#823)
## Description

Adding a config flag to allow injected languages to be parsed by
treesitter. This is crucial for languages like vue, which contain
typescript or javascript in a script tag. When `treesitter.get_node` is
not called with ignore_injections = false, the script tag is treated as
a single block, which is not helpful, as it contains most code for
languages like vue.

## Related Issue(s)

 - Fixes #430 

## Screenshots

 - See #430

---------

Co-authored-by: Folke Lemaitre <folke.lemaitre@gmail.com>
2025-02-06 08:04:50 +01:00
Folke Lemaitre
71eae96bfa
fix(picker): exit insert mode before closing with <c-c> to prevent cursor shifting left. Close #956 2025-02-06 07:13:52 +01:00
Ian Liu
337a3ae7ee
feat(picker.git): add confirmation before deleting a git branch (#951)
## Description

A minor update to add a confirmation dialogue before deleting a branch
in `git_branches`.

## 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>
2025-02-05 22:02:12 +01:00
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)
Some checks failed
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
09349ecd44
fix(explorer.git): better git status watching 2025-02-05 14:39:46 +01:00
Folke Lemaitre
8399465872
feat(explorer): file watching that works on all platforms 2025-02-05 13:28:16 +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
766fb20bd5
ci: added picker example config to readme 2025-02-05 07:55:00 +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
5d34380310
perf(explorer): disable watchdirs fallback watcher 2025-02-04 20:53:51 +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
cb99c46fa1
fix(win): apply win-local window options for new buffers displayed in a window. Fixes #925 2025-02-04 20:20:40 +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
e5f1e91249
fix(explorer.tree): symlink directories 2025-02-04 19:16:31 +01:00
Folke Lemaitre
8e0dfd2856
fix(git): use nul char as separator for git status 2025-02-04 19:08:38 +01:00