File tree Expand file tree Collapse file tree 25 files changed +109
-15
lines changed
Plugins/Flow.Launcher.Plugin.Explorer Expand file tree Collapse file tree 25 files changed +109
-15
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,10 @@ public List<Result> LoadContextMenus(Result selectedResult)
40
40
if ( selectedResult . ContextData is SearchResult record )
41
41
{
42
42
if ( record . Type == ResultType . File && ! string . IsNullOrEmpty ( Settings . EditorPath ) )
43
- contextMenus . Add ( CreateOpenWithEditorResult ( record ) ) ;
43
+ contextMenus . Add ( CreateOpenWithEditorResult ( record , Settings . EditorPath ) ) ;
44
+
45
+ if ( ( record . Type == ResultType . Folder || record . Type == ResultType . Volume ) && ! string . IsNullOrEmpty ( Settings . FolderEditorPath ) )
46
+ contextMenus . Add ( CreateOpenWithEditorResult ( record , Settings . FolderEditorPath ) ) ;
44
47
45
48
if ( record . Type == ResultType . Folder )
46
49
{
@@ -309,10 +312,8 @@ private Result CreateOpenContainingFolderResult(SearchResult record)
309
312
310
313
311
314
312
- private Result CreateOpenWithEditorResult ( SearchResult record )
315
+ private Result CreateOpenWithEditorResult ( SearchResult record , string editorPath )
313
316
{
314
- string editorPath = Settings . EditorPath ;
315
-
316
317
var name = $ "{ Context . API . GetTranslation ( "plugin_explorer_openwitheditor" ) } { Path . GetFileNameWithoutExtension ( editorPath ) } ";
317
318
318
319
return new Result
Original file line number Diff line number Diff line change 45
45
<system : String x : Key =" plugin_explorer_engine_everything" >Everything</system : String >
46
46
<system : String x : Key =" plugin_explorer_engine_windows_index" >Windows Index</system : String >
47
47
<system : String x : Key =" plugin_explorer_path_enumeration_engine_none" >Direct Enumeration</system : String >
48
+ <system : String x : Key =" plugin_explorer_file_editor_path" >Filredigeringssti</system : String >
49
+ <system : String x : Key =" plugin_explorer_folder_editor_path" >Mapperedigeringssti</system : String >
48
50
49
51
<system : String x : Key =" plugin_explorer_Content_Search_Engine" >Content Search Engine</system : String >
50
52
<system : String x : Key =" plugin_explorer_Directory_Recursive_Search_Engine" >Directory Recursive Search Engine</system : String >
Original file line number Diff line number Diff line change 45
45
<system : String x : Key =" plugin_explorer_engine_everything" >Everything</system : String >
46
46
<system : String x : Key =" plugin_explorer_engine_windows_index" >Windows Index</system : String >
47
47
<system : String x : Key =" plugin_explorer_path_enumeration_engine_none" >Direct Enumeration</system : String >
48
+ <system : String x : Key =" plugin_explorer_file_editor_path" >Datei-Editor-Pfad</system : String >
49
+ <system : String x : Key =" plugin_explorer_folder_editor_path" >Ordner-Editor-Pfad</system : String >
48
50
49
51
<system : String x : Key =" plugin_explorer_Content_Search_Engine" >Content Search Engine</system : String >
50
52
<system : String x : Key =" plugin_explorer_Directory_Recursive_Search_Engine" >Directory Recursive Search Engine</system : String >
Original file line number Diff line number Diff line change 48
48
<system : String x : Key =" plugin_explorer_engine_everything" >Everything</system : String >
49
49
<system : String x : Key =" plugin_explorer_engine_windows_index" >Windows Index</system : String >
50
50
<system : String x : Key =" plugin_explorer_path_enumeration_engine_none" >Direct Enumeration</system : String >
51
+ <system : String x : Key =" plugin_explorer_file_editor_path" >File Editor Path</system : String >
52
+ <system : String x : Key =" plugin_explorer_folder_editor_path" >Folder Editor Path</system : String >
51
53
52
54
<system : String x : Key =" plugin_explorer_Content_Search_Engine" >Content Search Engine</system : String >
53
55
<system : String x : Key =" plugin_explorer_Directory_Recursive_Search_Engine" >Directory Recursive Search Engine</system : String >
Original file line number Diff line number Diff line change 45
45
<system : String x : Key =" plugin_explorer_engine_everything" >Everything</system : String >
46
46
<system : String x : Key =" plugin_explorer_engine_windows_index" >Windows Index</system : String >
47
47
<system : String x : Key =" plugin_explorer_path_enumeration_engine_none" >Direct Enumeration</system : String >
48
+ <system : String x : Key =" plugin_explorer_file_editor_path" >Ruta del editor</system : String >
49
+ <system : String x : Key =" plugin_explorer_folder_editor_path" >Folder Editor Path</system : String >
48
50
49
51
<system : String x : Key =" plugin_explorer_Content_Search_Engine" >Content Search Engine</system : String >
50
52
<system : String x : Key =" plugin_explorer_Directory_Recursive_Search_Engine" >Directory Recursive Search Engine</system : String >
Original file line number Diff line number Diff line change 45
45
<system : String x : Key =" plugin_explorer_engine_everything" >Everything</system : String >
46
46
<system : String x : Key =" plugin_explorer_engine_windows_index" >Índice de Windows</system : String >
47
47
<system : String x : Key =" plugin_explorer_path_enumeration_engine_none" >Enumeración directa</system : String >
48
+ <system : String x : Key =" plugin_explorer_file_editor_path" >Ruta del editor</system : String >
49
+ <system : String x : Key =" plugin_explorer_folder_editor_path" >Ruta del editor de carpetas</system : String >
48
50
49
51
<system : String x : Key =" plugin_explorer_Content_Search_Engine" >Motor de búsqueda de contenido</system : String >
50
52
<system : String x : Key =" plugin_explorer_Directory_Recursive_Search_Engine" >Motor de búsqueda recursiva de directorio</system : String >
Original file line number Diff line number Diff line change 45
45
<system : String x : Key =" plugin_explorer_engine_everything" >Everything</system : String >
46
46
<system : String x : Key =" plugin_explorer_engine_windows_index" >Windows Index</system : String >
47
47
<system : String x : Key =" plugin_explorer_path_enumeration_engine_none" >Direct Enumeration</system : String >
48
+ <system : String x : Key =" plugin_explorer_file_editor_path" >Chemin de l'éditeur de fichiers</system : String >
49
+ <system : String x : Key =" plugin_explorer_folder_editor_path" >Chemin de l'éditeur de dossier</system : String >
48
50
49
51
<system : String x : Key =" plugin_explorer_Content_Search_Engine" >Content Search Engine</system : String >
50
52
<system : String x : Key =" plugin_explorer_Directory_Recursive_Search_Engine" >Directory Recursive Search Engine</system : String >
Original file line number Diff line number Diff line change 45
45
<system : String x : Key =" plugin_explorer_engine_everything" >Tutto</system : String >
46
46
<system : String x : Key =" plugin_explorer_engine_windows_index" >Windows Index</system : String >
47
47
<system : String x : Key =" plugin_explorer_path_enumeration_engine_none" >Direct Enumeration</system : String >
48
+ <system : String x : Key =" plugin_explorer_file_editor_path" >Percorso dell'editor di file</system : String >
49
+ <system : String x : Key =" plugin_explorer_folder_editor_path" >Percorso dell'editor delle cartelle</system : String >
48
50
49
51
<system : String x : Key =" plugin_explorer_Content_Search_Engine" >Content Search Engine</system : String >
50
52
<system : String x : Key =" plugin_explorer_Directory_Recursive_Search_Engine" >Directory Recursive Search Engine</system : String >
Original file line number Diff line number Diff line change 45
45
<system : String x : Key =" plugin_explorer_engine_everything" >Everything</system : String >
46
46
<system : String x : Key =" plugin_explorer_engine_windows_index" >Windows Index</system : String >
47
47
<system : String x : Key =" plugin_explorer_path_enumeration_engine_none" >Direct Enumeration</system : String >
48
+ <system : String x : Key =" plugin_explorer_file_editor_path" >ファイル エディターのパス</system : String >
49
+ <system : String x : Key =" plugin_explorer_folder_editor_path" >フォルダー エディターのパス</system : String >
48
50
49
51
<system : String x : Key =" plugin_explorer_Content_Search_Engine" >Content Search Engine</system : String >
50
52
<system : String x : Key =" plugin_explorer_Directory_Recursive_Search_Engine" >Directory Recursive Search Engine</system : String >
Original file line number Diff line number Diff line change 48
48
<system : String x : Key =" plugin_explorer_engine_everything" >Everything</system : String >
49
49
<system : String x : Key =" plugin_explorer_engine_windows_index" >윈도우 색인</system : String >
50
50
<system : String x : Key =" plugin_explorer_path_enumeration_engine_none" >Flow Launcher</system : String >
51
-
51
+ <system : String x : Key =" plugin_explorer_file_editor_path" >파일 편집기 경로</system : String >
52
+ <system : String x : Key =" plugin_explorer_folder_editor_path" >폴더 편집기 경로</system : String >
52
53
<system : String x : Key =" plugin_explorer_Content_Search_Engine" >내용 검색 엔진</system : String >
53
54
<system : String x : Key =" plugin_explorer_Directory_Recursive_Search_Engine" >경로 재귀 검색 엔진</system : String >
54
55
<system : String x : Key =" plugin_explorer_Index_Search_Engine" >색인 검색 엔진</system : String >
You can’t perform that action at this time.
0 commit comments