File tree 1 file changed +43
-0
lines changed
1 file changed +43
-0
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+
3
+ . libtest.sh
4
+ . libgit.sh
5
+
6
+ LINES=12
7
+ COLUMNS=200
8
+
9
+ in_work_dir create_repo_from_tgz " $base_dir /files/scala-js-benchmarks.tgz"
10
+
11
+ export TIGRC_SYSTEM=does-not-exist
12
+
13
+ file " $HOME /.tigrc.bind.q.for.help.screen" << EOF
14
+ :bind generic q quit
15
+ :view-help
16
+ :save-display $HOME /help.screen
17
+ EOF
18
+
19
+ tigrc << EOF
20
+ bind generic : prompt # Must have prompt mapping to execute script
21
+ bind generic S :script $HOME /.tigrc.bind.q.for.help.screen
22
+ EOF
23
+
24
+ keystrokes ' Sq'
25
+
26
+ test_tig
27
+
28
+ assert_equals stderr << EOF
29
+ EOF
30
+
31
+ assert_equals " $HOME /help.screen" << EOF
32
+ Quick reference for tig keybindings:
33
+
34
+ [-] generic bindings
35
+ View manipulation
36
+ q quit Close all views and quit
37
+ Misc
38
+ : prompt Open the prompt
39
+ Internal commands:
40
+ S :script $HOME /.tigrc.bind.q.for.help.screen
41
+
42
+ [help] - line 1 of 9 100%
43
+ EOF
You can’t perform that action at this time.
0 commit comments