File tree 3 files changed +14
-2
lines changed
3 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ export default {
34
34
] ,
35
35
options :{
36
36
setTitlesString : " " ,
37
- prefix : 'C-c '
37
+ prefix : 'C-a '
38
38
} ,
39
39
status : {
40
40
left : < StatusLeft /> ,
Original file line number Diff line number Diff line change
1
+ let log = (content ) => {
2
+ let debugMode = Bun .Env .get (Bun .env , "BETTER_TMUX_DEBUG" )
3
+ switch debugMode {
4
+ | Some ("1" ) => Console .log2 ("[🔎 BetterTmux] Executing Command: " , content )
5
+ | Some (_ )
6
+ | None => ()
7
+ }
8
+ }
Original file line number Diff line number Diff line change @@ -56,4 +56,8 @@ let parse = command =>
56
56
| Bind (key , command , options ) => ` tmux bind ${key} ${command} ${options-> Array.join(" " )}`
57
57
}
58
58
59
- let exec = command => command -> parse -> ChildProcess .execSync -> ignore
59
+ let exec = command => {
60
+ let parsedCommand = command -> parse
61
+ Debug .log (parsedCommand )
62
+ parsedCommand -> ChildProcess .execSync -> ignore
63
+ }
You can’t perform that action at this time.
0 commit comments