Commit graph

115 commits

Author SHA1 Message Date
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
f1131b5e90 fix: set alternate buffer when inside oil (#60) 2023-02-24 06:24:44 -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
f1ea6e0ad0 fix: error when use_default_keymaps = false (#56) 2023-02-11 18:46:14 -08:00
Steven Arcangeli
7f17648705 fix: better behaved lazy loading in autocmds 2023-02-04 12:03:19 -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
2e95b9d424 fix: edge case where opening a file would delete its contents 2023-02-03 13:53:01 -08:00
Steven Arcangeli
716dd8f9cf fix: unexpected behavior from BufReadPost autocmds 2023-01-28 18:07:18 -08:00
Steven Arcangeli
20e4ff1838 fix: expand terminal path 2023-01-28 16:22:47 -08:00
Steven Arcangeli
48eec8b7ef feat: action to open entry in new tab (#52) 2023-01-28 16:19:45 -08:00
Steven Arcangeli
0e53d40221 fix: oil can open when terminal is focused (#51) 2023-01-28 15:57:18 -08:00
Steven Arcangeli
6581d76a74 feat: action to copy path to entry under cursor (#50) 2023-01-28 15:36:34 -08:00
Steven Arcangeli
1d548190cf refactor!: make oil buffers unlisted by default (#45) 2023-01-24 10:11:06 -08:00
Steven Arcangeli
2b0b9382d7 fix: invalid filetype of oil buffer (#47) 2023-01-24 17:18:30 +00:00
Steven Arcangeli
6c6b7673af feat: update preview window when cursor is moved (#42) 2023-01-21 18:46:30 -08:00
Steven Arcangeli
6c4a3dafca feat: new action open_cmdline_dir (#44) 2023-01-21 18:03:40 -08:00
Steven Arcangeli
7649866650 fix: shortened path for current directory is '.' 2023-01-21 18:03:21 -08:00
Steven Arcangeli
b3c4ff340b feat: more actions for interacting with preview window (#41) 2023-01-21 17:46:18 -08:00
Steven Arcangeli
4e853eabcb fix: alternate buffer preservation (#43) 2023-01-20 02:56:57 -08:00
Steven Arcangeli
a60639db35 fix: no error if opening file that has swapfile 2023-01-20 02:23:57 -08:00
Steven Arcangeli
adff3b9154 feat: config option to skip the disclaimer 2023-01-20 02:00:37 -08:00
Steven Arcangeli
6b10a36641 feat: inform user how to disable netrw 2023-01-20 01:57:53 -08:00
Steven Arcangeli
a6884431b0 fix: error when editing a dir, and still missing parent window (#40) 2023-01-19 20:44:01 -08:00
Steven Arcangeli
f5961e731f fix: more detailed information when ssh connection fails (#27) 2023-01-19 00:40:58 -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
75b710e311 feat: action to open the cmdline with current entry as argument (#38) 2023-01-18 00:35:26 -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
abfc455f62 lint: apply stylua 2023-01-13 08:34:21 -08:00
MysteryMage
2bc63f7059 fix: Error when saving blank lines and quitting. 2023-01-13 12:19:32 +02:00
Steven Arcangeli
997d9cd78a feat: expose buf_options in config (#28) 2023-01-12 12:21:59 -08:00
Steven Arcangeli
f8ca564802 fix: float positioning and width calculation (#32) 2023-01-12 01:06:37 -08:00
Steven Arcangeli
aa68ec4d98 fix: ssh adapter handles character and block files 2023-01-12 00:50:22 -08:00
Steven Arcangeli
bcb99ae95a fix: detect duplicate filenames in buffer 2023-01-11 23:54:51 -08:00
Steven Arcangeli
9a03af7cb7 fix: url formatting errors when ssh connection specifies port 2023-01-11 23:23:28 -08:00
Steven Arcangeli
bb5201c9cd fix: oil buffers load properly after loading a session (#29) 2023-01-10 23:00:21 -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
1bc25cf25b doc: leave note about ssh adapter limitations 2023-01-08 23:34:31 -08:00
Steven Arcangeli
7c5384dd15 doc: move config opts to hide some values from autogen docs 2023-01-08 23:27:28 -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
6d0b6ac43c fix: don't show preview if there are no changes (#19) 2023-01-06 18:25:48 -08:00
Steven Arcangeli
6a227e932f fix: add WinLeave autocmd to augroup 2023-01-06 18:19:40 -08:00
Steven Arcangeli
c6a2e3e08f feat: add action to open a terminal 2023-01-06 17:26:37 -08:00
Steven Arcangeli
0f104854da fix: close floating oil window on WinLeave (#17) 2023-01-05 18:56:48 -08:00
Steven Arcangeli
5e2f1ced9f fix: add autocmd to augroup 2023-01-05 18:40:30 -08:00
Steven Arcangeli
7b703b42da fix: always close keymap help window (#17) 2023-01-05 10:09:36 -08:00