File tree 2 files changed +10
-2
lines changed
2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,10 @@ hidden = false
28
28
You may also specify a file to use for configuration with the ` -c ` or
29
29
` --config ` CLI argument: ` hx -c path/to/custom-config.toml ` .
30
30
31
+ It is also possible to trigger configuration file reloading by sending the ` USR1 `
32
+ signal to the helix process, e.g. via ` pkill -USR1 hx ` . This is only supported
33
+ on unix operating systems.
34
+
31
35
## Editor
32
36
33
37
### ` [editor] ` Section
Original file line number Diff line number Diff line change @@ -224,8 +224,8 @@ impl Application {
224
224
#[ cfg( windows) ]
225
225
let signals = futures_util:: stream:: empty ( ) ;
226
226
#[ cfg( not( windows) ) ]
227
- let signals =
228
- Signals :: new ( & [ signal :: SIGTSTP , signal :: SIGCONT ] ) . context ( "build signal handler" ) ?;
227
+ let signals = Signals :: new ( & [ signal :: SIGTSTP , signal :: SIGCONT , signal :: SIGUSR1 ] )
228
+ . context ( "build signal handler" ) ?;
229
229
230
230
let app = Self {
231
231
compositor,
@@ -426,6 +426,10 @@ impl Application {
426
426
self . compositor . load_cursor ( ) ;
427
427
self . render ( ) ;
428
428
}
429
+ signal:: SIGUSR1 => {
430
+ self . refresh_config ( ) ;
431
+ self . render ( ) ;
432
+ }
429
433
_ => unreachable ! ( ) ,
430
434
}
431
435
}
You can’t perform that action at this time.
0 commit comments