@@ -10,31 +10,30 @@ start_pipe_pane() {
10
10
local file=$( expand_tmux_format_path " ${logging_full_filename} " )
11
11
" $CURRENT_DIR /start_logging.sh" " ${file} "
12
12
display_message " Started logging to ${file} "
13
- set_logging_variable " ${file} "
13
+ set_active_logging_filename " ${file} "
14
14
}
15
15
16
16
stop_pipe_pane () {
17
17
tmux pipe-pane
18
- display_message " Ended logging to $( get_logging_variable ) "
19
- unset_logging_variable
18
+ display_message " Ended logging to $( get_active_logging_filename ) "
19
+ unset_active_logging_filename
20
20
}
21
21
22
- # saving 'logging' 'not logging' status in a variable unique to pane
23
- set_logging_variable () {
24
- tmux set-option -pq @logging-variable " $1 "
22
+ set_active_logging_filename () {
23
+ tmux set-option -pq @active-logging-filename " $1 "
25
24
}
26
25
27
- unset_logging_variable () {
28
- tmux set-option -pu @logging-variable
26
+ unset_active_logging_filename () {
27
+ tmux set-option -pu @active- logging-filename
29
28
}
30
29
31
- get_logging_variable () {
32
- tmux show-option -pqv @logging-variable
30
+ get_active_logging_filename () {
31
+ tmux show-option -pqv @active- logging-filename
33
32
}
34
33
35
34
# this function checks if logging is happening for the current pane
36
35
is_logging () {
37
- if [ -n " $( get_logging_variable ) " ]; then
36
+ if [ -n " $( get_active_logging_filename ) " ]; then
38
37
return 0
39
38
else
40
39
return 1
0 commit comments