Commit graph

50 commits

Author SHA1 Message Date
Steven Arcangeli
349bca8c3e fix: process deletes in dir before moving dir 2024-08-25 20:46:46 -07:00
Steven Arcangeli
f41a0f24c0 lint: remove unused variable 2024-04-21 07:55:19 -07:00
Steven Arcangeli
a3c03e442a test: add regression test for #355 2024-04-21 07:48:03 -07:00
Steven Arcangeli
f41d7e7cd8 fix: support visual mode when preview window is open (#315) 2024-04-19 16:31:42 -04:00
Steven Arcangeli
fa3820ebf1 feat: can restore Oil progress window when minimized 2024-04-19 16:31:42 -04:00
Steven Arcangeli
a1af7a1b59 fix: diagnostic float would not open if scope=cursor (#275) 2024-01-14 12:35:35 -08:00
Steven Arcangeli
05cb8257cb fix: bug copying file multiple times 2023-11-19 23:58:40 -08:00
Steven Arcangeli
8f0bf3789f lint: fix luacheck warnings 2023-11-19 21:13:47 -08:00
Steven Arcangeli
4df43ad5f5 test: fix flaky tests 2023-11-19 21:02:06 -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
f72b9b2637 format: auto sort requires 2023-10-08 23:36:59 -07:00
Steven Arcangeli
25c84b6469 refactor: split parser tests into new test file 2023-09-09 19:02:38 -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
Mahlon E. Smith
ebcd720a09
fix: ssh adapter supports any system with /bin/sh (#161)
This allows support of other *nix operating systems where bash is not
universally present.
2023-08-24 09:17:54 -07:00
Steven Arcangeli
9509ae0fee fix: fix flaky test 2023-08-20 23:33:34 +00:00
Steven Arcangeli
f4819d8b43 refactor: remove cache side effects from adapter.list 2023-08-20 21:50:02 +00:00
Steven Arcangeli
4a4e0f4013 refactor: small perf win by eliminating string object keys 2023-06-25 22:44:44 -07:00
Steven Arcangeli
61f8655e03 fix: some autocmds skipped when opening files from oil (#120) 2023-06-24 23:28:57 -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
a465123659 feat: oil.select can close oil buffer afterwards (#121) 2023-06-21 08:36:51 -07:00
Steven Arcangeli
a82503cd79 test: add tests for oil.select 2023-06-20 23:23:20 -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
9871ca9737 fix: oil loses track of buffers after refresh 2023-03-29 18:43:54 -07:00
Steven Arcangeli
931453fc09 fix: oil buffers remain unmodified after saving changes 2023-03-23 21:18:46 -07:00
Steven Arcangeli
eea34329e8 refactor: extract some test utils into a shared lib 2023-03-23 21:16:16 -07:00
Steven Arcangeli
4b05ebdf20 fix: oil.close doesn't error when no other buffers exist (#79) 2023-03-20 09:25:17 -07:00
Steven Arcangeli
b8eaf88c12 fix: edge case where window options were not set 2023-03-18 15:05:59 -07:00
Steven Arcangeli
9814c8b3f1 test: fix test flakiness 2023-03-17 22:29:33 -07:00
Steven Arcangeli
d7805c7751 feat: convert oil://path/to/file.lua to normal file path (#77) 2023-03-17 21:48:38 -07:00
Steven Arcangeli
d48fa09c82 fix: oil.close() sometimes closes window too (#64) 2023-03-16 08:53:51 -07:00
Steven Arcangeli
b36ba91b7a fix: another case of incorrect alternate buffers (#60) 2023-03-06 00:14:06 -08:00
Steven Arcangeli
073ecb3d68 fix: don't close floating windows we didn't open (#64) 2023-03-04 22:32:06 -08:00
Steven Arcangeli
f1131b5e90 fix: set alternate buffer when inside oil (#60) 2023-02-24 06:24:44 -08:00
Steven Arcangeli
48eec8b7ef feat: action to open entry in new tab (#52) 2023-01-28 16:19:45 -08:00
Steven Arcangeli
47a909700d test: fix tests 2023-01-24 10:17:03 -08:00
Steven Arcangeli
4e853eabcb fix: alternate buffer preservation (#43) 2023-01-20 02:56:57 -08:00
Steven Arcangeli
31645370a1 refactor!: change scp:// urls back to oil-ssh:// 2023-01-19 00:27:09 -08:00
Steven Arcangeli
73c6fcf519 fix: warning when :tabnew from oil buffer (#40) 2023-01-18 23:16:27 -08:00
Steven Arcangeli
ca4da68aae feat: builtin support for editing files over ssh (#27) 2023-01-18 10:25:22 -08:00
Steven Arcangeli
64d7763ac6 fix: edge case where cursor position was not set (#37) 2023-01-18 00:21:04 -08:00
Steven Arcangeli
fb697752b2 fix: restore window options on split windows (#36) 2023-01-17 23:57:22 -08:00
Steven Arcangeli
6062ad6737 fix: off-by-one errors in tests 2023-01-12 00:51:23 -08:00
Steven Arcangeli
bcb99ae95a fix: detect duplicate filenames in buffer 2023-01-11 23:54:51 -08:00
Steven Arcangeli
b4ccc16944 fix: renaming buffers doesn't interfere with directory hijack (#25) 2023-01-10 22:33:15 -08:00
Steven Arcangeli
d8a1e7ca4e fix: preserve alternate buffer when using floating window (#20) 2023-01-08 22:12:17 -08:00
Steven Arcangeli
e4c4110022 fix: preserve the alternate buffer (#20) 2023-01-07 12:23:47 -08:00
Steven Arcangeli
fefd6ad5e4 feat: first draft 2023-01-02 01:34:53 -08:00