Commit graph

202 commits

Author SHA1 Message Date
Yi Ming
82834573bb
feat: refresh action also clears search highlight (#228) 2023-12-03 17:39:25 -08:00
Steven Arcangeli
636989b603 fix: oil.select respects splitbelow and splitright (#233) 2023-11-30 23:55:43 -08:00
Steven Arcangeli
e89a8f8ade fix: crash in ssh and trash adapter detail columns (#235) 2023-11-24 14:13:56 -08:00
Steven Arcangeli
05cb8257cb fix: bug copying file multiple times 2023-11-19 23:58:40 -08:00
Steven Arcangeli
303f31895e fix: buffer data cleared when setting buflisted = false
For posterity: this was a very painful lesson. Turns out "BufDelete"
doesn't mean "buffer was deleted", it means "buffer was deleted from the
buffer list". If you set nobuflisted, BufDelete will be triggered even
though the buffer is still loaded and active.
2023-11-19 21:10:41 -08:00
Steven Arcangeli
6566f457e4 fix: preserve buflisted when re-opening oil buffers (#220) 2023-11-19 21:02:06 -08:00
Steven Arcangeli
4df43ad5f5 test: fix flaky tests 2023-11-19 21:02:06 -08:00
Steven Arcangeli
873d505e5b fix: don't set buflisted on oil buffers (#220) 2023-11-14 22:41:39 -08:00
Steven Arcangeli
af13ce333f fix: quit after mutations when :wq or similar (#221) 2023-11-13 10:46:08 -08:00
Steven Arcangeli
3727410e48
fix: previewing and editing files on windows (#214) 2023-11-09 21:31:23 -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
57db10d748 lint: apply stylua 2023-11-05 07:29:15 -08:00
Steven Arcangeli
126a8a2346 fix: can view drives on Windows 2023-11-05 07:27:28 -08:00
Steven Arcangeli
aea896a880 fix: restore original window when closing floating win (#208) 2023-11-04 11:35:50 -07:00
Steven Arcangeli
2e6996b075 fix: disable swapfile for oil buffers (#190) 2023-11-01 08:09:04 -07:00
Steven Arcangeli
05a80e24f6 refactor: floating window uses same win options
We were passing in `style = "minimal"` to `nvim_open_win`, which sets a
lot of default window options. If we remove that, the style of the
floating window will match the other oil windows. Users can use
`float.override` to set `style = "minimal"` if they want the previous
behavior.
2023-10-28 12:23:45 -07:00
Steven Arcangeli
8418e94734 fix: call vimL function in main loop (#206) 2023-10-28 11:02:05 -07:00
Steven Arcangeli
4088efb8ff fix: parse errors when moving files across adapters 2023-10-17 18:03:27 -07:00
Steven Arcangeli
3275996ce6 fix: shorten path when opening files (#194, #197) 2023-10-16 08:19:34 -07:00
Steven Arcangeli
054247b9c1 fix: path shortening does proper subpath detection 2023-10-16 08:19:29 -07:00
Steven Arcangeli
164135793d fix: more correct gf binding for ssh files 2023-10-15 16:47:57 -07:00
Steven Arcangeli
69ce73e810 Revert "fix: shorten path when opening files" (#197)
This reverts commit 6cbc8d725d.
2023-10-15 16:41:50 -07:00
Lv Sihan
a8ac4dee48
Escape metacharacters when loading file into cmdline (#196)
* Escape metacharacters when loading file into cmdline

* format: apply stylua

---------

Co-authored-by: Steven Arcangeli <stevearc@stevearc.com>
2023-10-14 10:47:45 -07:00
Steven Arcangeli
6cbc8d725d fix: shorten path when opening files (#194) 2023-10-10 19:51:43 -07:00
Steven Arcangeli
f72b9b2637 format: auto sort requires 2023-10-08 23:36:59 -07:00
Steven Arcangeli
650aa1916f ci: use stylua 0.18.2 2023-10-08 23:01:24 -07:00
vE5li
a9f7f6927d
feat: make buffer cleanup delay configurable (#191) 2023-10-03 09:08:28 -07:00
Steven Arcangeli
deba4db1ac fix: case handling for LSP willRenameFiles 2023-10-01 16:47:22 -07:00
Steven Arcangeli
8f3c1d2d2e feat: add support for LSP willRenameFiles (#184) 2023-10-01 16:41:51 -07:00
Steven Arcangeli
ee813638d2 feat: make gf work in ssh files (#186) 2023-09-30 14:20:28 -07:00
Steven Arcangeli
bfc5a4c48f fix: hide swapfile error when editing file (#188) 2023-09-28 23:22:31 -07:00
Steven Arcangeli
5ced687ddd fix: don't override FloatTitle highlight (#189) 2023-09-28 17:24:18 -07:00
Steven Arcangeli
977da9ac66 feat: keymaps can specify mode (#187) 2023-09-28 09:18:15 -07:00
Steven Arcangeli
96a334abeb
feat: action for opening entry in an external program (#183) 2023-09-22 12:20:37 -07:00
Steven Arcangeli
a9ceb90a63
fix: add busybox support for ssh adapter (#173) 2023-09-21 12:12:57 -07:00
Steven Arcangeli
83e4d04922 fix: correctly resolve new files when selected (#179) 2023-09-18 20:48:40 -07:00
Steven Arcangeli
da0553067e cleanup: don't need empty methods in resession extension 2023-09-17 10:10:42 -07:00
Steven Arcangeli
9e036c6a48 cleanup: remove unnecessary option restore_win_options
This was only necessary to begin with because I was using `vim.wo` to
set window options. I mistakenly thought that would set the option as
window-local, but it did not. This was fixed in
6f8bf067c0. Now all the window options
should function as expected without the extra logic.
2023-09-12 10:53:11 -07:00
Steven Arcangeli
28596bdd42 refactor: set concealcursor=nvic by default
Originally I set the default value to `n` because I wanted users to be
aware of the magic ID number at the start of the line if they were
editing a buffer. With the recent improvements to the cursor placement,
I think that it's no longer necessary. Most normal edits should just
work as expected now, and it's a nicer experience if the visuals don't
jump around when you enter visual/insert mode.
2023-09-11 17:42:22 -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
d4eb4f3bbf fix: lock cursor to first mutable column
Previously we were forcing the cursor to be after the hidden ID at the
start, but that still meant that it would end up on top of the icon.
This made rename operations slightly more annoying than necessary, since
you would need to first move the cursor forward to the file name. Now,
the cursor will be locked to the beginning of the filename unless there
is a mutable column earlier in the row.
2023-09-09 13:20:18 -07:00
Steven Arcangeli
879d280617 feat: api to sort directory contents (#169) 2023-09-08 21:56:34 -07:00
Steven Arcangeli
7033d52db0 fix: change default winblend for floating window to 0 (#167) 2023-09-01 13:52:12 -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
e45aeebc2b types: update type annotations for LuaLS 3.7 2023-08-24 09:15:06 -07:00
Steven Arcangeli
b61bc9b701 fix: set nomodifiable after BufWritePre in ssh adapter (#159) 2023-08-23 11:02:18 -07:00