* Add tests for 'c-movement' for vi normal mode
* Complete d-movement tests
* Complete c-movement tests
* Fix cc anc c$ in vi-mode
in vim the deleted text can be pasted, while previously that didn't happen in reedline
* Add tests for ";" and "," in vi mode
* Add vi visual mode
as a proof of concept
* Fix h, l in vi visual mode
* Extend vi command parsing for vi visual mode
Commands requiring motion in normal mode, don't
in visual mode.
* Add delete command to vi visual mode
* Refractor: generalized enters_insert_mode()
to allow switching from vi visual mode to
vi normal mode instead of just to vi insert mode.
* Add switch from vi visual mode to normal mode
after deleting selection.
* Dokumentation: Visual selection implemented
* Cleanup: `cargo fmt --all`
* Made clippy clean
* Made `cargo fmt --call` clean
* Make columnar menu update values after process events
* Remove inaccurate comment from ide_menu
Previously, it said that the working details were updated before
processing events, which is not the case. The comment may have been
copied from columnar_menu.
* Make description_menu process events before updating values
* add bashism `!term` to prefix search for last command beginning with `term`
* missed doc comment
* one more try with doc comments
* add ability to search session first, then globally
* unrelates types for list_menu test
* missed on
* Fix case-consistency searching sqlite history
For the `FileBackedHistory` those operations have always been case
sensitive, do the same for `SqliteBackedHistory`. The insensitivity of
`like` in sqlite causes https://github.com/nushell/nushell/issues/10131
For substring matching for now use `glob` instead of `like`, this
changes the wildcard from `%` to `*` which is more common in the Nushell
context. We have so far not been performing proper escaping here. User
queries may match more often in surprising ways.
`Exact` should now be exact.
* Add test for case-sensitive prefix search
Link the relevant issue so feature fans don't reintroduce bugs
* Use sqlite `instr` function for case-exact match
* Remove outdated fixme
`truncate(false)` is the right choice as we manually truncate later. (we
want to read from the same handle first and then write, to use the
advisory lock)
* Use the system-clipboard only for explicit cut/copy/paste operation
* Update reedline to use the system-clipboard only for explicit cut/copy/paste operation
* Use separate variants to differentiate between local cut buffer and system clipboard. Compile out all system clipboard functionality statically if feature is not active.
* 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