* Fix typos and grammar mistakes
* Fix broken test for "remove_last_char_works_with_normal_string"
I accidentally "fixed" the missing char in the previous commit.
* get correct cursor pos when menu indicator contains newline
* add tests
* fix cursor pos in multiline prompt
* make description mode enum public
* add doc comment
* respect windows newline in update_values
* Revert "respect windows newline in update_values"
This reverts commit 070d600545.
* add complete_with_base_ranges to Completer
* add builder for correct_cursor_pos
* add config options to completion examples
* add style to ide menu
* run fmt
* start menu refactor
* Revert "start menu refactor"
This reverts commit 62726f29be.
* start menu refactor
* fix ci
* use MenuSettings struct
* add test case for unix newline
* more tests
* fix newline replace
* add explicit panic to stay backwards compatible
* fix ci
* Update columnar_menu.rs
Co-authored-by: Yash Thakur <45539777+ysthakur@users.noreply.github.com>
---------
Co-authored-by: Yash Thakur <45539777+ysthakur@users.noreply.github.com>
* get correct cursor pos when menu indicator contains newline
* add tests
* fix cursor pos in multiline prompt
* make description mode enum public
* add doc comment
* respect windows newline in update_values
* Revert "respect windows newline in update_values"
This reverts commit 070d600545.
* add complete_with_base_ranges to Completer
* add builder for correct_cursor_pos
* add config options to completion examples
* add style to ide menu
* run fmt
* start menu refactor
* Revert "start menu refactor"
This reverts commit 62726f29be.
* fix style
* get correct cursor pos when menu indicator contains newline
* add tests
* fix cursor pos in multiline prompt
* make description mode enum public
* add doc comment
* respect windows newline in update_values
* Revert "respect windows newline in update_values"
This reverts commit 070d600545.
* add complete_with_base_ranges to Completer
* add builder for correct_cursor_pos
* add config options to completion examples
* add style to ide menu
* run fmt
* start menu refactor
* Revert "start menu refactor"
This reverts commit 62726f29be.
* Gracefully handled lack of system clipboard
If the `system_clipboard` feature is enabled, but we failed to
initialize the `SystemClipboard`, default to `LocalClipboard` instead of
panicking.
* Remove `eprintln!()` when failing to access system clipboard
* get correct cursor pos when menu indicator contains newline
* add tests
* fix cursor pos in multiline prompt
* make description mode enum public
* add doc comment
* respect windows newline in update_values
* Revert "respect windows newline in update_values"
This reverts commit 070d600545.
* add complete_with_base_ranges to Completer
* add builder for correct_cursor_pos
* add config options to completion examples
* Fix file based history when capacity is set to zero
Signed-off-by: Andrei Stan <andreistan2003@gmail.com>
* Fix CI
Signed-off-by: Andrei Stan <andreistan2003@gmail.com>
---------
Signed-off-by: Andrei Stan <andreistan2003@gmail.com>
* Add ability to select and cut text in the input buffer
* Add visual selection effect
* Add SelectMoveWord<Left/Right> command on Shift + Ctrl + Arrow
* Add ability to delete selection with EditCommands 'Delete' and 'Backspace'
* Make selection an option on every move EditCommand
* Add display text for optional 'select' parameter to move EditCommands
* Don't slice line in DefaultCompleter
* Revert completions example
* Fix clippy lint
* Treat input as '' if None
* Update values even if string_difference empty
* Rename start to pos in list_menu
* Fix string_diff bug with repeated char
* Trim before completing in DefaultCompleter
* Remove TODO
* Make HistoryCompleter take end as pos
* First shot at resolving the resizing issues with terminals
* Comment for known bug
* Checking the start row repeatedly to see how it affects performance
---------
Co-authored-by: Daniel Somerfield <daniel.somerfield@hatchdata.com>
* Exclude the clipboard feature for docs.rs builds
The 0.27.0 docs.rs build failed as the `xcb` crate build.rs failed in
the docs.rs sandbox.
Exclude the clipboard feature for now and only enable:
- `bashisms`
- `external_printer`
- `sqlite` (should be pretty similar to `sqlite-dynlib`)
* Fix hyperlink formatting
* Manually mention required features
* Make history-related items (de-)serializable
* Fix: remove duplicate derive
* Fix: deserialization bound on generic type parameter
* Comment on the custom deserialize_with attribute