ecode: allow configuring the default working directory of a new terminal (SpartanJ/ecode#857). Fix border of app_hint.

eepp: UIHTMLTable column width calculation improvements.
This commit is contained in:
Martín Lucas Golini
2026-04-03 18:21:44 -03:00
parent 5c264ce906
commit d4ec180134
7 changed files with 92 additions and 45 deletions

View File

@@ -1423,6 +1423,19 @@ std::string App::getCurrentWorkingDir() const {
return "";
}
std::string App::getCurrentFileDir() const {
if ( mSplitter && mSplitter->curEditorIsNotNull() && mSplitter->curEditorExists() &&
mSplitter->getCurEditor()->hasDocument() &&
mSplitter->getCurEditor()->getDocument().hasFilepath() ) {
return mSplitter->getCurEditor()->getDocument().getFileInfo().getDirectoryPath();
}
if ( !mCurrentProject.empty() && mCurrentProject != mPlaygroundPath )
return mCurrentProject;
return "";
}
std::vector<std::pair<String::StringBaseType, String::StringBaseType>>
App::makeAutoClosePairs( const std::string& strPairs ) {
auto curPairs = String::split( strPairs, ',' );