@@ -350,6 +350,7 @@ pub struct App {
350350 pub file_search_active : bool , // Whether search input is active
351351 pub startup_needs_file_picker : bool , // True if started without file arg
352352 pub file_picker_dir : Option < PathBuf > , // Custom directory for file picker
353+ pub show_hidden_dirs : bool , // Whether to show hidden (dot) directories
353354
354355 pub file_history : Vec < FileState > , // Back navigation stack
355356 pub file_future : Vec < FileState > , // Forward navigation stack (for undo back)
@@ -572,6 +573,7 @@ impl App {
572573 file_search_active : false ,
573574 startup_needs_file_picker : false ,
574575 file_picker_dir : None ,
576+ show_hidden_dirs : false ,
575577
576578 file_history : Vec :: new ( ) ,
577579 file_future : Vec :: new ( ) ,
@@ -1392,6 +1394,10 @@ impl App {
13921394 ParentDirectory => {
13931395 self . file_picker_parent_dir ( ) ;
13941396 }
1397+ ToggleHiddenDirs => {
1398+ self . show_hidden_dirs = !self . show_hidden_dirs ;
1399+ self . scan_markdown_files ( ) ;
1400+ }
13951401
13961402 // === Dialog Actions ===
13971403 ConfirmAction => {
@@ -3737,7 +3743,7 @@ impl App {
37373743 && path
37383744 . file_name ( )
37393745 . and_then ( |n| n. to_str ( ) )
3740- . map ( |name| !name. starts_with ( '.' ) )
3746+ . map ( |name| self . show_hidden_dirs || !name. starts_with ( '.' ) )
37413747 . unwrap_or ( false )
37423748 {
37433749 dirs. push ( path) ;
0 commit comments