Commit Graph

128 Commits

Author SHA1 Message Date
Steven Arcangeli 7e6e962341 fix(input): close completion window more reliably 2021-12-04 19:54:40 -08:00
Steven Arcangeli fe8f0ffe2f fix(select)(builtin): display the prompt 2021-12-04 17:18:51 -08:00
Steven Arcangeli 6487acdf93 feat: add an unpatch() function 2021-12-04 16:50:01 -08:00
Steven Arcangeli a0196a49e4 fix(input): empty string is converted to nil 2021-12-04 16:43:12 -08:00
Steven Arcangeli 5caa867d3d feat(input): support the completion option 2021-12-04 16:38:59 -08:00
Steven Arcangeli 4dc2ca3fff fix(input): opening input while existing input is open 2021-12-04 15:31:29 -08:00
Steven Arcangeli 6be518ba4c fix(input): race condition with multiple prompts in quick succession 2021-12-04 13:11:59 -08:00
Steven Arcangeli 3c01f6bf79 test: add a test for input highlighting 2021-12-04 12:50:09 -08:00
Steven Arcangeli 8a75a7ba1b refactor: replace call to vim.fn with pcall 2021-12-04 12:16:34 -08:00
Steven Arcangeli 1c0f5ab4ed fix(select)(builtin): close modal window before calling callback 2021-12-04 11:49:38 -08:00
Steven Arcangeli 304d73f037 fix: race condition produces broken state in input modal
If you opened the input modal twice in quick succession, it would break
the keymaps and default prompt behavior in a very weird way. Adding
++nested ++once to the autocmd fixed it. Don't know why, unfortunately.
2021-12-04 11:24:11 -08:00
Steven Arcangeli 27d1ea0a15 feat: bind <Esc> to cancel dialog in input (fix #1) 2021-12-04 11:03:07 -08:00
Steven Arcangeli 770501336f fix: restore normal mode and cursor position when exiting input 2021-12-04 11:02:39 -08:00
Steven Arcangeli 7d0e85f00b fix: format_item doesn't have to return a string
This is perhaps ambiguous from the core docs, but format_item can return
values that are not strings and they will then be stringified. So we
should do the same
2021-12-03 22:59:01 -08:00
Steven Arcangeli 18a3548205 feat: error message when passing associative table to select 2021-12-03 22:51:34 -08:00
Steven Arcangeli 37349af9e1 fix: vim.ui.input can accept string as its first arg
This is not part of the documentation, but it is true.
2021-12-03 22:42:33 -08:00
Github Actions cbf7466a85 [docgen] Update README.md
skip-checks: true
2021-12-03 12:24:44 +00:00
Steven Arcangeli edbae09ec4 feat: add support for more telescope themes 2021-12-03 04:24:11 -08:00
Steven Arcangeli 5024cb855e cleanup: remove unnecessary comment 2021-12-02 20:28:18 -08:00
Steven Arcangeli 5e7011f469 doc: force line break in screenshots 2021-12-02 19:57:16 -08:00
Steven Arcangeli 363e3232c7 doc: add a TOC to the readme 2021-12-02 19:56:00 -08:00
Github Actions 134445e4a3 [docgen] Update README.md
skip-checks: true
2021-12-03 03:53:18 +00:00
Steven Arcangeli cf51146761 doc: add screenshots to readme 2021-12-02 19:52:58 -08:00
Steven Arcangeli f57f0f3587 feat: built-in select has winblend option 2021-12-02 19:52:46 -08:00
Github Actions 106dfb93a3 [docgen] Update README.md
skip-checks: true
2021-12-03 03:34:32 +00:00
Steven Arcangeli 97908bf7f0 ci: auto-update vimdocs as well as readme 2021-12-02 19:34:18 -08:00
Github Actions f64b779396 [docgen] Update README.md
skip-checks: true
2021-12-03 03:30:55 +00:00
Steven Arcangeli 7f6cf7fb80 Initial commit 2021-12-02 19:30:27 -08:00