Commit graph

20 commits

Author SHA1 Message Date
Steven Arcangeli
6953c2c17d fix: actions.open_external uses explorer.exe in WSL (#273) 2024-02-20 17:30:56 -08:00
Luka Potočnik
3ffb8309e6
feat: actions for sending oil entries to quickfix (#249)
* Implement actions for sending oil entries to quickfix/location-list

* Use vim.notify instead of vim.notify_once in util quickfix function

* Remove redundant files/directories options for sending to qf

always send just files

* set qflist/loclist with a single call

* Add type annotations and default values for send_to_quickfix

* In visual mode, send only selected items to qf
2023-12-07 21:01:13 -08:00
Yi Ming
82834573bb
feat: refresh action also clears search highlight (#228) 2023-12-03 17:39:25 -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
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
96a334abeb
feat: action for opening entry in an external program (#183) 2023-09-22 12:20:37 -07:00
Steven Arcangeli
879d280617 feat: api to sort directory contents (#169) 2023-09-08 21:56:34 -07:00
Steven Arcangeli
0ccf95ae5d fix: actions.terminal supports ssh adapter (#152) 2023-08-12 12:49:07 -07:00
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
90acbdbbff fix: error messages opening terminal in dir 2023-05-24 23:13:48 -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
48eec8b7ef feat: action to open entry in new tab (#52) 2023-01-28 16:19:45 -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
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
b3c4ff340b feat: more actions for interacting with preview window (#41) 2023-01-21 17:46:18 -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
c6a2e3e08f feat: add action to open a terminal 2023-01-06 17:26:37 -08:00
Steven Arcangeli
d019d38a3e feat: Use <C-l> to refresh directory (#7) 2023-01-03 23:08:52 -08:00
Steven Arcangeli
fefd6ad5e4 feat: first draft 2023-01-02 01:34:53 -08:00