Fixed an old bug in syntax highlighting that sometimes the first line of the file was not correctly highlighted.

Added Svelte syntax highlighting support.
Improved CSS syntax highlighting.
Added "Open All Files in Folder" option when right click a folder in the folder tree view.
This commit is contained in:
Martín Lucas Golini
2025-03-09 13:37:33 -03:00
parent b84080f7ec
commit ea8a44e7a9
11 changed files with 251 additions and 7 deletions

View File

@@ -2153,6 +2153,10 @@ void SettingsMenu::createProjectTreeMenu( const FileInfo& file ) {
mProjectTreeMenu
->add( i18n( "open_folder_ellipsis", "Open Folder..." ), findIcon( "folder-open" ) )
->setId( "open_folder" );
mProjectTreeMenu
->add( i18n( "open_all_files_in_folder", "Open All Files in Folder" ),
findIcon( "folder-open" ) )
->setId( "open_all_files_in_folder" );
} else {
if ( file.isRegularFile() ) {
auto curDir( mApp->getCurrentWorkingDir() );
@@ -2260,6 +2264,8 @@ void SettingsMenu::createProjectTreeMenu( const FileInfo& file ) {
Engine::instance()->openURI( file.getDirectoryPath() );
} else if ( "open_folder" == id ) {
Engine::instance()->openURI( file.getFilepath() );
} else if ( "open_all_files_in_folder" == id ) {
mApp->openAllFilesInFolder( file );
} else if ( "show-hidden-files" == id ) {
mApp->toggleHiddenFiles();
} else if ( "execute_in_terminal" == id ) {