ecode: Added an option to configure the default shell used by ecode terminal.

Closes SpartanJ/ecode#70.
This commit is contained in:
Martín Lucas Golini
2023-03-05 18:09:58 -03:00
parent d2caa0d890
commit 7d7a97e60d
20 changed files with 120 additions and 24 deletions

View File

@@ -142,6 +142,7 @@ void AppConfig::load( const std::string& confPath, std::string& keybindingsPath,
globalSearchBarConfig.escapeSequence =
ini.getValueB( "global_search_bar", "escape_sequence", false );
term.shell = ini.getValue( "terminal", "shell" );
term.fontSize = ini.getValue( "terminal", "font_size", "11dp" );
term.colorScheme = ini.getValue( "terminal", "colorscheme", "eterm" );
@@ -246,6 +247,7 @@ void AppConfig::save( const std::vector<std::string>& recentFiles,
ini.setValueB( "global_search_bar", "whole_word", globalSearchBarConfig.wholeWord );
ini.setValueB( "global_search_bar", "escape_sequence", globalSearchBarConfig.escapeSequence );
ini.setValue( "terminal", "shell", term.shell );
ini.setValue( "terminal", "font_size", term.fontSize.toString() );
ini.setValue( "terminal", "colorscheme", term.colorScheme );