canola.nvim/lua/oil
Barrett Ruth 16f3d7bfa9 fix: cancel visual/operator-pending mode instead of closing buffer
Problem: when close() is triggered from visual or operator-pending
mode (e.g. pressing q after d in an oil buffer), the buffer closes
instead of canceling the pending operation. This happens because
keymaps without an explicit mode default to "" which covers normal,
visual, select, and operator-pending modes.

Solution: check the current mode at the top of close() and send
<Esc> to cancel the mode instead of proceeding with the close. The
check covers all visual modes (v, V, CTRL-V), select modes (s, S,
CTRL-S), and operator-pending submodes (no, nov, noV, noCTRL-V).

Based on: stevearc/oil.nvim#495
2026-02-20 16:28:26 -05:00
..
adapters fix(trash): update freedesktop trash specification url 2026-02-20 16:15:27 -05:00
lsp fix: handle empty LSP glob patterns (#702) 2025-12-29 12:27:20 -08:00
mutator ci: fix type error 2025-12-21 15:14:45 -05:00
actions.lua feat: add horizontal scrolling actions (#709) 2026-01-11 13:53:17 -08:00
cache.lua doc: disable some type warnings from new LuaLS release 2024-09-30 22:10:36 -07:00
clipboard.lua feat(clipboard): pasting from system clipboard can delete original (cut) (#649) 2025-10-15 10:36:37 -07:00
columns.lua feat: add support for column text alignment (#711) 2026-01-13 21:28:16 -08:00
config.lua fix: normalize keymap keys before merging user config 2026-02-20 16:26:03 -05:00
constants.lua lint: use more specific type for internal entries 2025-10-15 10:42:52 -07:00
fs.lua docs: clarify get_current_dir nil return and add telescope recipe 2026-02-20 16:16:02 -05:00
git.lua fix: git mv errors when moving empty directory (#358) 2024-04-23 19:31:54 -07:00
init.lua fix: cancel visual/operator-pending mode instead of closing buffer 2026-02-20 16:28:26 -05:00
keymap_util.lua feat: add support for column text alignment (#711) 2026-01-13 21:28:16 -08:00
layout.lua feat: floating window max width/height can be percentages (#553) 2025-01-07 19:07:22 -08:00
loading.lua feat: add support for column text alignment (#711) 2026-01-13 21:28:16 -08:00
log.lua fix: gracefully handle fs_stat failures (#558) 2025-01-12 14:29:46 -08:00
pathutil.lua fix: can view drives on Windows 2023-11-05 07:27:28 -08:00
ringbuf.lua fix: spurious exits from faulty :wq detection (#221) 2024-03-12 15:57:57 -07:00
shell.lua debug: include shell command in error message 2024-11-25 09:10:33 -08:00
util.lua feat: add support for column text alignment (#711) 2026-01-13 21:28:16 -08:00
view.lua feat: emit OilReadPost user event after each buffer render 2026-02-20 16:27:09 -05:00