Everton Jr.
48a9290757
feat: add renderer.highlight_hidden, renderer.icons.show.hidden and renderer.icons.hidden_placement for dotfile icons/highlights ( #2840 )
...
* feat(hidden_decorator): Allow hidden (dotfiles) to be highlighted, both icon and name (this not related to git highlights).
Better defaults
squashed
docs(hidden)
docs(hidden)
docs(hidden)
* fix(typo): small typo on hl groups
* feat(hidden_dotfile_highlight): make a file that has a dotfile parent be also a dotfile
* docs: update docs on hidden highlight
---------
Co-authored-by: Alexander Courtis <alex@courtis.org>
2024-07-21 16:00:34 +10:00
Alexander Courtis
b2640685a8
Revert "feat( #2349 ): add "right_align" option for renderer.icons.*_placement ( #2839 )"
...
This reverts commit 1d629a5d3f .
2024-07-21 15:22:24 +10:00
Everton Jr.
1d629a5d3f
feat( #2349 ): add "right_align" option for renderer.icons.*_placement ( #2839 )
...
* feat(icon_placement): Allow right_align icon_placemente for decorator using ext_marks nvim api
* feat(icon_placement): Allow right_align icon_placemente for decorator using ext_marks nvim api
feat(icon_placement): Allow right_align icon_placemente for decorator using ext_marks nvim api
* feat(icon_placement): consolidate doc
---------
Co-authored-by: Alexander Courtis <alex@courtis.org>
2024-07-21 14:49:10 +10:00
Samuel Durante
abfd1d1b67
fix( #2813 ): macos: enable file renaming with changed capitalization ( #2814 )
...
* fix(#2813 ): enable file renaming in `nvim-tree` with changed capitalization
* fix(#2813 ): check if is macos
---------
Co-authored-by: Alexander Courtis <alex@courtis.org>
2024-07-11 16:15:03 +10:00
Vladimir Levin
2ede0de67b
feat( #2598 ): add api.tree.resize ( #2811 )
...
* feat(#2598 ): Implemented API `tree.resize`
* rely on when resize
* Fix docs
---------
Co-authored-by: Alexander Courtis <alex@courtis.org>
2024-07-11 15:15:40 +10:00
Epheien
12a9a995a4
fix( #2819 ): experimental.actions.open_file.relative_path issue following change directory ( #2820 )
...
fix issue with the description of epheien in #2819
Co-authored-by: eph <eph@MacBook-Pro.local>
2024-07-07 15:53:04 +10:00
Epheien
869c064721
feat( #2127 ): add experimental.actions.open_file.relative_path to open files with a relative path rather than absolute ( #2805 )
...
* temp workaround for issue #2803
* fix #2127 and #2803
* chore(#2127 ): read the configuration correctly
* feat(#2127 ): add help
* feat(#2127 ): normalise relative_path in config hierarchy
* feat(#2127 ): update help
---------
Co-authored-by: eph <eph@MacBook-Pro.local>
Co-authored-by: Alexander Courtis <alex@courtis.org>
2024-07-07 12:51:43 +10:00
Alexander Courtis
8b2c5c678b
feat( #2799 ): filesystem_watchers.ignore_dirs and git.disable_for_dirs may be functions ( #2800 )
...
feat(#2799 ): filesystem_watchers.ignore_dirs and git.disable_for_dirs may be functions
2024-06-23 11:44:45 +10:00
Alexander Courtis
8704b6f7fc
chore( #2787 ): minimum nvim version 0.9, replace 0.10 deprecated, enable deprecated warnings ( #2788 )
...
* refactor(#2787 ): replace deprecated
* refactor(#2787 ): enable deprecated checks
* refactor(#2787 ): replace deprecated
* refactor(#2787 ): replace deprecated
* refactor(#2787 ): replace deprecated
* refactor(#2787 ): replace deprecated
* refactor(#2787 ): use inline deprecation disabling
* refactor(#2787 ): replace deprecated
* refactor(#2787 ): replace deprecated
* refactor(#2787 ): replace deprecated
* refactor(#2787 ): replace deprecated
* refactor(#2787 ): replace deprecated
* refactor(#2787 ): replace deprecated
* refactor(#2787 ): replace deprecated
* refactor(#2787 ): replace deprecated
* refactor(#2787 ): replace deprecated
* refactor(#2787 ): deprecated are now warnings
* refactor(#2787 ): 0.9 is the minimum supported version
* Revert "refactor(#2787 ): replace deprecated"
This reverts commit b6b4c32fcb .
* refactor(#2787 ): suppress deprecated until 0.11
* refactor(#2787 ): minimum nvim version 0.8 -> 0.9
* refactor(#2787 ): reset globals
* refactor(#2787 ): explicitly check for vim.diagnostic.is_enabled function presence
2024-06-09 12:24:35 +10:00
Alexander Courtis
26632f496e
chore( #2731 ): neovim luadoc 0.10 compliance ( #2786 )
...
* refactor(#2731 ): resolve warnings
* refactor(#2731 ): resolve warnings
* refactor(#2731 ): resolve warnings
* refactor(#2731 ): resolve warnings, type gymnastics
* refactor(#2731 ): resolve warnings, type gymnastics
* refactor(#2731 ): resolve warnings
* refactor(#2731 ): resolve warnings
* refactor(#2731 ): handle cwd unavailable when opening
* refactor(#2731 ): resolve warnings
* refactor(#2731 ): resolve warnings
* refactor(#2731 ): resolve warnings
* refactor(#2731 ): resolve warnings, type gymnastics
* refactor(#2731 ): resolve warnings
* refactor(#2731 ): resolve warnings
* refactor(#2731 ): style
* refactor(#2731 ): add _meta library, explicit check disables
* refactor(#2731 ): add lua-language-server manual install instructions
* refactor(#2731 ): resolve warnings
* refactor(#2731 ): explicitly set all diagnostics, reduce deprecated to hint
* Revert "refactor(#2731 ): resolve warnings"
This reverts commit 9c0526b7b0 .
* Revert "refactor(#2731 ): resolve warnings"
This reverts commit f534fbc606 .
* refactor(#2731 ): handle directory unavailable when deleting
* refactor(#2731 ): resolve warnings
* refactor(#2731 ): resolve warnings
* refactor(#2731 ): resolve warnings
* refactor(#2731 ): resolve warnings
* refactor(#2731 ): resolve warnings
* refactor(#2731 ): resolve warnings
* refactor(#2731 ): resolve warnings
* refactor(#2731 ): handle directory unavailable when creating explorer
* refactor(#2731 ): add all nvim lua libraries
* refactor(#2731 ): resolve warnings
* refactor(#2731 ): remove vim global
* refactor(#2731 ): disable deprecated until we have a 0.9->0.10 story
2024-06-01 15:24:03 +10:00
Alexander Courtis
517e4fbb9e
revert( #2781 ): "refactor: replace deprecated use of vim.diagnostic.is_disabled()" ( #2784 )
...
Revert "refactor: replace deprecated use of vim.diagnostic.is_disabled() (#2781 )"
This reverts commit 4215f33da5 .
2024-05-26 11:34:03 +10:00
Zachary Rizer
4215f33da5
refactor: replace deprecated use of vim.diagnostic.is_disabled() ( #2781 )
...
* Deprecation fix
* Deprecation fix
* remove unnecessary assignment
---------
Co-authored-by: Alexander Courtis <alex@courtis.org>
2024-05-25 14:42:34 +10:00
Jacob Kania
340d3a9795
fix: nil access exception with git integration when changing branches ( #2774 )
...
Fix nil access exception appearing when changing branches
2024-05-14 10:31:56 +10:00
Alexander Courtis
64f61e4c91
fix( #925 ): handle newlines in file names ( #2754 )
2024-05-04 13:51:13 +10:00
Alexander Courtis
347e1eb352
fix( #2758 ): use nvim-webdevicons default file icon, not renderer.icons.glyphs.default, as per :help ( #2759 )
...
fix(#2758 ): use nvim-webdevicons default for default files
2024-04-30 11:32:51 +10:00
Alexander Courtis
81eb8d5192
fix( #2733 ): escape trash path ( #2735 )
...
* fix(#2733 ): escape trash path
* fix(#2733 ): escape trash path
* fix(#2733 ): escape trash path
2024-04-06 12:28:41 +11:00
Yida Zhang
d8d3a1590a
fix( #2535 ): TextYankPost event sends vim.v.event ( #2734 )
...
* fix TextYankPost event
* Update lua/nvim-tree/actions/fs/copy-paste.lua
Co-authored-by: Alexander Courtis <alex@courtis.org>
* fix format string
* style
---------
Co-authored-by: Alexander Courtis <alex@courtis.org>
2024-03-31 17:24:47 +11:00
Alexander Courtis
0aca0920f4
fix( #2658 ): change SpellCap groups to reduce confusion: ExecFile->Question, ImageFile->Question, SpecialFile->Title, Symlink->Underlined; add all other highlight groups to :NvimTreeHiTest ( #2732 )
...
* fix(#2658 ): add all highlight groups to :NvimTreeHiTest
* fix(#2658 ): add all highlight groups to :NvimTreeHiTest
* fix(#2658 ): change SpellCap groups: ExecFile->Question, ImageFile->Question, SpecialFile->Title, Symlink->Underlined
2024-03-30 17:47:30 +11:00
remvn
2d97059661
fix: bookmark filter shows marked directory children ( #2719 )
...
* fix: bookmark filter include marked-directory's children
* fix(perf): add path_type to filter functions
* fix: replace undefined type
* fix: correct Node.fs_stat type
* fix: file info popup check fs_stat not nil
* refactor: add stat to should_filter, Node constructor
* perf: early return if bookmark is empty
---------
Co-authored-by: Alexander Courtis <alex@courtis.org>
2024-03-30 13:21:55 +11:00
Ava Harris
e20966ae55
feat: add update_focused_file.exclude ( #2673 )
...
* Add update_focused_file.exclude and move update_focused_file.ignore_list to update_focused_file.update_root.ignore_list
* Pass ci checks
* Add config migration for update_root and ignore_list
* Missed one mention of update root in find_file.lua
* Update migration code
Co-authored-by: Alexander Courtis <alex@courtis.org>
* make docs consistent
* match on filename instead of entire path
* exclude as a function
* fix docs
* default exclude value
---------
Co-authored-by: Alexander Courtis <alex@courtis.org>
2024-03-25 15:41:05 +11:00
Denys Lytviak
f7c09bd72e
feat: add api.tree.toggle_enable_filters ( #2706 )
...
* feat: toggle filters
* naming refactoring
* change name to enable
* fix default opt
* fix api name
* update doc
* remove default keybinding, toggle live filter
* add API doc
---------
Co-authored-by: Alexander Courtis <alex@courtis.org>
2024-03-16 12:35:13 +11:00
remvn
76b98109f6
fix: bookmark filter should include parent directory ( #2704 )
...
* fix: bookmark filter should include parent directory
* fix: dont match mark's siblings
* fix: match mark from the start
---------
Co-authored-by: Alexander Courtis <alex@courtis.org>
2024-03-15 12:21:04 +11: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
1fd9c98960
fix( #2705 ): change NvimTreeWindowPicker cterm background from Cyan to more visible DarkBlue ( #2708 )
...
fix(#2705 ): change NvimTreeWindowPicker from Cyan to the more visible DarkBlue
2024-03-15 10:58:40 +11:00
Rami Elwan
8f2a50f1cd
feat: add api.fs.copy.basename, default mapping ge ( #2698 )
...
* feat: add copy basename
* fix: change keymap for copy basename
* fix: use double quotes
* fix: add missing help
---------
Co-authored-by: Alexander Courtis <alex@courtis.org>
2024-03-14 16:57:46 +11:00
Alexander Courtis
3c4267eb50
fix( #2695 ): git toplevel guard against missing paths ( #2696 )
2024-03-14 16:23:58 +11:00
DB
041dbd18f4
fix: searchcount exception on invalid search regex ( #2693 )
...
* fix: wrap searchcount in pcall to avoid error
* fix: searchcount in pcall
---------
Co-authored-by: xVermillionx <xVermillionx@notvalid>
2024-03-09 13:27:23 +11:00
Mohamed Arish
efafd73efa
feat( #2630 ): file renames can now create directories ( #2657 )
...
* Added creating of directories when renaming files
* Style check error? fixed
* Forgot, I added back the line of code that creates a directory named as the file and forgot to remove it
* Added a check for file already exists and also switched the is_error values as they were mismatched
* I don't know how but this somehow fixed the creation of a directory?
2024-03-03 12:25:17 +11:00
Alexander Courtis
7efaa339d3
docs: :help nvim-tree-legacy ( #2679 )
...
doc: add help nvim-tree-legacy
2024-02-24 15:50:10 +11:00
darcy
4a87b8b46b
feat( #2654 ): filters.custom may be a function ( #2655 )
...
* feat(#2654 ): add `binaries` field to `filters`
* feat(#2648 ): allow functions in `filters.custom`
* ci: fix: stylua check
* ci: fix: add new keybind and config to docs
* fix: replace os-specific binary filter with `vim.fn.executable`
* fix: remove function and mapping for `binaries` filter
* fix: add `node` parameter to custom filter function
* fix: update doc for custom filter function signature
* fix: add custom filter to `ACCEPTED_TYPES`
* fix: accept single function for custom filter
* fix: change custom filter on `ACCEPTED_TYPES`
* fix: revert to using `path` for custom filter function
* fix: use `function` type for custom filter
* fix: type for custom filter in help
* fix: custom filter single function no longer mutates `M.config.filter_custom`
* fix: remove dead `if` statement in custom filter
* fix: separate custom filter function from `M.ignore_list`
* doc nit
---------
Co-authored-by: darcy <44690813+darccyy@users.noreply.github.com>
Co-authored-by: Alexander Courtis <alex@courtis.org>
2024-02-11 17:18:40 +11:00
Alexander Courtis
39e6fef85a
fix( #2415 ): highlight help header and mappings ( #2669 )
2024-02-11 15:40:21 +11:00
Alexander Courtis
b278fc25ae
feat( #2415 ): add :NvimTreeHiTest ( #2664 )
...
* feat(#2415 ): add :NvimTreeHiTest
* feat(#2415 ): split out appearance diagnostics
2024-02-11 14:41:40 +11:00
Zeta
8cbb1db8e9
feat: add node.open.toggle_group_empty, default mapping L ( #2647 )
...
* feat: ungrouping empty directories
* add a new api to toggle empty folders
* solve comments
* solve comments
* update help
---------
Co-authored-by: juefei yan <juefeiyan@juefeis-MacBook-Air.local>
Co-authored-by: Alexander Courtis <alex@courtis.org>
2024-02-04 16:48:56 +11:00
Confidenceman02
f39f7b6fcd
fix( #2415 ): nvim 0.8 highlight overhaul support, limited to only show highest highlight precedence ( #2642 )
...
* fix: Add support for get_hl_defs in nvim 0.8
nvim-tree is using `nvim_get_hl` which was introduced in nvim 0.9 to
replace the unstable `get_hl_defs` in the following [commit](https://github.com/neovim/neovim/pull/22693/files ).
Unfortunately this raises an error in 0.8 nvim versions due to the
function not existing.
```
Failed to run `config` for nvim-tree.lua
...are/nvim/lazy/nvim-tree.lua/lua/nvim-tree/appearance.lua:199: attempt to call field 'nvim_get_hl' (a nil value)
stacktrace:
- ~/.config/nvim/lua/confidenceman02/plugins/nvim-tree.lua:14 _in_ **config**
- ~/.config/nvim/lua/confidenceman02/lazy.lua:14
```
- Fall back to get_hl_defs when detecting 0.8
- Set the 'link' property to nil to emulate `link = false` in
`builder.lua`
* fix(#2415 ): nvim 0.8 highlight overhaul support, limited to only show highest highlight precedence
---------
Co-authored-by: Jaime Terreu <jaime@terreu.com>
Co-authored-by: Alexander Courtis <alex@courtis.org>
2024-01-30 10:37:32 +11:00
Alexander Courtis
e9ac136a3a
fix( #2415 ): NvimTreeIndentMarker highlight group: FileIcon->FolderIcon ( #2656 )
...
fix(#2415 ): fix NvimTreeIndentMarker highlight group: FileIcon->FolderIcon
2024-01-29 13:28:20 +11:00
Alexander Courtis
d9cb432d2c
fix( #2415 ): disambiguate highlight groups, see :help nvim-tree-highlight-overhaul ( #2639 )
...
* fix(#2415 ): disambiguate highlight groups, see :help nvim-tree-highlight-overhaul
* fix(#2415 ): disambiguate highlight groups, see :help nvim-tree-highlight-overhaul
* fix(#2415 ): disambiguate highlight groups, see :help nvim-tree-highlight-overhaul
* fix(#2415 ): disambiguate highlight groups, see :help nvim-tree-highlight-overhaul
* fix(#2415 ): disambiguate highlight groups, see :help nvim-tree-highlight-overhaul
* fix(#2415 ): disambiguate highlight groups, see :help nvim-tree-highlight-overhaul
* fix(#2415 ): disambiguate highlight groups, see :help nvim-tree-highlight-overhaul
2024-01-29 12:43:02 +11:00
Alexander Courtis
fbee8a69a4
fix( #2643 ): correctly apply linked highlight groups in tree window ( #2653 )
...
* fix(#2643 ): correctly apply linked highlight groups in tree window
* fix(#2643 ): recreate and apply combined highlight groups on colorscheme change
2024-01-29 12:42:19 +11:00
Alexander Courtis
7bdb220d0f
fix( #2637 ): show buffer modified icons and highlights ( #2638 )
2024-01-21 17:24:43 +11:00
Danila Usachev
48b1d8638f
fix( #2632 ): occasional error stack when locating nvim-tree window ( #2633 )
...
fix: passing nil as window handle in view.get_winnr
Co-authored-by: Alexander Courtis <alex@courtis.org>
2024-01-21 15:54:27 +11:00
Tomasz N
75ff64e666
fix: bad column offset when using full_name ( #2629 )
...
Co-authored-by: __ <__@__>
Co-authored-by: Alexander Courtis <alex@courtis.org>
2024-01-21 15:37:46 +11:00
Kevin Ko
74525ac047
fix: allow highlight overrides for DEFAULT_DEFS: NvimTreeFolderIcon, NvimTreeWindowPicker ( #2636 )
2024-01-21 10:32:28 +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
Alexander Courtis
f24afa2cef
fix( #2624 ): open file from docked floating window ( #2627 )
2024-01-14 11:08:15 +11:00
Antonin Godard
5d13cc8205
feat( #1389 ): api: recursive node navigation for git and diagnostics ( #2525 )
...
* feat(#1389 ): add next recursive for git and diag moves
The recurse opt can be used to directly go to the next item showing
git/diagnostic status recursively.
Signed-off-by: Antonin Godard <antoningodard@pm.me>
* refactor: status logic in single function
Rename get_status to status_is_valid.
Use status_is_valid function in multiple place to avoid duplicating
code.
Signed-off-by: Antonin Godard <antoningodard@pm.me>
* feat(#1389 ): add prev recursive for git and diag moves
Signed-off-by: Antonin Godard <antoningodard@pm.me>
* fix(#1389 ): next recursive: take root node into account
The root node cannot have a status. Previously if moving from the root
node, status_is_valid was trying to fetch the status from it and errored.
Signed-off-by: Antonin Godard <antoningodard@pm.me>
* fix(#1389 ): doc: remove show_on_open_dirs limitation
Signed-off-by: Antonin Godard <antoningodard@pm.me>
* feat(#1389 ): move find_node_line to utils
Signed-off-by: Antonin Godard <antoningodard@pm.me>
* feat(#1389 ): doc: note recursive moves are to files only, tidy
---------
Signed-off-by: Antonin Godard <antoningodard@pm.me>
Co-authored-by: Alexander Courtis <alex@courtis.org>
2024-01-07 09:08:58 +11:00
Alexander Courtis
6a99f5af78
ci: lua language server and Makefile ( #2546 )
...
* ci: add lls-check
* ci: add lls-check to ci.yml
* ci: download lua-language-server binary
* ci: download lua-language-server binary
* ci: dummy failure to test
* Revert "ci: dummy failure to test"
This reverts commit 2bc43bad430209e32a5049a16c56710c4f6e2f7b.
* ci: ignore lls-out
* ci: better name
* ci: shellcheck nits
* ci: add luals libs and tidy
* ci: tidy
* ci: add neovim 0.9.4
* ci: add ci neovim 0.9.4 to lib path
* ci: dummy failure to test
* Revert "ci: dummy failure to test"
This reverts commit 45987335d81ec65fecc6636b339671a9a9fcdd97.
* Revert "ci: add ci neovim 0.9.4 to lib path"
This reverts commit 4f397d6ea8bbdf6e808f9dc9db5ecbae291d8cd4.
* Revert "ci: add neovim 0.9.4"
This reverts commit 46fd1b368d27a1892b55381691723db3b30a7527.
* ci: action downloads and installs luals
* ci: remove workspaces from luals
* ci: consistent script naming
* ci: add quality to contributing
* ci: consistent script naming
* ci: add lsp to diagnostics
* ci: temporary find to enumerate home
* ci: add VIMRUNTIME for lls
* ci: temporary find to enumerate home
* ci: temporary find to enumerate home
* ci: remove temporary find to enumerate home
* ci: correct VIMRUNTIME
* ci: add ${3rd}/luv/library
* ci: note VIMRUNTIME override
* ci: add Makefile
* ci: add Makefile
* ci: add Makefile
* ci: add Makefile
* ci: document checks and fixes
* ci: add help check
* ci: add help check
* ci: dummy help failure
* Revert "ci: dummy help failure"
This reverts commit c50cceaa4a .
* ci: document checks and fixes
* ci: document checks and fixes
* ci: matrix nvim version
* ci: matrix nvim version
* Revert "ci: matrix nvim version"
This reverts commit fcef6a11e9 .
* Revert "ci: matrix nvim version"
This reverts commit a8cb50d39d .
* ci: matrix nvim version from env
* ci: matrix nvim version from env
* ci: matrix nvim version from env
* ci: matrix nvim version
* ci: matrix nvim version
* ci: matrix per job
* ci: matrix per job
* ci: many lua versions
* ci: move doc to style
* ci: tidy ci and contributing
2024-01-06 13:18:52 +11:00
Alexander Courtis
fac4900bd1
fix( #2609 ): help toggle ( #2611 )
2024-01-01 12:36:57 +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
geril2207
02ae52357b
fix: hijack_cursor on update focused file and vim search ( #2600 )
...
refactor: hijack_cursor search skip
2023-12-31 14:40:58 +11:00
Max
96a783fbd6
fix( #2519 ): Diagnostics Not Updated When Tree Not Visible ( #2597 )
...
* fix(#2519 ): diagnostics overhaul
Signed-off-by: iusmac <iusico.maxim@libero.it>
* fix: Properly filter diagnostics from coc
Also, while we're at it, refactor the lsp function for consistency.
There should be no functional change, just cosmetic.
Signed-off-by: iusmac <iusico.maxim@libero.it>
* Assign diagnostic version per node to reduce overhead
Signed-off-by: iusmac <iusico.maxim@libero.it>
* Require renderer once
Signed-off-by: iusmac <iusico.maxim@libero.it>
* Revert "Require renderer once"
Causes circular requires after the previous commit.
This reverts commit 7413041630 .
* Rename `buffer_severity_dict` to `BUFFER_SEVERITY`
Signed-off-by: iusmac <iusico.maxim@libero.it>
* Log diagnostics update properly
Signed-off-by: iusmac <iusico.maxim@libero.it>
* Implement error handling for coc.nvim
Signed-off-by: iusmac <iusico.maxim@libero.it>
* CI style fixes
Signed-off-by: iusmac <iusico.maxim@libero.it>
* Capture `Keyboard interrupt` when handling coc exceptions
Signed-off-by: iusmac <iusico.maxim@libero.it>
* add more doc
---------
Signed-off-by: iusmac <iusico.maxim@libero.it>
Co-authored-by: Alexander Courtis <alex@courtis.org>
2023-12-30 14:30:07 +11:00
Azad
50f30bcd8c
feat: add option to skip gitignored files on git navigation ( #2583 )
...
* feat: add option to skip gitignored files on git navigation
* Add API bindings
* stylua: ignore
2023-12-19 11:29:01 +01:00
Alexander Courtis
8f92e1edd3
feat( #1850 ): add "no bookmark" filter ( #2571 )
...
* feat(#1850 ): add no bookmark filter
* feat(#1850 ): add no bookmark filter - style
2023-12-19 16:18:24 +11:00
Azad
34780aca5b
refactor: take single opts param on node navigation ( #2584 )
...
* refactor: take single `opts` param on node navigation
* `MoveOpts` -> `NavigationItemOpts`
2023-12-10 23:44:36 +01:00
Alexander Courtis
0a7c24b675
fix( #2568 ): hijack_cursor positions at top grouped node ( #2569 )
...
Co-authored-by: Azad <49314270+Akmadan23@users.noreply.github.com>
2023-12-10 00:13:22 +01:00
Alexander Courtis
27e66c2ea8
refactor( #1645 ): remove unused open_replacing_current_buffer ( #2570 )
2023-12-09 12:18:57 +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
Alexander Courtis
7e5c673180
docs( #285 ): clarify api.fs.create directory creation ( #2572 )
...
docs(#285 ): clarify api.fs.create directory creation
2023-12-04 11:32:03 +11:00
Azad
05f55c1fd6
chore: remove TreeExplorer global variable ( #2561 )
2023-11-28 10:39:52 +01:00
Alexander Courtis
d5cc938ab0
refactor: api and command focus call tree.open(), soft deprecate tree.focus()
2023-11-27 14:24:55 +02:00
kezhenxu94
5e4475d8bf
fix: harden tree root cwd fetch ( #2557 )
...
Co-authored-by: Alexander Courtis <alex@courtis.org>
2023-11-26 09:39:19 +11:00
Azad
5231562caf
feat(log): add node inspection function ( #2541 )
...
* feat: add `api.tree.inspect_node_under_cursor`
* Add documentation
* Revert "feat: add `api.tree.inspect_node_under_cursor`"
This reverts commit 784ee91cc6 .
* Revert "Add documentation"
This reverts commit 6dc396d0a5 .
* feat(log): add node inspection function
---------
Co-authored-by: Alexander Courtis <alex@courtis.org>
2023-11-25 21:45:59 +01:00
John Hui
8c534822a7
feat( #2544 ): add api.tree.winid ( #2545 )
...
* feat(#2544 ): add API for querying win ID, api.tree.winid()
* Document winid() opts
Co-authored-by: Alexander Courtis <alex@courtis.org>
* Fix winid() docs
Co-authored-by: Alexander Courtis <alex@courtis.org>
* Handle case where tabpage = 0
---------
Co-authored-by: Alexander Courtis <alex@courtis.org>
2023-11-21 16:04:43 +11:00
Azad
fb89297347
fix( #2468 ): always apply filters to subdirectories ( #2537 )
...
Co-authored-by: Alexander Courtis <alex@courtis.org>
2023-11-20 11:43:35 +01:00
Alexander Courtis
46e1f776f0
fix( #2516 ): diagnostics icon highlight group matches the documentation: NvimTreeLspDiagnosticsInfo -> Information ( #2518 )
2023-11-19 15:31:52 +11:00
Cristi
8f9169a059
fix: git highlight for new staged files ( #2534 )
...
Co-authored-by: Cristian Toma <cristian.toma@vivre.eu>
Co-authored-by: Alexander Courtis <alex@courtis.org>
2023-11-19 14:47:10 +11:00
Matt W
633811c53d
fix: harden git status updates ( #2533 )
...
* fix for nil status error messages
* simplify logic
---------
Co-authored-by: Alexander Courtis <alex@courtis.org>
2023-11-19 14:43:36 +11:00
Alfonso Ros
52a1c99bf0
feat( #2530 ): keep alt filename on node.open.replace_tree_buffer ( #2531 )
...
Co-authored-by: Alfonso Ros <alfonso.ros@apex.ai>
2023-11-19 14:38:55 +11:00
geril2207
80cfeadf17
fix( #2523 ): live filter overlay width calculation ( #2524 )
...
* fix: live filter overlay width calculation
* refactor: simplify calculate_width return if not wininfo
---------
Co-authored-by: Alexander Courtis <alex@courtis.org>
2023-11-13 09:49:14 +11:00
Azad
874ae6e944
fix: reload tree on BufEnter if cwd is different ( #2527 )
...
Co-authored-by: Alexander Courtis <alex@courtis.org>
2023-11-12 13:14:32 +11:00
geril2207
74ddb8f2bb
fix: cleanup live filter scratch buffers ( #2522 )
2023-11-12 12:53:24 +11:00
Azad
a2aaf8b430
feat( #2515 ): add option to change grouped folders name with custom function ( #2521 )
...
* Add option to change grouped folders name with custom function
* Fix docs
---------
Co-authored-by: Alexander Courtis <alex@courtis.org>
2023-11-09 11:20:29 +01:00
geril2207
4ee6366ff1
fix( #2512 ): file creation in empty folder without root_folder_label ( #2514 )
...
Co-authored-by: Alexander Courtis <alex@courtis.org>
2023-11-08 09:01:28 +11:00
Azad
0a99c4a23e
feat: allow cycling on git/diagnostic/opened files navigation ( #2506 )
...
* feat: allow cycling on git/diagnostic/opened files navigation
* luacheck
* Remove useless nil check
* Cycle only if `wrapscan` is enabled
---------
Co-authored-by: Alexander Courtis <alex@courtis.org>
2023-11-07 00:39:08 +01:00
Dongyomi
20a0707e0f
fix( #2507 ): icon in message after rename-file ( #2510 )
...
* fix(#2507 ): icon in message after rename-file
* fix(#2507 ): icon in message after rename-file
---------
Co-authored-by: Alexander Courtis <alex@courtis.org>
2023-11-06 10:38:16 +11:00
geril2207
24bb0ed806
fix: error when deleting opened file from floating window ( #2503 )
2023-11-06 09:35:51 +11:00
Tomasz N
7e3c0bee7b
feat: renderer.full_name includes root node ( #2502 )
...
* Do not exclude root node from `full_name`
* fix range
---------
Co-authored-by: Alexander Courtis <alex@courtis.org>
2023-10-30 13:17:33 +11:00
Azad
7630cf4a92
fix( #2495 ): skip API action if node == nil ( #2499 )
...
* fix(#2495 ): skip action if node == nil
* simplify
---------
Co-authored-by: Alexander Courtis <alex@courtis.org>
2023-10-30 12:46:21 +11:00
Azad
c1568568b3
feat( #2498 ): delete, trash prompts default N, added ui.confirm.default_yes option to override this behaviour ( #2500 )
...
Co-authored-by: Alexander Courtis <alex@courtis.org>
2023-10-30 12:28:29 +11:00
rei
7c5c074354
fix( #2467 ): remove newline in git paths when using cygwin_support ( #2478 )
...
* fix(#2467 ): remove newline in git paths
* fix: info size suffix and formatting (#2492 )
- Now there is a whitespace between value and unit.
- Now values >= 1024 YiB are shown in YiB instead of B.
- To reuse same code a new local function was added: round().
* feat(#2312 ): fire `TextYankPost` event on path copy (#2489 )
* feat(#2312 ): fire `TextYankPost` event on path copy
* stylua
* Bug fix
---------
Co-authored-by: Alexander Courtis <alex@courtis.org>
* feat: mapping and options to sort entries in help window (#2482 )
* feat: add option to sort entries in help window
* stylua
* Add keymap to toggle sorting methods
* Bug fix
---------
Co-authored-by: Alexander Courtis <alex@courtis.org>
* fix(#2467 ): remove newline in git paths
* fix(#2467 ): change cygpath calls to array format
To avoid shell compatibility issues in msys2 environment on Windows
* stylua nit
---------
Co-authored-by: Alexander Courtis <alex@courtis.org>
Co-authored-by: Andrew Voynov <37143421+Andrew15-5@users.noreply.github.com>
Co-authored-by: Azad <49314270+Akmadan23@users.noreply.github.com>
2023-10-30 11:39:32 +11:00
Azad
78a9ca5ed6
feat: mapping and options to sort entries in help window ( #2482 )
...
* feat: add option to sort entries in help window
* stylua
* Add keymap to toggle sorting methods
* Bug fix
---------
Co-authored-by: Alexander Courtis <alex@courtis.org>
2023-10-23 08:57:49 +11:00
Azad
c2194e940c
feat( #2312 ): fire TextYankPost event on path copy ( #2489 )
...
* feat(#2312 ): fire `TextYankPost` event on path copy
* stylua
* Bug fix
---------
Co-authored-by: Alexander Courtis <alex@courtis.org>
2023-10-23 08:56:06 +11:00
Andrew Voynov
a31dfada1d
fix: info size suffix and formatting ( #2492 )
...
- Now there is a whitespace between value and unit.
- Now values >= 1024 YiB are shown in YiB instead of B.
- To reuse same code a new local function was added: round().
2023-10-23 08:54:37 +11:00
Andrew Voynov
83b699533b
feat: use IEC binary size prefixes ( #2483 )
...
* Added binary (IEC) prefixes
* Added missing binary prefixes
2023-10-22 08:58:45 +11:00
Alexander Courtis
db8145c27d
fix( #2459 ): disable cygwin git support by default, see :help nvim-tree.git.cygwin_support to enable ( #2486 )
2023-10-21 16:34:34 +11:00
Alexander Courtis
40b9b887d0
fix( #2473 ): remove problematic <S-Tab> default mapping ( #2475 )
2023-10-17 10:00:56 +11:00
umlx5h
aaee4cd896
feat: api.node.open.preview_no_picker with default mapping <S-Tab> ( #2464 )
...
* feat: add preview with no window picker action
* feat: preview_no_window_picker -> preview_no_picker
---------
Co-authored-by: Alexander Courtis <alex@courtis.org>
2023-10-15 14:04:04 +11:00
Benoit Charles
0882354517
feat( #2148 ): api.fs.rename_full ( #2461 )
...
* feat(#2148 ): add rename_full in API
* feat(#2148 ): add default mapping 'u' for rename_full
---------
Co-authored-by: Alexander Courtis <alex@courtis.org>
2023-10-15 13:40:40 +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
e64a498a5e
feat: notify [NvimTree] prefix is multiline only if the message is multiline ( #2453 )
...
* feat: notify [NvimTree] prefix is multiline only if the message is multiline
* feat: notify [NvimTree] prefix is multiline only if the message is multiline
2023-10-14 18:03:13 +11:00
Alexander Courtis
53b0bcaada
chore: stylua column width 120 -> 140 ( #2448 )
...
* chore: stylua column width 120 -> 140
* chore: stylua column width 120 -> 140, tidy
* Revert "chore: stylua column width 120 -> 140, tidy"
This reverts commit 8a0524d6bd .
* chore: stylua column width 120 -> 140, tidy watcher.lua
* chore: stylua column width 120 -> 140, tidy diagnostics.lua
* chore: stylua column width 120 -> 140, tidy git.lua
* chore: stylua column width 120 -> 140, tidy open-file.lua
* chore: stylua column width 120 -> 140, tidy system-open.lua
* chore: stylua column width 120 -> 140, tidy runner.lua
2023-10-08 11:40:58 +11:00
zootedb0t
94e572e141
fix( #2450 ): apply NvimTreeImageFile for webp and jxl files ( #2451 )
2023-10-08 11:37:20 +11:00
Azad
85abe29396
feat: use virtual title in notifications if title is not supported ( #2439 )
...
* feat: use virtual title in notifications if title is not supported
* Fix boolean expressions
* Replace `pcall` with `package.loaded`
* Detect title support before sending notification
* Prevent `title_support` from being nil after evaluation
* temporary stylua suppression
---------
Co-authored-by: Alexander Courtis <alex@courtis.org>
2023-10-07 12:40:39 +11:00
Alexander Courtis
d8e495b235
fix( #2154 ): selection incorrect after find-file when renderer.group_empty ( #2437 )
2023-10-07 12:24:19 +11:00
Bram Reyniers
e153d9f599
fix( #2440 ): view.width.padding may be a number or function returning a number ( #2442 )
...
* fix validation view.width.padding
* fix docs for view.width.padding
* fix docs for view.width.padding
---------
Co-authored-by: Alexander Courtis <alex@courtis.org>
2023-10-07 12:21:13 +11:00
Azad
113e0950c8
feat: split startup warning messages into multiple lines ( #2436 )
2023-10-01 12:51:49 +11:00
Azad
ce3495bd4c
fix: schedule notifications to avoid UI freeze on startup ( #2432 )
...
* fix: schedule notifications to avoid UI freeze on startup
* stylua
2023-09-26 08:41:23 +10:00
Alexander Courtis
07eb5b4059
docs: notify deprecated hide_root_folder ( #2431 )
2023-09-24 15:15:19 +10: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
Azad
ea147418e0
feat: validate all option types ( #2414 )
...
* refactor: follow config structure for `ACCEPTED_TYPES`
* Bug fix
* Fix check for default values
* Reduce error notifications verbosity
* Address issues introduced previously
* stylua
---------
Co-authored-by: Alexander Courtis <alex@courtis.org>
2023-09-23 14:56:17 +10:00
Alexander Courtis
a3aa3b47ea
feat( #1079 ): add renderer.highlight_clipboard default name, defaults to undercurls ( #2410 )
...
* 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(#1079 ): add renderer.highlight_clipboard
* feat(#1079 ): renderer.highlight_clipboard takes options, style cut/copy HL
* feat(#1079 ): renderer.highlight_clipboard takes options, style cut/copy HL
* feat(#1079 ): use an enum for highlight position
* feat(#1079 ): diagnostics uses _append_highlight
2023-09-17 16:08:04 +10:00
Azad
f742b86852
fix: add legacy options safety
2023-09-17 11:08:57 +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
Alexander Courtis
94c7c810af
Revert "fix: ensure startup warnings are visible with a multiline message, to work around https://github.com/neovim/neovim/issues/17832 planned for fix in nvim 0.10 ( #2387 )"
...
This reverts commit 807dc05156 .
2023-09-10 10:38:49 +10:00
Alexander Courtis
b7f6600bc2
feat( #2197 ): git and diagnostics folder highlight groups ( #2409 )
...
* feat(#2197 ): add git folder highlight groups
* feat(#2197 ): add diagnostics folder highlight groups
2023-09-09 15:13:14 +10:00
Alexander Courtis
8f48426c88
feat( #2316 ): add NvimTreeFolderArrowClosed NvimTreeFolderArrowOpen ( #2408 )
2023-09-09 14:21:25 +10:00
Alexander Courtis
33c3bc562b
feat( #2398 ): add NvimTreeOpenedFileIcon ( #2407 )
2023-09-09 13:31:40 +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
Azad
51f02366de
feat: validate some option string values ( #2404 )
...
* Add check for accepted strings in user opts
* option failures point to :help nvim-tree-opts
---------
Co-authored-by: Alexander Courtis <alex@courtis.org>
2023-09-09 11:07:06 +10:00
Alexander Courtis
5897b3622f
fix( #2386 ): kill git zombies ( #2401 )
2023-09-03 17:26:05 +10:00
Alexander Courtis
a2b6e5ad2a
docs: help sections and tidy ( #2399 )
...
* doc: add nvim-tree-options, sort root level options
* doc: reorder default options, add sections
* doc: collapse opts spacing and tidy
* doc: tidy highlight groups
2023-09-03 15:52:33 +10:00
Alexander Courtis
323f65cb9c
feat( #1917 ): add diagnostic highlighting and icon placement ( #2396 )
...
* feat(#1917 ): add renderer.highlight_diagnostics
* feat(#1917 ): add renderer.highlight_diagnostics
* feat(#1917 ): add enderer.icons.diagnostics_placement
* feat(#1917 ): add renderer.icons.show.diagnostics
* feat(#1917 ): document highlight overrides
2023-09-03 12:29:33 +10:00
Alexander Courtis
28c3980b25
fix( #2382 ): git watcher handles worktrees and submodules, via --absolute-git-dir when it is available ( #2389 )
...
* fix(#2382 ): use --absolute-git-dir when available
* fix(#2382 ): use --absolute-git-dir when available
* fix(#2382 ): rename private git members, destroy git watchers on purge
* fix(#2382 ): consistent naming of toplevel
* fix(#2382 ): more doc and safety
* fix(#2382 ): consistent naming of toplevel
* fix(#2382 ): consistent naming of toplevel
2023-09-02 12:05:34 +10:00
Danie-1
00741206c2
fix: expand and collapse whole folder groups ( #2380 )
...
* fix: expand and collapse whole folder groups
* refactor: rename some usages of `next`
---------
Co-authored-by: Alexander Courtis <alex@courtis.org>
2023-08-26 14:44:38 +10:00
Antonio Sarosi
b144b33390
feat( #2369 ): add full renderer.icons.web_devicons options for file and folder ( #2375 )
...
* Add `webdev_colors_folder` option
* Check if `M.devicons` exists
* Refactor `get_folder_icon`
* Add configuration options for both files and folders
* web_devicons.*.enabled -> enable
* silent migration: renderer.icons.webdev_colors -> renderer.icons.web_devicons.file.color
* silent migration: renderer.icons.webdev_colors -> renderer.icons.web_devicons.file.color
---------
Co-authored-by: Alexander Courtis <alex@courtis.org>
2023-08-26 14:42:44 +10:00
Azad
d11d701857
feat( #2364 ): add option to sort files first ( #2366 )
...
* feat(#2364 ): add option to show files first
* Refactor `folders_or_files_first` function
* Improve readability
* Remove `fallback` from `folders_or_files_first` function
---------
Co-authored-by: Alexander Courtis <alex@courtis.org>
2023-08-26 14:15:56 +10:00
Alexander Courtis
807dc05156
fix: ensure startup warnings are visible with a multiline message, to work around https://github.com/neovim/neovim/issues/17832 planned for fix in nvim 0.10 ( #2387 )
2023-08-26 13:40:25 +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
davisthedev
7c4c7e4e98
fix( #2352 ): windows: escape special filename characters on edit ( #2374 )
...
* Fix escape special characters on windows
fixes #2362
* use utils for windows check
* Add function to escape special chars on windows
* Change escape string function to use and/or
* Add nil check in escape special chars function
---------
Co-authored-by: Davis Sanders <dsanders@smartlink.city>
Co-authored-by: Alexander Courtis <alex@courtis.org>
2023-08-20 13:27:33 +10:00
Alexander Courtis
4e36850811
fix( #2301 ): various git folder status fixes ( #2373 )
...
* fix(#2301 ): reloader handles grouped
* fix(#2301 ): explore uses correct git project for grouped
* fix(#2301 ): update parent status correctly across repositories
* fix(#2301 ): missing require
2023-08-20 12:53:41 +10:00
Alexander Courtis
18c7a31198
chore: remove legacy view.mappings.list ( #2371 )
2023-08-14 17:41:55 +10:00
Alexander Courtis
ace64228ad
feat( #2305 ): find file refreshes up the tree when node is not present ( #2358 )
2023-08-14 11:08:16 +10:00
Alexander Courtis
116b88564f
chore: use stdpath "log" rather than "cache" ( #2372 )
2023-08-14 11:03:38 +10:00
Alexander Courtis
0a54dcb76b
fix: trash.cmd defaults to 'trash' on macos and windows, document option ( #2336 )
...
* fix: trash.cmd defaults to 'trash' on macos
* fix: macOS and windows default trash commands, allow trash on all OS
* fix: windows default trash command doc
* fix: trash.cmd message
2023-08-13 12:18:06 +10:00
Alexander Courtis
904f95cd9d
fix: prompt uses first character of response - allow "yy" ( #2357 )
2023-08-06 13:26:10 +10:00
xundaoxd
0042886db0
select yes default when select_prompts = false in lib.prompt ( #2337 )
...
Co-authored-by: yinchaogao <yinchaogao@deeproute.ai>
Co-authored-by: Alexander Courtis <alex@courtis.org>
2023-08-06 11:14:14 +10:00
Danila Usachev
0a89dcb464
fix( #2343 ): tree is now correctly abandoned upon an in-place open with eject=false ( #2344 )
2023-08-01 10:53:58 +10:00
Danila Usachev
4bd30f0137
feat: add actions.open_file.eject ( #2341 )
...
* feat: added prevent_buffer_override option to allow in-place opens by :e
* Moved option check inside the callback
* Renamed option to eject
2023-07-29 17:45:03 +10:00
linrongbin16
75c05742bc
feat(trash): add synchronized trash support for windows ( #2335 )
...
* feat(trash): support 'trash' on Windows
* feat(trash): need sync wait on Windows to avoid switch to other app from nvim process
* doc: remove 'Only available for UNIX'
* doc(trash): highlight 'Trash' on Windows is syncrhonized
* doc(trash): highlight 'trash' on Windows is synchronized
* doc(trash): remove dot
* fix(trash): check for unix and windows
* fix(trash): comment
---------
Co-authored-by: Alexander Courtis <alex@courtis.org>
2023-07-29 17:34:47 +10:00
Alexander Courtis
c1466f991a
fix( #2327 ): set parent folder git ignore status following file update ( #2328 )
...
* fix(#1931 ): do not execute git status in git ignored directories
* fix(#1931 ): reload.refresh_node is always asynchronous
* fix(#2327 ): set parent folder ignore status following file update
2023-07-29 16:28:19 +10:00
Alexander Courtis
273c1700eb
fix( #1931 ): do not execute git status in git ignored directories ( #2326 )
...
* fix(#1931 ): do not execute git status in git ignored directories
* fix(#1931 ): reload.refresh_node is always asynchronous
2023-07-23 17:12:49 +10:00
Stefano Stoduto
3b62c6bf2c
feat(event): add TreeRendered ( #2324 )
...
* add TreeRendered event
* pass bufnr and winnr to TreeRendered event
---------
Co-authored-by: Alexander Courtis <alex@courtis.org>
2023-07-16 17:22:45 +10:00
Alexander Courtis
697bfaccac
feat: add filters.git_ignored (prev git.ignore), apply "Toggle Filter:" prefix to mapping descriptions ( #2325 )
2023-07-16 13:26:03 +10:00
Zach Himsel
a6daf50b9d
feat: support custom $GIT_DIR ( #2263 )
...
* feat: Watch $GIT_DIR for git changes, if set
While rarely used, it's possible to set the $GIT_DIR environment
variable to instruct git to use a directory other than `.git`.
This checks if that environment variable is set; if it is, the plugin
will watch that directory. If it's not set, it'll fall back to the
default `.git` directory.
* fix: Don't create two watchers for $GIT_DIR
This will ignore a path for watching if EITHER it's '.git', or the value
of $GIT_DIR (if it's set).
If $GIT_DIR is not set, the vim.env object returns `nil`, which will
never match `path`.
* fix: Attempt to make a relative $GIT_DIR absolute
2023-07-16 12:44:21 +10:00
Alexander Courtis
ef305a888b
feat( #2313 ): sort_by -> sort.sorter, add sort.folders_first default true ( #2314 )
...
* feat(#2313 ): add sort_folders_first, default true
* feat(#2313 ): add sort.sorter, sort.folders_firs
2023-07-15 15:20:22 +10:00
Cyber Oliveira
a708bd2413
feat: add sort_by "suffix" ( #2307 )
...
* feat: adds new type of sorting based on the filename's suffix
* chore(syntax): using string colon methods
* fix(regex): use alphanumeric match for extensions
* feat: adds new type of sorting based on the filename's suffix
---------
Co-authored-by: Alexander Courtis <alex@courtis.org>
2023-07-09 13:49:41 +10:00
Cyber Oliveira
04b2c1e08c
fix: sort_by "extension" falls back to name ( #2306 )
...
* fix(extension/sorter): fallbacks to C.name when both exts are the same or nil
* fix(nil): files with no extension
* fix(nil): files with no extension
---------
Co-authored-by: Alexander Courtis <alex@courtis.org>
2023-07-09 13:12:49 +10:00
Cyber Oliveira
3d2fd90b28
feat: add sort_by "filetype" ( #2302 )
...
* feat: adds new type of sorting based on vim's filetype detection
* fix(ft/sorter): fallbacks to C.name when both ft's are nil or equal
* feat: adds new type of sorting based on vim's filetype detection
---------
Co-authored-by: Alexander Courtis <alex@courtis.org>
2023-07-09 12:31:06 +10:00
Alexander Courtis
4af572246c
fix( #1989 ): cut/paste over open buffer ( #2279 )
...
* fix(#1989 ): cut/paste overwrite deletes destination buffer
* fix(#1989 ): cut/paste overwrite deletes destination buffer
2023-07-02 17:13:50 +10:00
Alexander Courtis
d17389ce53
fix( #2301 ): do not show git status on grouped dirs when show_on_open_dirs ( #2303 )
2023-07-02 16:00:27 +10:00
Alexander Courtis
1fe32286db
fix( #2293 ): remove unnecessary git status during find file ( #2294 )
2023-07-01 11:28:20 +10:00
Asror
3cc698b35b
feat( #2270 ): add notify.absolute_path - show file or absolute path (default) names with notifications ( #2286 )
...
Co-authored-by: Alexander Courtis <alex@courtis.org>
2023-06-25 13:06:21 +10:00
Alexander Courtis
7aff29d755
feat( #2277 ): skip overwrite prompt when copy/cut paste into same directory ( #2278 )
2023-06-25 11:37:55 +10:00
Svetlozar Iliev
c3c6544ee0
feat(event): add WillCreateFile, WillRemoveFile ( #2273 )
...
node. These are mostly going to be useful for implementing lsp file
operation actions.
Co-authored-by: Alexander Courtis <alex@courtis.org>
2023-06-19 10:00:55 +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
Azad
f873625d06
fix: focus visible parent on collapse all ( #2261 )
...
Co-authored-by: Alexander Courtis <alex@courtis.org>
2023-06-12 16:05:06 +10:00
Anton Kriese
f5804ce94e
fix: fs_watcher not started for .git folders (windows) ( #2265 )
...
This fixes the issue described in #2243 , where the .git folder's path
ends on a weird character produced by `cygpath` when the newline
character is fed into it (when using shell=powershell)
2023-06-12 15:44:52 +10:00
Alexander Courtis
034511714b
fix( #1545 ): dispatch Event.Resize on all window resizes, requires nvim 0.9+ ( #2238 )
2023-06-10 16:58:29 +10:00
Steven Stallion
8d82c4dbe1
feat: support vim.diagnostic.is_disabled() ( #2232 )
...
Co-authored-by: Alexander Courtis <alex@courtis.org>
2023-06-10 16:10:28 +10:00
Azad
576d4c1b03
refactor: move reload function into utils module ( #2247 )
...
* refactor: move `reload` function into `utils` module
* docs: add annotations to `utils.focus_node_or_parent`
---------
Co-authored-by: Alexander Courtis <alex@courtis.org>
2023-06-10 16:02:02 +10:00