setting to turn off transient tab spawns

This commit is contained in:
Ryan Fleury
2026-04-22 20:15:36 -07:00
parent 3c214cfbb5
commit 684eeda139
3 changed files with 11 additions and 1 deletions
File diff suppressed because one or more lines are too long
+4
View File
@@ -301,6 +301,10 @@ RD_VocabTable:
//- rjf: native filesystem dialogues
@default(0) @display_name('Use Native File System Dialog') @description("Uses the operating system's file system dialog box, rather than the debugger's built-in UI.")
'use_native_file_system_dialog': bool,
//- rjf: transient tabs
@default(1) @display_name('Transient Tabs') @description("When snapping to source code locations, opens new files in a 'transient' tab if they are not already open. Transient tabs are replaced on subsequent snaps automatically.")
'transient_tabs': bool,
}
```
}
+6
View File
@@ -14277,6 +14277,12 @@ rd_frame(void)
}
}
//- rjf: if transient tabs are turned off, always prefer new tab
if(!rd_setting_b32_from_name(str8_lit("transient_tabs")))
{
prefer_new_tab = 1;
}
//- rjf: given a src code location, if no vaddr is specified,
// try to map the src coordinates to a vaddr via line info
if(vaddr == 0 && file_path.size != 0)