canola.nvim/lua/canola
Barrett Ruth 943bf750cc
feat: add open_split and toggle_split API
Problem: canola had no way to open a browser in a normal split window;
only floating windows were supported via `open_float`/`toggle_float`.
`M.close` also crashed with E444 when called from the last window.

Solution: port stevearc/oil.nvim#728 — add `open_split(dir, opts, cb)`
and `toggle_split(dir, opts, cb)` mirroring the float API. Use
`is_canola_win`/`canola_original_win` window vars (not the upstream
`is_oil_win` names). Wrap `nvim_win_close` in `pcall` with `enew()`
fallback to handle the last-window E444 case.

Based on: stevearc/oil.nvim#728
2026-03-07 15:36:55 -05:00
..
adapters feat: emit CanolaFileCreated autocmd on file creation (#75) 2026-03-06 15:54:01 -05:00
lsp refactor: rename oil to canola across entire codebase (#70) 2026-03-05 14:50:10 -05:00
mutator feat: add skip_confirm_for_delete option (#77) 2026-03-06 16:29:12 -05:00
actions.lua refactor: rename oil to canola across entire codebase (#70) 2026-03-05 14:50:10 -05:00
cache.lua refactor: rename oil to canola across entire codebase (#70) 2026-03-05 14:50:10 -05:00
clipboard.lua refactor: rename oil to canola across entire codebase (#70) 2026-03-05 14:50:10 -05:00
columns.lua refactor: rename oil to canola across entire codebase (#70) 2026-03-05 14:50:10 -05:00
config.lua feat: add skip_confirm_for_delete option (#77) 2026-03-06 16:29:12 -05:00
constants.lua refactor: rename oil to canola across entire codebase (#70) 2026-03-05 14:50:10 -05:00
fs.lua refactor: rename oil to canola across entire codebase (#70) 2026-03-05 14:50:10 -05:00
git.lua refactor: rename oil to canola across entire codebase (#70) 2026-03-05 14:50:10 -05:00
init.lua feat: add open_split and toggle_split API 2026-03-07 15:36:55 -05:00
keymap_util.lua refactor: rename oil to canola across entire codebase (#70) 2026-03-05 14:50:10 -05:00
layout.lua refactor: rename oil to canola across entire codebase (#70) 2026-03-05 14:50:10 -05:00
loading.lua refactor: rename oil to canola across entire codebase (#70) 2026-03-05 14:50:10 -05:00
log.lua refactor: rename oil to canola across entire codebase (#70) 2026-03-05 14:50:10 -05:00
pathutil.lua refactor: rename oil to canola across entire codebase (#70) 2026-03-05 14:50:10 -05:00
ringbuf.lua refactor: rename oil to canola across entire codebase (#70) 2026-03-05 14:50:10 -05:00
shell.lua refactor: rename oil to canola across entire codebase (#70) 2026-03-05 14:50:10 -05:00
util.lua refactor: rename oil to canola across entire codebase (#70) 2026-03-05 14:50:10 -05:00
view.lua feat(view): position cursor at name column on new empty lines (#72) 2026-03-06 14:40:10 -05:00