mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-10-01 10:40:20 +03:00
Allow to select the default "New Tab Position" (SpartanJ/ecode#904) from the settings menu at Settings -> Document -> Global Settings -> New Tab Position.
| Option | Behavior | | --- | --- | | **`afterActive`** | Opens immediately to the right of your currently focused tab. *(VS Code default)* | | **`last`** | Opens at the very end of the entire tab bar, to the right of all open tabs. | | **`first`** | Opens at the very beginning of the tab bar, to the far left. | | **`leftOfActive`** | Opens immediately to the left of your currently focused tab. |
This commit is contained in:
@@ -175,6 +175,8 @@ void AppConfig::load( const std::string& confPath, std::string& keybindingsPath,
|
||||
doc.tabStops = ini.getValueB( "document", "tab_stops", true );
|
||||
doc.lineEndings =
|
||||
TextFormat::stringToLineEnding( ini.getValue( "document", "line_endings", "LF" ) );
|
||||
editor.newTabPosition =
|
||||
NewTabPosition::fromString( ini.getValue( "editor", "new_tab_position", "last" ) );
|
||||
// Migrate old data
|
||||
if ( ini.keyValueExists( "document", "windows_line_endings" ) &&
|
||||
!ini.keyValueExists( "document", "line_endings" ) &&
|
||||
@@ -388,6 +390,7 @@ void AppConfig::save( const std::vector<std::string>& recentFiles,
|
||||
ini.setValueB( "editor", "tab_switcher", editor.tabSwitcher );
|
||||
ini.setValue( "editor", "tab_jump_mode",
|
||||
UITabWidget::tabJumpModeToString( editor.tabJumpMode ) );
|
||||
ini.setValue( "editor", "new_tab_position", NewTabPosition::toString( editor.newTabPosition ) );
|
||||
ini.setValueB( "editor", "single_click_tree_navigation", editor.singleClickNavigation );
|
||||
ini.setValueB( "editor", "sync_project_tree_with_editor", editor.syncProjectTreeWithEditor );
|
||||
ini.setValueB( "editor", "auto_close_xml_tags", editor.autoCloseXMLTags );
|
||||
|
||||
Reference in New Issue
Block a user