mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-08-13 04:42:12 +03:00
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:
@@ -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, ',' );
|
||||
|
||||
Reference in New Issue
Block a user