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
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
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
1989921466
feat(explorer): different hl group for broken links
2025-02-04 20:04:19 +01:00
Folke Lemaitre
dfa79e0443
feat(explorer): show symlink target
2025-02-04 19:31:49 +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
6235f44b11
feat(picker): opts.on_close
2025-02-04 17:09:47 +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
85e1b343b0
feat(explorer): add hl groups for ignored / hidden files. Closes #887
2025-02-03 11:37:14 +01:00
Folke Lemaitre
78c28535dd
feat(picker.matcher): added opts.matcher.history_bonus that does fzf's scheme=history. Closes #882 . Closes #872
2025-02-03 07:30:53 +01:00
Folke Lemaitre
5a2056575f
feat(picker.projects): enabled frecency for projects picker
2025-02-02 22:04:36 +01:00
Folke Lemaitre
ced377a057
feat(picker.projects): added <c-t>
to open a new tab page with the projects picker
2025-02-02 19:28:55 +01:00
Folke Lemaitre
3d2a07503f
feat(picker.projects): default to tcd instead of cd
2025-02-02 19:28:55 +01:00
Folke Lemaitre
7c5f9f0204
style(picker): docs to put explorer right
2025-02-02 16:58:24 +01:00
Folke Lemaitre
c2dedb647f
feat(picker.projects): allow disabling projects from recent files
2025-02-02 16:37:24 +01:00
Folke Lemaitre
6f8f0d3c72
feat(picker.projects): projects now automatically processes dev folders and added a bunch of actions/keymaps. Closes #871
2025-02-02 16:09:00 +01:00
Folke Lemaitre
d61fb453c6
feat(picker.undo): make diff opts for undo configurable
2025-02-02 09:47:13 +01:00
Folke Lemaitre
44b8e38204
feat(picker.undo): better undo tree visualization. Closes #863
2025-02-02 08:25:18 +01:00
Folke Lemaitre
4a50291448
fix(picker.list): better virtual scrolling that works from any window
2025-02-01 23:40:07 +01:00
Folke Lemaitre
263dfde1b5
feat(explorer): added ]g
and [g
to jump between files mentioned in git status
2025-02-01 16:59:00 +01:00
Folke Lemaitre
b40c0d4ee4
feat(explorer): hide git status for open directories by default. it's mostly redundant
2025-02-01 16:58:25 +01:00
Folke Lemaitre
2ff389312a
feat(explorer): more keymaps and tree rework. See #837
2025-02-01 10:20:03 +01:00
Folke Lemaitre
cd44efb60c
fix(picker): multi layouts that need async task work again.
2025-01-31 21:35:12 +01:00
Folke Lemaitre
8646ba4696
feat(explorer.git): added git_status_open. When false, then dont show recursive git status in open directories
2025-01-31 21:00:24 +01:00
Folke Lemaitre
4b29ddc5d9
feat(explorer): navigate with h/l to close/open directories. Closes #833
2025-01-31 20:51:52 +01:00
Folke Lemaitre
6dbc26757c
fix(picker): make pick_win work with split layouts. Closes #834
2025-01-31 19:14:16 +01:00
Folke Lemaitre
5cae48d93c
feat(explorer): added git status. Closes #817
2025-01-31 19:08:32 +01:00
Folke Lemaitre
ae897f329f
feat(picker.lines): jump to first position of match. Closes #806
2025-01-31 14:13:36 +01:00
Folke Lemaitre
507a7a3b75
style(picker): sort keymaps
2025-01-31 13:48:30 +01:00
Folke Lemaitre
8b26bae6bb
feat(picker): added support for double cliking and confirm
2025-01-31 13:42:03 +01:00
Folke Lemaitre
670c67366f
feat(explorer): new explorer
module with shortcut to start explorer picker and netrw replacement functionlity
2025-01-31 08:31:49 +01:00
Folke Lemaitre
1a5fd93b89
fix(picker.lazy): don't use live searches. Fixes #809
2025-01-31 06:28:02 +01:00
Folke Lemaitre
a13ff6fe0f
fix(picker): show_empty for files / grep. Closes #808
2025-01-31 06:23:08 +01:00
Folke Lemaitre
87dab7eca7
fix(picker): show help for input / list window with ?
.
2025-01-30 23:06:51 +01:00
Folke Lemaitre
96c76c6d9d
feat(picker.actions): allow selecting the visual selection with <Tab>
2025-01-30 22:45:56 +01:00
Folke Lemaitre
08b9083f47
feat(picker.explorer): added explorer_move
action mapped to m
2025-01-30 22:02:51 +01:00
Folke Lemaitre
a9591ed43f
feat(picker.jump): added opts.jump.close
, which default to true, but is false for explorer
2025-01-30 21:12:05 +01:00
Folke Lemaitre
db52796e79
feat(picker.explorer): live search
2025-01-30 19:11:37 +01:00
Folke Lemaitre
a998c714c3
fix(picker): only do preview scrolling when preview is scrolling and removed default preview horizontal scrolling keymaps
2025-01-30 18:17:32 +01:00
Folke Lemaitre
00613bd416
feat(picker): new file explorer Snacks.picker.explorer()
2025-01-30 17:56:14 +01:00
Folke Lemaitre
e16a6a4413
feat(picker): reworked toggles (flags). they're now configurable. Closes #770
2025-01-30 17:56:14 +01:00
Folke Lemaitre
7ad414e8a9
refactor(picker): indent/hierarchy => tree
2025-01-30 17:56:14 +01:00
Folke Lemaitre
08f3c32c7d
feat(picker.format): better path formatting for directories
2025-01-30 17:56:14 +01:00
Folke Lemaitre
b37f368a81
feat(picker.config): added opts.config
which can be a function that can change the resolved options
2025-01-30 17:56:14 +01:00
Folke Lemaitre
69c013e1b2
fix(picker.config): normalize opts.cwd
2025-01-30 17:56:14 +01:00
Folke Lemaitre
5a8d79847b
feat(picker): opts.focus = "input"|"list"|false
to configure what to focus (if anything) when showing the picker
2025-01-30 17:56:14 +01:00
Folke Lemaitre
5496c22b6e
feat(picker): added support for split layouts to picker (sidebar and ivy_split)
2025-01-29 18:06:13 +01:00
Folke Lemaitre
ad8f16632c
feat(picker): added support to keep the picker open when focusing another window (auto_close = false)
2025-01-29 18:05:48 +01:00
Folke Lemaitre
d70af2d253
fix(picker.select): allow configuring vim.ui.select
with the select
source. Closes #776
2025-01-29 12:49:20 +01:00