nushell/.github/workflows
Tastaturtaste e7a4af14cd
Add shift + navigation functionality through reedline (#11535)
This PR should close #1171

# Description
<!--
Thank you for improving Nushell. Please, check our [contributing
guide](../CONTRIBUTING.md) and talk to the core team before making major
changes.

Description of your pull request goes here. **Provide examples and/or
screenshots** if your changes affect the user experience.
-->
This PR introduces the capability to select text using the existing
move.. `EditCommand`s of `reedline`. Those commands are extended with an
optional parameter specifying if text should be selected while
navigating. This enables a workflow familiar from a wide variety of text
editors, where holding `shift` while navigating selects all text between
the initial cursor position when pressing `shift` and the current cursor
position.

Before this PR can be merged the [sibling PR for
reedline](https://github.com/nushell/reedline/pull/689) has to land
first.

# User-Facing Changes
## Additional `EditCommand`s
1. `SelectAll`
2. `CutSelection`
3. `CopySelection`
## New optional parameter on existing `EditCommand`s
All `EditCommand`s of `EditType` `MoveCursor` have a new optional
parameter named `select` of type `bool`. If this parameter is not set by
a user it is treated as false, which corresponds to their behavior up to
now.

I am relatively new to `nushell` and as such may not know of existing
behavior that might change through this PR. However, I believe there
should be none. I come to this conclusion because
1. Existing commands are extended only with an *optional* additional
parameter, users who currently use these EditCommands keep their
existing behavior if they don't use it.
2. A few new commands are introduced which were previously not valid.
3. The default keybindings specified in `default_config.nu` are
untouched.

# Tests + Formatting
Tests for the new optional parameter for the move commands are included
to make sure that they truly are optional and an unused optional
parameter conforms to the previous behavior.
2024-01-20 08:04:06 -06:00
..
audit.yml Bump actions/checkout from 3 to 4 (#10308) 2023-09-11 09:54:22 +00:00
ci.yml Add shift + navigation functionality through reedline (#11535) 2024-01-20 08:04:06 -06:00
nightly-build.yml Bump actions-rust-lang/setup-rust-toolchain from 1.6.0 to 1.8.0 (#11539) 2024-01-15 10:27:41 +08:00
release-pkg.nu Try to fix riscv64 building by using unbuntu-latest (#11476) 2024-01-04 07:55:10 +08:00
release.yml Bump actions-rust-lang/setup-rust-toolchain from 1.6.0 to 1.8.0 (#11539) 2024-01-15 10:27:41 +08:00
typos.yml Bump crate-ci/typos from 1.17.0 to 1.17.1 (#11540) 2024-01-15 10:26:31 +08:00
winget-submission.yml Update winget submission workflow include only default msi files (#10487) 2023-09-24 07:52:10 -05:00