Commit graph

129 commits

Author SHA1 Message Date
Steven Arcangeli
393f0dcf82 fix!: selecting multiple files only opens buffers, not windows (#111)
In an oil buffer you can select multiple entries by highlighting them in
visual mode and then calling `oil.select()` (or using a keymap that does
so, like `<CR>` or `<C-s>`. Previously we would automatically assume
that you wanted to open multiple entries as splits. Now, we treat a
default call to `select()` (which is what `<CR>` does) as if you simply
wanted to open the buffers and keep the same window. This plays nicer
with bufferlines. If you want the old behavior, you can explicitly pass
in `oil.select({vertical = true})` or use the `<C-s>` keymap when you
have multiple entries selected.
2023-06-21 08:53:11 -07:00
Steven Arcangeli
a465123659 feat: oil.select can close oil buffer afterwards (#121) 2023-06-21 08:36:51 -07:00
Andrew Cohen
53dcf6ee49
Escape dollar sign 2023-06-20 11:25:30 -04: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
59dc12a978
Merge pull request #126 from fecet/fix/sshfs-locales
fix: oil-ssh assume target machine's locales
2023-06-14 09:20:58 -07:00
Steven Arcangeli
4ad162756b fix: error when float border is 'none' (#125) 2023-06-14 09:08:51 -07:00
fecet
c72bcb45b2 fix: oil-ssh assume target machine's locales 2023-06-14 16:26:49 +08:00
Steven Arcangeli
f322209a4a feat: Oil command supports split and vert modifiers (#116) 2023-06-03 08:18:36 -07:00
Steven Arcangeli
90acbdbbff fix: error messages opening terminal in dir 2023-05-24 23:13:48 -07:00
Steven Arcangeli
64d2f305d3 fix: catch errors opening preview window (#113) 2023-05-24 22:29:20 -07:00
Steven Arcangeli
9f2f50f915
Merge pull request #112 from davidsierradz/patch-1
Respect 'clipboard' in copy_entry_path
2023-05-24 00:06:10 -07:00
Steven Arcangeli
f535c1057c feat: support custom trash commands (#110) 2023-05-23 23:40:41 -07:00
David Sierra DiazGranados
30039f13f6
Respect 'clipboard' in copy_entry_path
Using `vim.v.register`, we can respect the user's desire of copying to the unnamed (or unnamedplus) register or default one.

Check `:h v:register`

Thanks
2023-05-23 19:35:20 -05:00
Steven Arcangeli
d27bfa1f37 refactor: use more modern methods for getting/setting options 2023-05-21 20:40:09 -07:00
wrapperup
29808f273c fix: opening with lowercase drive letters 2023-05-21 16:25:43 -04:00
Steven Arcangeli
19563c3658 fix: set bufhidden = 'hide' by default (#104) 2023-05-16 20:32:45 -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
496d60fcff feat: config option for trashing deleted files (#99) 2023-05-06 21:07:01 -07:00
Steven Arcangeli
339ade9dc3 fix: escape special characters when editing buffer (#96) 2023-05-05 08:32:44 -07:00
Steven Arcangeli
37cb6be6f6 fix: block quit if changes during :wq (#98) 2023-05-03 08:06:49 -07:00
Steven Arcangeli
41077847b9 fix: prevent double-delete autocmd ids (#97) 2023-05-02 10:08:42 -07:00
Steven Arcangeli
82c706822b feat: add toggle_float function (#94) 2023-04-29 08:16:18 -07:00
Steven Arcangeli
caa65e5bfc fix: bug when copying saved win options to split (#89) 2023-04-27 08:33:42 -07:00
Steven Arcangeli
a9556aa872 fix: guard against invalid buffer (#90) 2023-04-27 07:30:48 -07:00
Steven Arcangeli
2bca582d93 feat: extension for resession.nvim 2023-04-21 22:03:33 -07:00
Steven Arcangeli
be695dc350 fix: allow calling oil.open() with a url 2023-04-21 22:03:33 -07:00
Steven Arcangeli
3ac035e5ac feat: dispatch autocmd when oil buffer finishes rendering 2023-04-20 20:24:50 -07:00
Steven Arcangeli
fb8b101d7c Merge branch 'NikolaM-Dev-feature-custom-icons' 2023-04-11 08:29:23 -07:00
Steven Arcangeli
54af7e013d doc: put documentation of icon config parameters in correct place 2023-04-11 08:28:03 -07:00
Steven Arcangeli
f6d2102e2b fix: icon column does nil-check of config 2023-04-11 08:27:41 -07:00
Steven Arcangeli
5edf9784a5 refactor: use nvim 0.9 window title when available 2023-04-07 12:52:00 -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
Juan David Merchan Torres
98a186e8f9 feat(columns): Add compatibility with previous versions 2023-04-02 18:31:02 -05:00
Juan David Merchan Torres
c19f2d74de refactor(columns): Add custom icons from conf param 2023-03-31 14:27:53 -05:00
Juan David Merchan Torres
cb54e03490 feat(config): Change custom icons to columns config 2023-03-31 14:27:01 -05: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
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
080dd27474 refactor: clean up duplicate helper method 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
Juan David Merchan Torres
6dc65dcf83 feat(columns): Change to use custom icons 2023-03-29 14:48:00 -05:00
Juan David Merchan Torres
bf20bca78d feat(config): Add custom icons 2023-03-29 14:47:47 -05:00
Steven Arcangeli
931453fc09 fix: oil buffers remain unmodified after saving changes 2023-03-23 21:18:46 -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
3e1affa6c7 feat: config for floating preview window (#74) 2023-03-19 13:52:17 -07:00
nyngwang
c07cf810eb fix Stylua 2023-03-19 07:12:48 +08:00
NWang
c1ed4fad14
Merge branch 'stevearc:master' into feat-setup-view-options-add-is_excluded 2023-03-19 07:09:48 +08:00