File tree 3 files changed +57
-4
lines changed
3 files changed +57
-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
+ :bind generic p1 !true
19
+ :view-help
20
+ " \
21
+ << EXPECTED_HELP_VIEW
22
+ Quick reference for tig keybindings:
23
+
24
+ [-] generic bindings
25
+ Misc
26
+ : prompt Open the prompt
27
+ External commands:
28
+ u1 !user
29
+ u2 !user This is a user commentary for a simple user command
30
+ u3 !user 1 2 3 This is a user commentary for a user command with parameters
31
+ u4 !user command with a long parameter list but no user commentary
32
+ p1 !true
33
+
34
+
35
+
36
+
37
+
38
+
39
+
40
+
41
+
42
+
43
+
44
+
45
+
46
+
47
+
48
+
49
+
50
+ [help] - line 1 of 11 100%
51
+ EXPECTED_HELP_VIEW
52
+
53
+ 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