File tree 3 files changed +56
-4
lines changed
3 files changed +56
-4
lines changed Original file line number Diff line number Diff line change @@ -109,9 +109,9 @@ External commands:
109
109
! ?git branch -D %(branch)
110
110
[-] status bindings
111
111
View-specific actions
112
- u status-update Stage/unstage chunk or file changes
113
- ! status-revert Revert chunk or file changes
114
- M status-merge Merge file using external tool
112
+ u status-update Stage/unstage chunk or file changes
113
+ ! status-revert Revert chunk or file changes
114
+ M status-merge Merge file using external tool
115
115
External commands:
116
116
C !git commit
117
117
[-] stage bindings
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+
3
+ . libtest.sh
4
+
5
+ export TIGRC_SYSTEM=does-not-exist
6
+
7
+ test_case user-command-comment \
8
+ --args=' status' \
9
+ --tigrc="
10
+ bind generic : prompt # User comment for a builtin command is not exposed
11
+ bind generic , none # User comment does not interfere with a null binding
12
+ bind generic u1 !user
13
+ bind generic u2 !user # This is a user commentary for a simple user command
14
+ bind generic u3 !user 1 2 3 # This is a user commentary for a user command with parameters
15
+ bind generic u4 !user command with a long parameter list but no user commentary
16
+ " \
17
+ --script="
18
+ :view-help
19
+ " \
20
+ << EXPECTED_HELP_VIEW
21
+ Quick reference for tig keybindings:
22
+
23
+ [-] generic bindings
24
+ Misc
25
+ : prompt Open the prompt
26
+ External commands:
27
+ u1 !user
28
+ u2 !user This is a user commentary for a simple user command
29
+ u3 !user 1 2 3 This is a user commentary for a user command with parameters
30
+ u4 !user command with a long parameter list but no user commentary
31
+
32
+
33
+
34
+
35
+
36
+
37
+
38
+
39
+
40
+
41
+
42
+
43
+
44
+
45
+
46
+
47
+
48
+
49
+ [help] - line 1 of 10 100%
50
+ EXPECTED_HELP_VIEW
51
+
52
+ run_test_cases
Original file line number Diff line number Diff line change 115
115
: prompt Open the prompt
116
116
[-] main bindings
117
117
Internal commands:
118
- # :/s e a r c h
118
+ # :/s e a r c h Toggle option
119
119
External commands:
120
120
1 !external command
121
121
2 @silent command
You can’t perform that action at this time.
0 commit comments