File tree Expand file tree Collapse file tree 3 files changed +14
-3
lines changed Expand file tree Collapse file tree 3 files changed +14
-3
lines changed Original file line number Diff line number Diff line change 4
4
- bugfix: invalid params for 'save_sidebar_width' script
5
5
- remove tilde characters from less
6
6
- improve less and tree commands
7
+ - add option for specifying custom command
7
8
8
9
### v0.6.0, Sep 05, 2014
9
10
- more options for customizing tree sidebar
Original file line number Diff line number Diff line change @@ -7,13 +7,20 @@ command_exists() {
7
7
}
8
8
9
9
tree_command () {
10
- if command_exists " tree" ; then
11
- echo " tree -C"
10
+ local user_command=" $( tree_user_command) "
11
+ if [ -n " $user_command " ]; then
12
+ echo " $user_command "
13
+ elif command_exists " tree" ; then
14
+ echo " $TREE_COMMAND "
12
15
else
13
16
echo " $custom_tree_command "
14
17
fi
15
18
}
16
19
20
+ tree_user_command () {
21
+ get_tmux_option " $TREE_COMMAND_OPTION " " "
22
+ }
23
+
17
24
tree_key () {
18
25
get_tmux_option " $TREE_OPTION " " $TREE_KEY "
19
26
}
Original file line number Diff line number Diff line change @@ -9,7 +9,10 @@ TREE_OPTION="@sidebar-tree"
9
9
TREE_FOCUS_KEY=" Bspace"
10
10
TREE_FOCUS_OPTION=" @sidebar-tree-focus"
11
11
12
- TREE_PAGER=" LESS='' less --dumb --chop-long-lines --tilde --IGNORE-CASE --RAW-CONTROL-CHARS"
12
+ TREE_COMMAND=" tree -C"
13
+ TREE_COMMAND_OPTION=" @sidebar-tree-command"
14
+
15
+ TREE_PAGER=" LESS=\"\" less --dumb --chop-long-lines --tilde --IGNORE-CASE --RAW-CONTROL-CHARS"
13
16
TREE_PAGER_OPTION=" @sidebar-tree-pager"
14
17
15
18
TREE_POSITION=" left"
You can’t perform that action at this time.
0 commit comments