Skip to content

Commit ae23eeb

Browse files
authored
Translate operators and variables_and_subexpressions to zh-CN (#391)
* Translate operators and variables_and_subexpressions from commit: 0b0389f * Ignore some doc formatting * Format book/line_editor.md
1 parent c3d96c7 commit ae23eeb

File tree

9 files changed

+373
-192
lines changed

9 files changed

+373
-192
lines changed

.prettierignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11

22
node_modules
33
package-lock.json
4-
book/commands/*.md
4+
55
operators.md
6+
dataframes.md
7+
nushell_map.md
8+
coming_from_bash.md
9+
book/commands/*.md

.vuepress/config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -423,8 +423,8 @@ module.exports = {
423423
children: [
424424
'custom_commands',
425425
'aliases',
426-
// 'operators',
427-
// 'variables_and_subexpressions',
426+
'operators',
427+
'variables_and_subexpressions',
428428
// 'scripts',
429429
// 'modules',
430430
],

book/coming_from_bash.md

Lines changed: 48 additions & 48 deletions
Large diffs are not rendered by default.

book/dataframes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1010,7 +1010,7 @@ The next list shows the available dataframe commands with their descriptions, an
10101010
whenever possible, their analogous Nushell command.
10111011
10121012
| Command Name | Applies To | Description | Nushell Equivalent |
1013-
| --------------- | --------------------------- | -------------------------------------------------------------------------- | ----------------------------- | ------------------------------------- |
1013+
| --------------- | --------------------------- | -------------------------------------------------------------------------- | ----------------------------- |
10141014
| aggregate | DataFrame, GroupBy, Series | Performs an aggregation operation on a dataframe, groupby or series object | math |
10151015
| all-false | Series | Returns true if all values are false | |
10161016
| all-true | Series | Returns true if all values are true | all? |

book/line_editor.md

Lines changed: 48 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -63,58 +63,61 @@ Emacs and Vi Insert keybindings
6363
| Ctr + n | Move down |
6464

6565
Vi Normal keybindings
66-
| Key | Event |
67-
|---|---|
66+
67+
| Key | Event |
68+
| ------- | ------------------- |
6869
| Ctr + c | Cancel current line |
69-
| Ctr + l | Clear screen |
70-
| Up | Move menu up |
71-
| Up | Move up |
72-
| Down | Move menu down |
73-
| Down | Move down |
74-
| Left | Move menu left |
75-
| Left | Move left |
76-
| Right | Move menu right |
77-
| Right | Move right |
70+
| Ctr + l | Clear screen |
71+
| Up | Move menu up |
72+
| Up | Move up |
73+
| Down | Move menu down |
74+
| Down | Move down |
75+
| Left | Move menu left |
76+
| Left | Move left |
77+
| Right | Move menu right |
78+
| Right | Move right |
7879

7980
Besides the previous keybindings, while in Vi normal mode you can use the classic
8081
vi mode of executing actions by selecting a motion or an action. The available
8182
options for the combinations are:
8283

8384
Vi Normal motions
84-
| Key | motion |
85-
|---|---|
86-
| w | Word |
87-
| d | Line end |
88-
| 0 | Line start |
89-
| $ | Line end |
90-
| f | Right until char |
91-
| t | Right before char |
92-
| F | Left until char |
93-
| T | Left before char |
85+
86+
| Key | motion |
87+
| --- | ----------------- |
88+
| w | Word |
89+
| d | Line end |
90+
| 0 | Line start |
91+
| $ | Line end |
92+
| f | Right until char |
93+
| t | Right before char |
94+
| F | Left until char |
95+
| T | Left before char |
9496

9597
Vi Normal actions
96-
| Key | action |
97-
|---|---|
98-
| d | Delete |
99-
| p | Paste after |
100-
| P | Paste before |
101-
| h | Move left |
102-
| l | Move right |
103-
| j | Move down |
104-
| k | Move up |
105-
| w | Move word right |
106-
| b | Move word left |
107-
| i | Enter Vi insert at current char |
108-
| a | Enter Vi insert after char |
109-
| 0 | Move to start of line |
110-
| ^ | Move to start of line |
111-
| $ | Move to end of line |
112-
| u | Undo |
113-
| c | Change |
114-
| x | Delete char |
115-
| s | History search |
116-
| D | Delete to end |
117-
| A | Append to end |
98+
99+
| Key | action |
100+
| --- | ------------------------------- |
101+
| d | Delete |
102+
| p | Paste after |
103+
| P | Paste before |
104+
| h | Move left |
105+
| l | Move right |
106+
| j | Move down |
107+
| k | Move up |
108+
| w | Move word right |
109+
| b | Move word left |
110+
| i | Enter Vi insert at current char |
111+
| a | Enter Vi insert after char |
112+
| 0 | Move to start of line |
113+
| ^ | Move to start of line |
114+
| $ | Move to end of line |
115+
| u | Undo |
116+
| c | Change |
117+
| x | Delete char |
118+
| s | History search |
119+
| D | Delete to end |
120+
| A | Append to end |
118121

119122
### Command history
120123

@@ -712,10 +715,10 @@ layouts as a template. The templates available in nushell are columnar, list or
712715
description.
713716
714717
The columnar menu will show you data in a columnar fashion adjusting the column
715-
number based on the size of the text displayed in your columns.
718+
number based on the size of the text displayed in your columns.
716719
717720
The list type of menu will always display suggestions as a list, giving you the
718-
option to select values using `!` plus number combination.
721+
option to select values using `!` plus number combination.
719722
720723
The description type will give you more space to display a description for some
721724
values, together with extra information that could be inserted into the buffer.

0 commit comments

Comments
 (0)