1
0
mirror of https://github.com/nushell/nushell.git synced 2025-08-13 06:58:09 +02:00
Commit Graph

64 Commits

Author SHA1 Message Date
768ff47d28 enable cd to work with directory abbreviations ()
* enable cd to work with abbreviations

* add abbreviation example

* fix tests

* make it configurable
2022-05-06 07:58:32 -05:00
9a8e939cbe remove ctrl-l from config.nu () 2022-05-02 08:31:52 -07:00
3b0151aba6 event ClearScrollback is now working in reedline / update default config.nu () 2022-05-02 19:20:24 +12:00
8dc199d817 Fix PATH update example () 2022-05-01 14:53:59 +03:00
9da2e142b2 Line buffer editor ()
* allow line editing

* cargo fmt
2022-04-30 15:40:41 +01:00
5999506f87 allows for nushell to have tables without the index column () 2022-04-30 09:07:46 -05:00
9771270b38 Fuzzy completion matching ()
* Implement fuzzy match algorithm for suggestions

* Use MatchingAlgorithm for custom completions
2022-04-24 16:43:18 -05:00
8eab311565 consolidate shell integration behind config setting ()
* consolidate shell integration behind config setting

* write output differently
2022-04-24 12:53:12 +12:00
18c9b62b00 git completion: 'git fetch' for remotes () 2022-04-21 07:52:44 +12:00
09b972f1dc add newlines to end of the default configs () 2022-04-20 07:56:15 -07:00
JT
ae674bfaec move config back to config.nu () 2022-04-19 20:54:25 +12:00
JT
76079d5183 Move config to be an env var ()
* Move config to be an env var

* fix fmt and tests
2022-04-19 10:28:01 +12:00
9844e6125b Fix completions for git push and git checkout close: and () 2022-04-14 08:17:58 -05:00
3bac480ca0 rename menu/fix type-o () 2022-04-08 20:22:33 -05:00
4129f15eb9 update str find-replace to str replace () 2022-04-07 08:41:09 -05:00
12d3e4e424 Add env.nu file for environment config ()
* Add env.nu file for environment config

* Add missing flag

* Add $nu.env-path variable

Prints `env.nu` path

* Add example of adding entries to PATH
2022-04-07 05:11:51 +12:00
608b6f3634 Generic menus ()
* updated to reedline generic menus

* help menu with examples

* generic menus in the engine

* description menu template

* list of menus in config

* default value for menu

* menu from block

* generic menus examples

* change to reedline git path

* cargo fmt

* menu name typo

* remove commas from default file

* added error message
2022-04-04 15:54:48 +01:00
0986c61a5d Lift line editor construction out of loop ()
Enables the use of some features on reedline

- Keeping the line when clearing the screen with `Ctrl-L`
- Using the internal cut buffer between lines
- Submitting external commands via keybinding and keeping the line

Additional effect:

Keep the history around and do basic syncs (performance improvement
minimal as session changes have to be read and written)

Additional change:

Give the option to defer writing/rereading the history file to the
closing of the session ($config.sync_history_on_enter)
2022-03-31 23:25:48 +02:00
385bc40627 evaluate indicators as commands ()
* evaluate indicators are commands

* default strings in config

* default multiline

* removed build string command
2022-03-31 06:22:55 +01:00
a2872b4ccc Strip '+ ' decoration in git branch list ()
- '+' is the prefix for the current branch in some worktree

Closes 
2022-03-28 16:07:55 -05:00
JT
911fba8a8a Help menu improvements ()
* Help menu improvements

* default config
2022-03-27 15:21:40 -05:00
a4410fef40 Help menu ()
* nu-completer with suggestions

* help menu with scrolling

* updates description rows based on space

* configuration for help menu

* update nu-ansi-term

* corrected test for update cells

* changed keybinding
2022-03-27 14:01:04 +01:00
41af2e4b30 update link () 2022-03-23 07:52:49 -05:00
1d38ff071e fix: typo ()
Fix a typo in the default config
2022-03-20 07:49:00 -05:00
JT
d5f23ab592 Put completions in their own module () 2022-03-20 12:03:58 +13:00
6e65aef9bf remove cmd from edit () 2022-03-13 20:05:13 +00:00
c73d8d5f95 Add LIB_DIRS and PLUGIN_DIRS ()
* Add LIB_DIRS and PLUGIN_DIRS

* Put plugin dirs behind plugin feature
2022-03-12 22:12:15 +02:00
b342270112 update edit: cmd: undo syntax () 2022-03-12 09:37:19 -06:00
ccc85a2979 remove $nu.cwd () 2022-03-12 09:11:19 -06:00
5fcc670860 allow list to keybinding mode ()
* allow list to keybinding mode

* added comments to default.nu
2022-03-12 11:51:08 +00:00
90b2ec537f Do not pass non-string env vars to externals ()
* Do not pass non-string env vars to externals

Also misc cleanup

* Add note to default config

* Add a test

* Ensure PATH/Path conversion list <-> string
2022-03-12 00:18:39 +02:00
488f81d012 history bang ()
* history bang

* change of char
2022-03-05 09:38:35 +00:00
b714e034aa remove some old documentation, relocate others ()
* remove some old documentation, relocate others

* small tweak to default config
2022-03-04 11:37:08 -05:00
JT
7d0531d270 Add support for escape characters, make nuon a JSON superset ()
* WIP

* Finish adding escape support in strings

* Try to fix windows
2022-03-03 13:14:03 -05:00
2fd42d25b1 partial completions () 2022-03-03 11:13:44 +02:00
50399c349f relocate default config in sample_config folder ()
* relocate default config in sample_config folder

* relocate config file
2022-03-02 19:22:15 -06:00
e3100e6afd Fix alias in docs/sample_config/config.toml () 2022-02-28 15:47:14 -06:00
398502b0d6 fix docs/sample_config/config.toml: use env.PROMPT_COMMAND () 2022-01-02 17:35:07 -06:00
f94a3e15f5 Get rid of header bold option ()
* refactor(options): get rid of 'header_bold' option

* docs(config): remove 'header_bold' from docs

* fix(options): replicate logic to apply true/false in bold

* style(options): apply lint fixes
2021-10-31 06:59:19 +13:00
2846e3f5d9 enable theming of the command line syntax ()
* enable theming of the command line syntax

* added missing flatshape, sorted flatshapes for easier reading.

* sorted flat shapes again and saved it this time

* added sample rwb.json syntax them file to docs
2021-06-11 14:17:43 -05:00
927578a26f fixed the prompt () 2021-06-02 08:39:28 -05:00
ed515cbc0c update keybindings to support new rustyline functionality ()
* update keybindings to support new rustyline functionality

* remove some keybindings comments

* fix wasm build

* fixed multiline editing binding
2021-05-28 15:10:04 -05:00
JT
25a8caa9b0 Simplify expressions ()
* WIP: experiment with simpler expressions

* fix simple invoke

* update tests

* fix a few tests

* Make paren parsing more robust

* fix external args

* Remove old invocation

* Update tests

* Update tests
2021-05-12 13:01:48 +12:00
56adc7c3c6 imp: bump rustyline to 8.0.0 ()
* imp: bump rustyline to 8.0.0

* fix: rustyline 8 keybindings

* fix: commands count/length test

Co-authored-by: alexhk <alexhk@protonmail.com>
2021-03-14 15:13:31 +13:00
507de45d40 Revert "add config: prompt_color_enabled = true ()" ()
This reverts commit fe0fc8d5e1.
2021-03-04 12:22:14 -05:00
fe0fc8d5e1 add config: prompt_color_enabled = true () 2021-03-04 20:08:26 +13:00
5968811441 Set skip_welcome_message to false by default and add note () 2021-02-19 21:41:11 +13:00
2a96152a43 fix sample_config: date --format no longer supported ()
Co-authored-by: alexhk <alexhk@protonmail.com>
2021-02-15 10:24:55 -06:00
041086d22a add config "filesize_metric = true" for default formatting of filesize () 2021-02-11 21:52:34 +13:00
8367f2001c update nuver () 2021-02-10 08:58:38 -06:00