Commit ce7db35 1 parent 6eb5fb0 commit ce7db35 Copy full SHA for ce7db35
File tree 5 files changed +24
-6
lines changed
5 files changed +24
-6
lines changed Original file line number Diff line number Diff line change 1
1
/target
2
2
.direnv /
3
3
.zjstatus.log
4
+ .zjframes.log
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ fn init_tracing() {
32
32
use std:: fs:: File ;
33
33
use tracing_subscriber:: { layer:: SubscriberExt , util:: SubscriberInitExt } ;
34
34
35
- let file = File :: create ( "/host/.zjstatus .log" ) ;
35
+ let file = File :: create ( "/host/.zjframes .log" ) ;
36
36
let file = match file {
37
37
Ok ( file) => file,
38
38
Err ( error) => panic ! ( "Error: {:?}" , error) ,
@@ -143,6 +143,7 @@ impl State {
143
143
& self . state . panes ,
144
144
& self . state . mode ,
145
145
get_plugin_ids ( ) ,
146
+ true ,
146
147
) ;
147
148
}
148
149
Event :: PaneUpdate ( pane_info) => {
@@ -159,6 +160,7 @@ impl State {
159
160
& self . state . panes ,
160
161
& self . state . mode ,
161
162
get_plugin_ids ( ) ,
163
+ true ,
162
164
) ;
163
165
}
164
166
Event :: PermissionRequestResult ( result) => {
@@ -181,6 +183,7 @@ impl State {
181
183
& current_session. panes ,
182
184
& self . state . mode ,
183
185
get_plugin_ids ( ) ,
186
+ true ,
184
187
) ;
185
188
}
186
189
}
Original file line number Diff line number Diff line change @@ -208,6 +208,7 @@ impl State {
208
208
& pane_info,
209
209
& self . state . mode ,
210
210
get_plugin_ids ( ) ,
211
+ false ,
211
212
) ;
212
213
213
214
self . state . panes = pane_info;
@@ -267,6 +268,7 @@ impl State {
267
268
& current_session. panes ,
268
269
& self . state . mode ,
269
270
get_plugin_ids ( ) ,
271
+ false ,
270
272
) ;
271
273
}
272
274
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ pub fn hide_frames_conditionally(
9
9
pane_info : & PaneManifest ,
10
10
mode_info : & ModeInfo ,
11
11
plugin_pane_id : PluginIds ,
12
+ is_zjframes : bool ,
12
13
) {
13
14
if !cfg_hide_frames_for_single_pane
14
15
&& !cfg_hide_frames_except_for_search
@@ -24,8 +25,11 @@ pub fn hide_frames_conditionally(
24
25
25
26
// check if we are running for the current tab since one plugin will run for
26
27
// each tab. If we do not prevent execution, the screen will start to flicker
27
- // 'cause every plugin will try to toggle the frames
28
- if !is_plugin_for_current_tab ( & panes, plugin_pane_id) {
28
+ // 'cause every plugin will try to toggle the frames.
29
+ //
30
+ // This is only relevant for zjstatus, not zjframes; as zjframes only
31
+ // runs once per session.
32
+ if !is_plugin_for_current_tab ( & panes, plugin_pane_id) && !is_zjframes {
29
33
return ;
30
34
}
31
35
Original file line number Diff line number Diff line change @@ -221,7 +221,7 @@ plugins {
221
221
// Plugins to load in the background when a new session starts
222
222
load_plugins {
223
223
"file:./target/wasm32-wasip1/debug/zjframes.wasm" {
224
- hide_frame_for_single_pane "false "
224
+ hide_frame_for_single_pane "true "
225
225
hide_frame_except_for_search "true"
226
226
hide_frame_except_for_fullscreen "true"
227
227
}
@@ -259,7 +259,15 @@ load_plugins {
259
259
// - true (default)
260
260
// - false
261
261
//
262
- // pane_frames true
262
+ pane_frames true
263
+
264
+
265
+ ui {
266
+ pane_frames {
267
+ hide_session_name true
268
+ rounded_corners true
269
+ }
270
+ }
263
271
264
272
// Toggle between having Zellij lay out panes according to a predefined set of layouts whenever possible
265
273
// Options:
@@ -274,7 +282,7 @@ load_plugins {
274
282
// - true (default)
275
283
// - false
276
284
//
277
- // session_serialization false
285
+ session_serialization false
278
286
279
287
// Whether pane viewports are serialized along with the session, default is false
280
288
// (Requires restart)
You can’t perform that action at this time.
0 commit comments