Commit Graph

71 Commits

Author SHA1 Message Date
Steven Arcangeli ed378363a0 feat: config option to disable specific ui modules 2022-01-17 16:02:38 -08:00
Github Actions 333d853b2f [docgen] Update README.md
skip-checks: true
2022-01-17 22:24:39 +00:00
Steven Arcangeli 1f91d264bf fix(input): mode detection in special insert modes 2022-01-17 14:22:58 -08:00
Steven Arcangeli c2208c3e5c feat(select): add support for fzf-lua (#14) 2022-01-17 14:22:24 -08:00
Steven Arcangeli f03962c617 fix(input): expand width to fit prompt & default 2022-01-17 13:18:17 -08:00
Steven Arcangeli 25b72621af fix(input): restore previous mode after leaving modal 2022-01-17 13:17:43 -08:00
Steven Arcangeli d5eaf13b80 fix(input): Don't trigger autocmds when opening input modal (#13) 2022-01-17 13:15:59 -08:00
Steven Arcangeli 15e4d5a5bb ci: run tests on neovim 0.6.1 2022-01-14 13:12:41 -08:00
Steven Arcangeli d5918d0475 feat: history for ui.input (#12) 2022-01-11 16:35:31 -08:00
Steven Arcangeli f487c89b56 cleanup!: Remove prompt buffer implementation for ui.input
The `prompt_buffer = true` option will no longer function. The only
input modal implementation will use a normal scratch buffer.
2022-01-11 16:34:27 -08:00
Steven Arcangeli 0ad4d1e6b9 fix: remove defer_fn hack in fzf select (fix #10) 2021-12-23 11:52:44 -08:00
Github Actions 0bb73bc2bd [docgen] Update README.md
skip-checks: true
2021-12-19 04:22:46 +00:00
Steven Arcangeli c856074771 feat: add config options for setting winhighlight (#8) 2021-12-18 20:20:38 -08:00
Steven Arcangeli 4b677be056 fix(select): off-by-one error in text highlighting 2021-12-18 20:12:32 -08:00
Steven Arcangeli 8d19119476 fix: re-add safety nil check 2021-12-18 19:50:12 -08:00
Steven Arcangeli b5f8d2d4fd refactor(input): remove feedkeys() hack when not using prompt buffer 2021-12-18 19:43:01 -08:00
Steven Arcangeli 28560556f1 feat: add DressingInputText highlight group (#8) 2021-12-18 19:40:46 -08:00
Steven Arcangeli 7270a30237 docgen: make docgen and prettier stop fighting 2021-12-18 15:54:59 -08:00
Steven Arcangeli d1a48d496f doc: update alternatives section of README 2021-12-18 12:47:51 -08:00
Steven Arcangeli f8542237f3 feat: add DressingSelectText highlight group (#8) 2021-12-18 12:32:17 -08:00
Steven Arcangeli 264874eb7b feat: add FloatTitle highlight group (#8) 2021-12-18 12:18:54 -08:00
Steven Arcangeli 26ce743306 refactor: extract common logic for adding window title 2021-12-18 12:18:10 -08:00
Steven Arcangeli 9b8c2be345 deprecate: input.prompt_buffer option
Even once the fixes to the prompt buffer come out in the next version of
Neovim, I'm really not sure what advantages we get from using the prompt
buffer. And we will continue to have disadvantages because it does *not*
function like a normal buffer. If anyone is using it and has a good
reason for it, please let me know. Otherwise, I'll be removing that
functionality in a later commit so I don't have to support two
implementations.
2021-12-17 12:33:50 -08:00
Github Actions 0ab6681748 [docgen] Update README.md
skip-checks: true
2021-12-17 19:39:04 +00:00
Steven Arcangeli 441432ae1c doc: add some alternative projects to the README 2021-12-17 11:38:39 -08:00
Github Actions 1c314ea68a [docgen] Update README.md
skip-checks: true
2021-12-17 19:21:08 +00:00
Steven Arcangeli 4848f851f6 feat(select): allow user to override format_item (#6) 2021-12-17 11:20:16 -08:00
Steven Arcangeli 3787e28932 cleanup: remove unnecessary cursor movement (#5)
We used to do the `stopinsert` synchronously before closing the window,
but it effectively didn't leave insert mode until after the window was
closed (and that caused some apparent cursor movement). Now that we're
deferring the window close action, we can remove the hacky cursor
respositioning.
2021-12-10 08:09:42 -08:00
Github Actions 9418729b6a [docgen] Update README.md
skip-checks: true
2021-12-10 01:42:34 +00:00
Steven Arcangeli a63c724621 doc: update input modal screenshot 2021-12-09 17:38:36 -08:00
Steven Arcangeli a24a20eb48 chore: add github workflow to run tests 2021-12-09 17:14:23 -08:00
Github Actions 15e031c825 [docgen] Update README.md
skip-checks: true
2021-12-09 17:14:23 -08:00
Steven Arcangeli 43dd74f512 test: automated tests for the input modal 2021-12-09 17:09:22 -08:00
Steven Arcangeli dbfca4da6a feat(input): add winblend as a config option 2021-12-08 18:52:04 -08:00
Steven Arcangeli 189bbc6562 fix(input): adjust implementation to avoid bugs in prompt buffer (#2) 2021-12-08 18:52:04 -08:00
Steven Arcangeli 362cc2c54b fix(input): Remove debug print from completion logic
That's some egg on my face
2021-12-07 21:40:10 -08:00
Steven Arcangeli 683f23ceb1
Merge pull request #4 from williamboman/nil-check
fix(select/telescope): check for nil selection
2021-12-06 11:15:42 -08:00
William Boman 2f2582e5f7 call on_choice before return 2021-12-06 18:26:00 +01:00
William Boman 14780e4b7d Merge remote-tracking branch 'upstream/master' into nil-check
* upstream/master:
  [docgen] Update README.md skip-checks: true
  feat: set unique filetype on built-in modals (#3)
  feat(input): option to allow normal mode (#3)
2021-12-06 18:24:39 +01:00
Github Actions 6ed0ca5174 [docgen] Update README.md
skip-checks: true
2021-12-06 03:26:33 +00:00
Steven Arcangeli a3255df4a5 feat: set unique filetype on built-in modals (#3) 2021-12-05 19:25:51 -08:00
Steven Arcangeli 08c0cf3217 feat(input): option to allow normal mode (#3) 2021-12-05 19:20:20 -08:00
William Boman c84bf85c28 fix(select/telescope): check for nil selection 2021-12-06 01:29:37 +01:00
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