* 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
* 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