Alexander Courtis
e962e97cab
refactor( #2830 ): multi instance marks ( #2873 )
...
* refactor(#2830 ): multi instance marks
* refactor(#2830 ): multi instance marks
* refactor(#2830 ): multi instance marks
2024-08-25 12:32:09 +10:00
Alexander Courtis
4e396b2624
refactor( #2830 ): multi instance nvim-tree.marks ( #2838 )
...
refactor(#2380 ): multi instance nvim-tree.marks
2024-07-21 16:12:42 +10:00
Asman Umbetov
cfea5bd080
fix( #2395 ): marks.bulk.move defaults to directory at cursor ( #2688 )
...
* fix(#2395 ): marks.bulk.move defaults to directory at cursor
* fix(#2395 ): adds check if node_at_cursor.parent is nil
---------
Co-authored-by: Alexander Courtis <alex@courtis.org >
2024-03-15 12:03:06 +11:00
Alexander Courtis
e9c5abe073
feat( #2415 ): colour and highlight overhaul, see :help nvim-tree-highlight-overhaul ( #2455 )
...
* feat(#2415 ): granular highlight_diagnostics, normalise groups (#2454 )
* chore: normalise colours and enable cterm (#2471 )
* feat(#2415 ): granular highlight_git, normalise git groups (#2487 )
* docs: update CONTRIBUTING.md (#2485 )
* feat(#2415 ): granular highlight_git, normalise git groups
* feat(#2415 ): normalise and add modified groups
* feat(#2415 ): create Decorator class for modified and bookmarks
* feat(#2415 ): create DecoratorDiagnostics
* feat(#2415 ): create DecoratorGit
* feat(#2415 ): create DecoratorGit
* add DecoratorCopied DecoratorCut
* add DecoratorOpened
* remove unloaded_bufnr checks as the view debouncer takes care of it
* Add `renderer.highlight_git` to accepted strings
* fix(#2415 ): builder refactor (#2538 )
* simplify builder signs
* decorators take care of themselves and are priority ordered
* simplify builder hl groups
* refactor builder for icon arrays
* builder use decorators generically
* fix(#2415 ): harden sign creation (#2539 )
* fix(#2415 ): harden unicode signs
* Decorator tidy
* normalise git sign creation and tidy
* tidy builder
* NvimTreeBookmarkIcon
* tidy HL doc
* tidy HL doc
* tidy HL doc
* tidy builder doc
* standardise on '---@param'
* DiagnosticWarning -> DiagnosticWarn
* annotate decorators
* limit to two highlight groups for line rendering
* style
* apply #2519
* feat(#2415 ): combined hl groups (#2601 )
* feat(#2415 ): create combined highlight groups
* feat(#2415 ): create combined highlight groups
* feat(#2415 ): create combined highlight groups
* ci: allow workflow_dispatch (#2620 )
* one and only one hl namespace, required winhl removal
* small tidies
* colors.lua -> appearance.lua
* full-name uses one and only namespace
* don't highlight fast, just apply to namespace, safer win_set_hl
* gut builder (#2622 )
collapse Builder
* fix group_empty function check
* feat(#2415 ): highlight-overhaul release date
---------
Co-authored-by: Akmadan23 <azadahmadi@mailo.com >
2024-01-20 16:12:13 +11:00
Azad
f779abaf2a
refactor: improve API readability and tidy actions submodules ( #2593 )
...
* refactor: improve API readability, tidy actions modules
* Apply requested changes
* `actions/reloaders/reloaders.lua` -> `actions/reloaders.lua`
---------
Co-authored-by: Alexander Courtis <alex@courtis.org >
2023-12-31 15:52:27 +11:00
Devansh Sharma
dc839a72a6
feat: add kind param to vim.ui.select function calls ( #2602 )
...
* feat: add kind param to vim.ui.select function calls
* feat: add kind param to prompts for bookmark actions
* docs: add section for prompts
* docs: add section for prompts
---------
Co-authored-by: Alexander Courtis <alex@courtis.org >
2023-12-31 15:37:16 +11:00
Azad
13f967f8e7
chore: add type annotations and resolve LSP warnings ( #2555 )
...
* chore: add type annotations to (almost) all functions
* stylua
* Add classes for symlink nodes
* Replace deprecated `@vararg`
* Move node classes to `node` module
* Fix `Symlink*` classes
* add vim and libuv runtime for luals, qualify libuv types
* add scripts/luals-check, not quite ready for CI
* additional nil checks for git/init.lua and git/runner.lua
* additional nil checks for nvim-tree.lua
* wrap vim.cmd-as-a-function calls inside functions
* vim.tbl_filter predicate returns booleans
* Revert "add scripts/luals-check, not quite ready for CI"
This reverts commit c70229cad9 .
* Add `MinimalNode` class in `marks` module
* Fix various LSP warnings
* stylua
* Fix `Explorer` class, update related annotations and add necessary checks
* Add missing annotations to `live-filter`
* Add temporary aliases for `uv.*` types
* Resolve remaining LSP warnings
* Revert changes not related to internal types
* Minor adjustments
* Update doc comments style
* Minor adjustments (pt. 2)
---------
Co-authored-by: Alexander Courtis <alex@courtis.org >
2023-12-09 11:34:35 +11:00
Azad
4054fc4be3
refactor: format tables line by line for better readability ( #2456 )
...
* Format tables line by line for better readability
* Forgot a comma
---------
Co-authored-by: Alexander Courtis <alex@courtis.org >
2023-10-14 18:07:28 +11:00
Alexander Courtis
d49a284236
feat( #2411 ): add renderer.highlight_bookmarks, renderer.icons.bookmarks_placement ( #2412 )
...
* feat(#1079 ): add highlight NvimTreeCopiedText and NvimTreeCutText
* feat(#1079 ): add highlight NvimTreeCopiedText and NvimTreeCutText
* feat(#1079 ): node may not be present in copy and cut
* feat(#2411 ): bookmark highlight and icon placement
* feat(#1079 ): add renderer.highlight_clipboard
* feat(#1079 ): add renderer.highlight_clipboard
* feat(#2411 ): bookmark highlight and icon placement
* feat(#2411 ): bookmark highlight and icon placement
* style
* feat(#2411 ): bookmark highlight and icon placement
* feat(#2411 ): bookmark highlight and icon placement
* feat(#2411 ): bookmark highlight and icon placement
* feat(#2411 ): bookmark highlight and icon placement
2023-09-24 15:07:02 +10:00
pr4th4m
7f7665a17b
feat: api.marks.bulk.trash ( #2391 )
...
* Feature: Bulk trash api
* Update docs
* Follow documentation syntax
* Remove unnecessary refresh
* doc spacing
---------
Co-authored-by: Alexander Courtis <alex@courtis.org >
2023-09-16 15:10:36 +10:00
Tillman Jex
b856d0a0c3
fix( #2392 ): bookmarks icon placement when group_empty ( #2402 )
...
* fix: marks now align with nodes when parent nodes are empty and group_empty option
enabled
* run stylua
---------
Co-authored-by: Alexander Courtis <alex@courtis.org >
2023-09-09 11:27:15 +10:00
Mohamed Arish
920868dba1
fix( #2370 ): Better "y/N" prompts ( #2377 )
...
* Changed the default y/n prompt to default to N in most cases(all delete cases) and made it so that the copy paste same name conflict defaults to R(ename)
* Removed all No conditions as they are not used and not needed
* Made item_short into lowercase and also fixed prompts in dressing.nvim and telescope-select.nvim
* Fixed the exception which occurs on pressing esc in the prompt and also made rename to be blank or r.*/R.*
2023-08-20 17:34:14 +10:00
Alexander Courtis
bdceaf5096
feat( #1804 ): add api.marks.bulk.delete with default bd mapping ( #2276 )
2023-06-18 14:09:11 +10:00
Alexander Courtis
d4f6d33496
fix( #2240 ): disable watchers following EMFILE ( #2268 )
...
* fix(#2240 ): disable watchers following EMFILE
* fix(#2240 ): disable watchers following EMFILE
2023-06-18 11:42:48 +10:00
kylo252
6ca6f99e76
feat(notify): add notify.threshold ( #1693 )
...
* feat: configurable notification level
add `notify.threshold` to setup opts
* feat: configurable notification level: add threshold example doc
* feat: configurable notification level: log always comes last
Co-authored-by: Alexander Courtis <alex@courtis.org >
2022-11-01 10:24:40 +11:00
wyrid
cd2f7569db
feat(api): add api.marks.clear ( #1708 )
2022-11-01 08:46:56 +11:00
Sebastian Volland
90dcf42bba
fix( #1533 ): make toggle_mark ignore non-togglable nodes. ( #1534 )
2022-08-22 14:24:25 +10:00
kiyan
8dc2144e87
refactor: use vim.ui.input for y/n selections
...
also add clear_prompt again.
fixes #1441
2022-07-19 11:31:09 +02:00
kiyan
21fadc1f38
chore: move nvim-tree.utils.warn -> notify.warn
...
add notify.error and notify.info
2022-07-18 13:46:11 +02:00
Kiyan
26512c369f
feat(marks): add bulk move action ( #1419 )
2022-07-17 08:25:11 +02:00
kiyan
4900d66370
fix(open-file): focus file if already opened
2022-07-16 15:38:50 +02:00
Kiyan
89becc7604
feat(marks): add navigation (next, previous, select) ( #1415 )
2022-07-16 10:40:47 +02:00
kiyan
6a49a0301f
refactor(marks): fix offset line and move into init.lua
...
also set node in marks record instead of true
2022-07-12 09:34:26 +02:00