forestchen1224
7cde5aab10
fix: disable_preview respected when preview_method != "load" ( #577 )
...
* fix bug of disable_preview
file should not loaded if disable_preview is true
* refeactor function open_preview about disable_preview
switch the condition checking `disable_preview` of `if`
move the longer condition to the `elseif`
swap their repective code blocks to maintain the same functionality
* refactor: simplify conditionals
* fix: missing then
---------
Co-authored-by: Steven Arcangeli <506791+stevearc@users.noreply.github.com>
2025-02-13 14:22:54 -08:00
Steven Arcangeli
32dd3e378d
feat: most moves and copies will copy the undofile ( #583 )
2025-02-13 09:40:01 -08:00
Steven Arcangeli
5313690956
fix: more robust parsing of custom column timestamp formats ( #582 )
2025-02-12 22:12:24 -08:00
Ian Wright
8abc58b038
feat: add support for bufnr in column rendering functions ( #575 )
...
This is primarily for user-defined custom columns, which may want access
to the current path or similar information
2025-02-12 16:49:43 -08:00
Steven Arcangeli
abbfbd0dbc
lint: fix typecheck warning
2025-02-11 21:07:07 -08:00
Anton Janshagen
b594b9a905
feat: can selectively add entries to quickfix ( #564 )
...
* bugfix: fix to enable adding or replacing of quickfix entries
* feat: added option to send only matched files to the quickfix list
2025-01-26 09:18:37 -08:00
Steven Arcangeli
81b2c5f04a
fix: crash in preview on nvim 0.8
2025-01-24 16:22:21 -08:00
Steven Arcangeli
6f9e1057c5
lint: rename shadowed variable
2025-01-24 16:00:44 -08:00
Steven Arcangeli
57528bf9c5
feat: API to automatically open preview window after opening oil ( #339 )
2025-01-24 15:16:54 -08:00
Peeranut Pongpakatien
83ac5185f7
fix: open files in correct window from floating oil ( #560 )
2025-01-23 22:08:06 -08:00
Steven Arcangeli
7a782c9a9c
refactor: officially deprecated trash_command
2025-01-22 21:19:02 -08:00
Steven Arcangeli
8615e7da20
cleanup: remove open({preview = true}) shim
2025-01-22 21:17:21 -08:00
Steven Arcangeli
1488f0d96b
fix: preview sometimes causes oil buffers to be stuck in unloaded state ( #563 )
2025-01-22 16:53:10 -08:00
Steven Arcangeli
c80fa5c415
fix: more consistent cursor position when entering a new directory ( #536 )
2025-01-22 15:10:41 -08:00
Steven Arcangeli
62c5683c2e
lint: fix typecheck errors
2025-01-22 08:54:47 -08:00
Steven Arcangeli
8d11a2abf3
fix: error when non-current oil buffer has validation errors ( #561 )
2025-01-22 08:26:28 -08:00
Steven Arcangeli
09fa1d22f5
fix: work around incorrect link detection on windows ( #557 )
...
* fix: work around incorrect link detection on windows
* fix: gracefully handle lstat error on windows
2025-01-13 10:22:59 -08:00
Steven Arcangeli
7c26a59ac0
fix: gracefully handle fs_stat failures ( #558 )
...
* fix: gracefully handle fs_stat failures
* fix: make log methods safe to call in luv callbacks
* fix: replace another vimscript call
2025-01-12 14:29:46 -08:00
Benedict Ozua
7041528bde
fix: support permissions checks on windows and virtual filesystems ( #555 )
...
* use access(2) over file permission checks to workaround systems that change expected file permission view
* cleanup: delete unused function
---------
Co-authored-by: Steven Arcangeli <506791+stevearc@users.noreply.github.com>
2025-01-07 21:04:25 -08:00
abdennourzahaf
1df90faf92
feat: floating window max width/height can be percentages ( #553 )
2025-01-07 19:07:22 -08:00
Ian Wright
f5c563a074
feat: pass oil bufnr to custom filename highlight function ( #552 )
...
This enables you to determine the full directory path, enabling e.g.,
HL groups for Git
2025-01-07 18:56:03 -08:00
Ian Wright
a6a4f48b14
fix: directory rendering with custom highlights ( #551 )
...
These would loose their trailing '/', making them unusable
2025-01-06 21:11:10 -08:00
Steven Arcangeli
254bc6635c
fix: guard against nil metadata values ( #548 )
2025-01-04 12:52:26 -08:00
Steven Arcangeli
c6a39a69b2
fix: stat files if fs_readdir doesn't provide a type ( #543 )
2025-01-03 11:55:50 -08:00
Steven Arcangeli
1f7da07a3e
refactor: remove overcomplicated meta_fields abstraction
...
This abstraction is overly generic for what it does. It's only ever used
to help us conditionally perform a fs_stat for the local files adapter.
We can replace that with a much dumber, much simpler bit of logic.
2025-01-03 11:55:50 -08:00
David Marchante
c5f7c56644
fix: set alternate when using floating windows ( #526 )
2024-12-20 23:18:49 -05:00
Gustavo Sampaio
78ab7ca107
fix: don't take over the preview window until it's opened for oil ( #532 )
2024-12-20 23:15:47 -05:00
Steven Arcangeli
dba0375988
fix: handle files with newlines in the name ( #534 )
2024-12-10 15:22:24 -08:00
lucascool12
7a55ede5e7
fix: improper file name escaping ( #530 )
2024-12-10 08:08:43 -08:00
Steven Arcangeli
f2b324933f
feat: better merging of action desc when overriding keymaps
2024-12-03 09:44:07 -08:00
Steven Arcangeli
3c2de37acc
debug: include shell command in error message
2024-11-25 09:10:33 -08:00
Steven Arcangeli
da93d55e32
fix: work around performance issue with treesitter, folds, and large directories
2024-11-24 15:04:00 -08:00
Foo-x
99ce32f4a2
feat: config option to customize filename highlight group ( #508 )
...
* feat: highlight config
Refs #402
* perf: minimize perf impact when option not provided
* doc: regenerate documentation
* fix: symbolic link rendering
* refactor: simplify conditional
---------
Co-authored-by: Steven Arcangeli <stevearc@stevearc.com>
2024-11-22 10:23:08 -08:00
Ezekiel Warren
60e68967e5
feat: highlight groups for hidden files ( #459 )
...
* feat: hidden highlights
* feat: OilHidden for hidden highlights instead of Comment
* fix: add the new combinatoric highlight groups
* perf: get rid of a call to is_hidden_file
* fix: tweak the default highlight group links
* fix: update function call in unit tests
---------
Co-authored-by: Steven Arcangeli <stevearc@stevearc.com>
2024-11-22 08:55:55 -08:00
Foo-x
740b8fd425
feat: add highlight group for orphaned links ( #502 )
...
* feat: add highlight for orphan links
Closes #501
* feat: add OilOrphanLinkTarget highlight group
---------
Co-authored-by: Steven Arcangeli <stevearc@stevearc.com>
2024-11-22 08:17:50 -08:00
Steven Arcangeli
3fa3161aa9
feat: config option to disable previewing a file
2024-11-21 17:36:40 -08:00
Steven Arcangeli
5acab3d8a9
fix: image.nvim previews with preview_method=scratch
2024-11-21 17:36:22 -08:00
cdmill
81cc9c3f62
feat: option to quite vim if oil is closed as last buffer ( #491 )
...
* feat: auto-quit vim if oil is closed as last buffer
* rename auto_close_vim to auto_close_last_buffer
* rework actions.close to be more like actions.cd
* fix: configure close action correctly
* add type annotation, future proofing
* fix: typo
* fix: typo
* refactor: better type annotations and backwards compatibility
---------
Co-authored-by: Steven Arcangeli <506791+stevearc@users.noreply.github.com>
2024-11-20 21:06:09 -08:00
Jalal El Mansouri
21705a1deb
feat: use scratch buffer for file previews ( #467 )
...
* Initial implementation of scratch based preview
* Fix call to buf is valid in loop
* Fixing call to be made only from the main event loop
* Improve handling of large files from @pkazmier
* Better error handling and simplifying the code
* Default to old behavior
* Add documentation
* Fix readfile
* Fix the configuration
* refactor: single config enum and load real buffer on BufEnter
* doc: regenerate documentation
---------
Co-authored-by: Steven Arcangeli <stevearc@stevearc.com>
2024-11-19 17:24:24 -08:00
Steven Arcangeli
8ea40b5506
fix: cursor sometimes does not hover previous file
2024-11-14 22:21:11 -08:00
Steven Arcangeli
c96f93d894
perf: optimize rendering cadence
2024-11-14 19:29:22 -08:00
Steven Arcangeli
792f0db6ba
perf: only sort entries after we have them all
2024-11-14 19:29:22 -08:00
Steven Arcangeli
4de30256c3
perf: replace vim.endswith and vim.startswith with string.match
2024-11-14 19:29:22 -08:00
Steven Arcangeli
01b0b9d8ef
perf: change default view_options.natural_order behavior to disable on large directories
2024-11-14 19:29:22 -08:00
Steven Arcangeli
0472d9296a
lint: fix typechecking for new LuaLS version
2024-11-13 08:58:16 -08:00
Micah Halter
bbeed86bde
feat: add win_options to preview_win ( #514 )
2024-11-12 10:38:35 -08:00
Steve Walker
c23fe08e05
feat: disable preview for large files ( #511 )
...
* feat: disable preview for large files
fix: update oil.PreviewWindowConfig
* refactor: remove unnecessary shim in config.lua
* refactor: revert changes to shim
---------
Co-authored-by: Steve Walker <65963536+etherswangel@users.noreply.github.com>
Co-authored-by: Steven Arcangeli <506791+stevearc@users.noreply.github.com>
2024-11-12 08:24:39 -08:00
Steven Arcangeli
2f5d4353ee
doc: improve type annotations for oil.open_preview
2024-11-10 16:07:29 -08:00
Steven Arcangeli
eb5497f0ac
refactor: rename 'preview' config to 'preview_win'
2024-11-10 15:57:31 -08:00
Steven Arcangeli
1f5b002270
refactor: rename action preview window to 'confirmation' window
2024-11-10 15:57:27 -08:00