Commit graph

15 commits

Author SHA1 Message Date
Steven Arcangeli
b5a1abfde0 fix: cursor sometimes disappears after making changes (#438) 2024-07-03 18:14:52 -07:00
icefed
b15e4c1e64
feat: disable cursor in preview window (#433) 2024-07-02 10:31:26 -07:00
pn-watin
010b44a79d
refactor: preview window uses Yes/No instead of Ok/Cancel (#344)
NOTE: the `o` and `c` keymaps will continue to work. This only changes
the text labels and adds new keymaps for `y` and `n`.

* chore: replace ok and cancel with yes and no in confirmation window

* chore: allow to configure labels and keymaps for confirmation window

* chore: remove potential duplicate cancel keymaps

* chore: update README and oil.txt

* chore: nowait on confirm mappings and cleanup

* refactor: fully transition to yes/no

* move the config from under the `confirmation` key to the `preview`
  key, which is already in use for customizing the window
* fully default to yes/no, keeping the o/c keybindings for backwards
  compatibility
* make all of the `cancel` keybindings explicit (q, C-c, esc)
* more dynamically choose highlighting of the action labels

* refactor: just use yes/no and abandon configuration

---------

Co-authored-by: Steven Arcangeli <stevearc@stevearc.com>
2024-05-06 12:03:30 -07:00
Steven Arcangeli
47c7737618 fix: type annotations and type errors 2023-08-12 20:32:52 -07: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
64d2f305d3 fix: catch errors opening preview window (#113) 2023-05-24 22:29:20 -07:00
Steven Arcangeli
d27bfa1f37 refactor: use more modern methods for getting/setting options 2023-05-21 20:40:09 -07:00
Steven Arcangeli
00465089cb fix: double callback in mutator 2023-04-04 13:53:01 -07:00
Steven Arcangeli
273c2cecbf feat: can cancel out of progress window 2023-03-29 18:43:56 -07:00
Steven Arcangeli
8cbb104e76 fix: reposition preview window if vim is resized 2023-03-29 18:42:48 -07:00
Steven Arcangeli
3e1affa6c7 feat: config for floating preview window (#74) 2023-03-19 13:52:17 -07:00
Steven Arcangeli
383971b0cf fix: preview window renders on top of floating window title (#72) 2023-03-12 20:58:02 -07: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
a587977edd feat: set filetype='oil_preview' for preview buffer 2023-01-02 21:31:07 -08:00
Steven Arcangeli
fefd6ad5e4 feat: first draft 2023-01-02 01:34:53 -08:00