Commit graph

64 commits

Author SHA1 Message Date
Steven Arcangeli
abbfbd0dbc lint: fix typecheck warning 2025-02-11 21:07:07 -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
dba0375988 fix: handle files with newlines in the name (#534) 2024-12-10 15:22:24 -08:00
Steven Arcangeli
1f5b002270 refactor: rename action preview window to 'confirmation' window 2024-11-10 15:57:27 -08:00
Steven Arcangeli
581c729805 doc: disable some type warnings from new LuaLS release 2024-09-30 22:10:36 -07:00
Steven Arcangeli
1360be5fda lint: stricter type checking 2024-09-17 13:00:48 -07:00
csponge
f60bb7f793
feat: config option to disable lsp file methods (#477)
* added config option to enable or disable lsp_file_methods

* refactor: rename enable -> enabled

---------

Co-authored-by: Steven Arcangeli <stevearc@stevearc.com>
2024-09-11 19:41:46 -07:00
Steven Arcangeli
349bca8c3e fix: process deletes in dir before moving dir 2024-08-25 20:46:46 -07:00
Julian
b39a78959f
fix: add compatibility for Lua 5.1 (#456)
Some architectures don't support LuaJIT.
Remove the goto's from the code to be compatible
with Neovim built without LuaJIT.

Signed-off-by: Julian Ruess <julianonline+github@posteo.de>
2024-08-16 21:33:59 -07:00
Steven Arcangeli
b5a1abfde0 fix: cursor sometimes disappears after making changes (#438) 2024-07-03 18:14:52 -07:00
icefed
b15e4c1e64
feat: disable cursor in preview window (#433) 2024-07-02 10:31:26 -07:00
icefed
b0a6cf9898
fix: set floating window win_options when buffer changes (#432)
* fix: set floating window win_options when buffer changes

* fix: set win options even when float border is "none"

---------

Co-authored-by: Steven Arcangeli <stevearc@stevearc.com>
2024-07-02 10:03:08 -07:00
Steven Arcangeli
2cb39e838e doc: more detailed type annotations for setup() call 2024-05-22 13:46:11 -07:00
pn-watin
010b44a79d
refactor: preview window uses Yes/No instead of Ok/Cancel (#344)
NOTE: the `o` and `c` keymaps will continue to work. This only changes
the text labels and adds new keymaps for `y` and `n`.

* chore: replace ok and cancel with yes and no in confirmation window

* chore: allow to configure labels and keymaps for confirmation window

* chore: remove potential duplicate cancel keymaps

* chore: update README and oil.txt

* chore: nowait on confirm mappings and cleanup

* refactor: fully transition to yes/no

* move the config from under the `confirmation` key to the `preview`
  key, which is already in use for customizing the window
* fully default to yes/no, keeping the o/c keybindings for backwards
  compatibility
* make all of the `cancel` keybindings explicit (q, C-c, esc)
* more dynamically choose highlighting of the action labels

* refactor: just use yes/no and abandon configuration

---------

Co-authored-by: Steven Arcangeli <stevearc@stevearc.com>
2024-05-06 12:03:30 -07:00
Steven Arcangeli
3b3a6b23a1 fix(windows): treat both backslash and frontslash as path separators (#336) 2024-04-23 21:04:31 -07:00
Steven Arcangeli
be0a1ecbf0 fix: gracefully handle new dirs with trailing backslash on windows (#336) 2024-04-23 20:57:14 -07:00
Steven Arcangeli
354c53080a fix: duplicate create actions (#334) 2024-04-19 17:05:19 -04:00
Steven Arcangeli
fa3820ebf1 feat: can restore Oil progress window when minimized 2024-04-19 16:31:42 -04:00
Steven Arcangeli
e462a34465 feat: add user autocmds before and after performing actions (#310) 2024-03-17 19:50:31 -07:00
Steven Arcangeli
bcfe7d1ec5 feat: experimental option to watch directory for changes (#292) 2024-02-19 23:27:27 -08:00
Steven Arcangeli
a1af7a1b59 fix: diagnostic float would not open if scope=cursor (#275) 2024-01-14 12:35:35 -08:00
Steven Arcangeli
250e0af7a5
feat: support all LSP workspace file operations (#264) 2023-12-23 14:08:11 -08:00
Steven Arcangeli
05cb8257cb fix: bug copying file multiple times 2023-11-19 23:58:40 -08:00
Steven Arcangeli
4df43ad5f5 test: fix flaky tests 2023-11-19 21:02:06 -08:00
Steven Arcangeli
af13ce333f fix: quit after mutations when :wq or similar (#221) 2023-11-13 10:46:08 -08:00
Steven Arcangeli
6175bd6462
feat: trash support for linux and mac (#165)
* wip: skeleton code for trash adapter

* refactor: split trash implementation for mac and linux

* fix: ensure we create the .Trash/$uid dir

* feat: code complete linux trash implementation

* doc: write up trash features

* feat: code complete mac trash implementation

* cleanup: remove previous, terrible, undocumented trash feature

* fix: always disabled trash

* feat: show original path of trashed files

* doc: add a note about calling actions directly

* fix: bugs in trash implementation

* fix: schedule_wrap in mac trash

* doc: fix typo and line wrapping

* fix: parsing of arguments to :Oil command

* doc: small documentation tweaks

* doc: fix awkward wording in the toggle_trash action

* fix: warning on Windows when delete_to_trash = true

* feat: :Oil --trash can open specific trash directories

* fix: show all trash files in device root

* fix: trash mtime should be sortable

* fix: shorten_path handles optional trailing slash

* refactor: overhaul the UI

* fix: keep trash original path vtext from stacking

* refactor: replace disable_changes with an error filter

* fix: shorten path names in home directory relative to root

* doc: small README format changes

* cleanup: remove unnecessary preserve_undo logic

* test: add a functional test for the freedesktop trash adapter

* test: more functional tests for trash

* fix: schedule a callback to avoid main loop error

* refactor: clean up mutator logic

* doc: some comments and type annotations
2023-11-05 12:40:58 -08:00
Steven Arcangeli
d8f0d91b10 feat: display ../ entry in oil buffers (#166) 2023-11-05 08:00:38 -08:00
Steven Arcangeli
0715f1b0aa fix: line parsing for empty columns 2023-11-05 07:57:54 -08:00
Steven Arcangeli
4088efb8ff fix: parse errors when moving files across adapters 2023-10-17 18:03:27 -07:00
Steven Arcangeli
f72b9b2637 format: auto sort requires 2023-10-08 23:36:59 -07:00
Steven Arcangeli
8f3c1d2d2e feat: add support for LSP willRenameFiles (#184) 2023-10-01 16:41:51 -07:00
Steven Arcangeli
926ae067eb fix: allow converting a file to directory and vice-versa (#117)
If you rename a file to have a `/` at the end, oil will detect the
change as a delete + new directory. Similarly, if you delete the
trailing `/` from a directory, it will delete the dir and create a new
file. This should help with the case where you want to create a new file
but forgot to add the trailing `/` and now you have a file instead.
2023-09-09 18:33:47 -07:00
Steven Arcangeli
4bad15909f format: apply stylua 2023-08-25 19:02:22 -07:00
Steven Arcangeli
f86d49446a fix: data loss bug when move + delete (#162) 2023-08-25 18:56:30 -07:00
Steven Arcangeli
e45aeebc2b types: update type annotations for LuaLS 3.7 2023-08-24 09:15:06 -07:00
Steven Arcangeli
8f7807946a fix: remaining type errors 2023-08-13 13:32:35 -07:00
Steven Arcangeli
47c7737618 fix: type annotations and type errors 2023-08-12 20:32:52 -07:00
Steven Arcangeli
4a4e0f4013 refactor: small perf win by eliminating string object keys 2023-06-25 22:44:44 -07:00
Steven Arcangeli
9be36a6488 fix: symbolic link target parsing fails if it has a trailing slash (#131) 2023-06-21 17:15:57 -07:00
Steven Arcangeli
6f8bf067c0 fix: stop using vim.wo to set window options
vim.wo also affects the global status of the option. We only want to set
the window-local option.
2023-06-16 18:24:47 -07:00
Steven Arcangeli
64d2f305d3 fix: catch errors opening preview window (#113) 2023-05-24 22:29:20 -07:00
Steven Arcangeli
d27bfa1f37 refactor: use more modern methods for getting/setting options 2023-05-21 20:40:09 -07:00
Steven Arcangeli
d0efcc0c10 cleanup: remove disclaimer before saving files
Oil has been around for a few months now and there haven't been any
reports of unexpected filesystem operations.
2023-05-07 09:08:44 -07:00
Steven Arcangeli
6b05c2e913 feat: prompt user to save changes before editing moved file/dir (#93) 2023-05-07 08:07:08 -07:00
Steven Arcangeli
00465089cb fix: double callback in mutator 2023-04-04 13:53:01 -07:00
Steven Arcangeli
f28e63460a feat: can minimize the progress window 2023-04-04 13:53:01 -07:00
Steven Arcangeli
273c2cecbf feat: can cancel out of progress window 2023-03-29 18:43:56 -07:00
Steven Arcangeli
092f4b1c7c fix: reposition progress window if vim is resized 2023-03-29 18:42:48 -07:00
Steven Arcangeli
8cbb104e76 fix: reposition preview window if vim is resized 2023-03-29 18:42:48 -07:00
Steven Arcangeli
d631d9fc5a fix: new oil buffers are nomodifiable during mutation processing 2023-03-29 18:42:48 -07:00