Commit graph

33 commits

Author SHA1 Message Date
vE5li
a9f7f6927d
feat: make buffer cleanup delay configurable (#191) 2023-10-03 09:08:28 -07:00
Steven Arcangeli
977da9ac66 feat: keymaps can specify mode (#187) 2023-09-28 09:18:15 -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
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
f4819d8b43 refactor: remove cache side effects from adapter.list 2023-08-20 21:50:02 +00:00
Steven Arcangeli
866085407f refactor: fix type annotations for adapters 2023-08-20 18:18:36 +00:00
Steven Arcangeli
47c7737618 fix: type annotations and type errors 2023-08-12 20:32:52 -07:00
Steven Arcangeli
c080379a4d cleanup: remove dead code 2023-07-14 12:03:10 -07:00
Steven Arcangeli
4a4e0f4013 refactor: small perf win by eliminating string object keys 2023-06-25 22:44:44 -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
d27bfa1f37 refactor: use more modern methods for getting/setting options 2023-05-21 20:40:09 -07:00
Steven Arcangeli
3ac035e5ac feat: dispatch autocmd when oil buffer finishes rendering 2023-04-20 20:24:50 -07:00
Steven Arcangeli
273c2cecbf feat: can cancel out of progress window 2023-03-29 18:43:56 -07:00
Steven Arcangeli
9871ca9737 fix: oil loses track of buffers after refresh 2023-03-29 18:43:54 -07:00
Steven Arcangeli
d631d9fc5a fix: new oil buffers are nomodifiable during mutation processing 2023-03-29 18:42:48 -07:00
Steven Arcangeli
931453fc09 fix: oil buffers remain unmodified after saving changes 2023-03-23 21:18:46 -07:00
NWang
c1ed4fad14
Merge branch 'stevearc:master' into feat-setup-view-options-add-is_excluded 2023-03-19 07:09:48 +08:00
nyngwang
fe0f6c389f refactor: rename 2023-03-19 07:02:23 +08:00
Steven Arcangeli
57451c517d fix: update preview window in-place (#74) 2023-03-18 15:08:32 -07:00
Steven Arcangeli
12bea0f646 feat: API to change config.view.is_hidden_file at runtime (#69) 2023-03-12 12:49:49 -07:00
Steven Arcangeli
33d5701a8d WIP: force move cursor 2023-03-06 22:37:27 -08:00
nyngwang
19ab948e25 feat: add setup.view_options.is_excluded 2023-03-06 00:17:24 +08:00
Steven Arcangeli
0b2a4ddde1 refactor: only gc oil buffers once all oil bufs are hidden
Previously we were gc-ing all hidden oil buffers 2 seconds after they
were hidden. I think this is a little too magical, and interferes with
some expected vim behavior (ctrl-o/i). If people want the old behavior,
we can expose the "GC hidden buffers" function via the API.

We're also changing the "rerender visible oil buffers" logic, because
previously that would delete hidden oil buffers. Now it simply marks
them as dirty, and they will be rerendered during the next BufEnter.
2023-02-24 07:55:39 -08:00
Steven Arcangeli
e5acff1b77 feat: config function to define which files are hidden (#58) 2023-02-22 21:11:11 -08:00
Steven Arcangeli
7371dd220f fix: bad interaction with editorconfig-vim
This was a doozy. From the oil buffer, when you edited a file the
editorconfig-vim autocmd that runs s:UseConfigFiles() would run and
something in that logic would cause the oil buffer to become `set
modified`. This obviously messes with the buffer cleanup logic, and also
makes vim more annoying to exit. The solution is to disable
editorconfig-vim in oil buffers.
2023-02-03 14:28:55 -08:00
Steven Arcangeli
98fcc2d0d7 feat: sort symbolic directory links like directories 2023-02-03 13:57:10 -08:00
Steven Arcangeli
6c6b7673af feat: update preview window when cursor is moved (#42) 2023-01-21 18:46:30 -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
997d9cd78a feat: expose buf_options in config (#28) 2023-01-12 12:21:59 -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