Commit 23b3bb58 authored by Robert Loehning's avatar Robert Loehning

Ask before reloading file changed with external editor

To be consistent with other ways of starting external editors.

Change-Id: Ia6f8d2179076482999ef527353feb91a49e1a2d9
Reviewed-by: Eike Ziller's avatarEike Ziller <eike.ziller@qt.io>
parent e69144d1
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
<description>Opens the current file in Notepad</description> <description>Opens the current file in Notepad</description>
<displayname>Edit with Notepad</displayname> <displayname>Edit with Notepad</displayname>
<category>Text</category> <category>Text</category>
<executable modifiesdocument="yes"> <executable>
<path>notepad</path> <path>notepad</path>
<arguments>"%{CurrentDocument:FilePath}"</arguments> <arguments>"%{CurrentDocument:FilePath}"</arguments>
<workingdirectory>%{CurrentDocument:Path}</workingdirectory> <workingdirectory>%{CurrentDocument:Path}</workingdirectory>
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
<description>Opens the current file in vi</description> <description>Opens the current file in vi</description>
<displayname>Edit with vi</displayname> <displayname>Edit with vi</displayname>
<category>Text</category> <category>Text</category>
<executable modifiesdocument="yes"> <executable>
<path>xterm</path> <path>xterm</path>
<arguments>-geom %{CurrentDocument:ColumnCount}x%{CurrentDocument:RowCount}+%{CurrentDocument:XPos}+%{CurrentDocument:YPos} -e vi "%{CurrentDocument:FilePath}" +%{CurrentDocument:Row}</arguments> <arguments>-geom %{CurrentDocument:ColumnCount}x%{CurrentDocument:RowCount}+%{CurrentDocument:XPos}+%{CurrentDocument:YPos} -e vi "%{CurrentDocument:FilePath}" +%{CurrentDocument:Row}</arguments>
<workingdirectory>%{CurrentDocument:Path}</workingdirectory> <workingdirectory>%{CurrentDocument:Path}</workingdirectory>
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
<description>Opens the current file in vi</description> <description>Opens the current file in vi</description>
<displayname>Edit with vi</displayname> <displayname>Edit with vi</displayname>
<category>Text</category> <category>Text</category>
<executable modifiesdocument="yes"> <executable>
<path>osascript</path> <path>osascript</path>
<input> <input>
--Terminal opens a window by default when it is not running, so check --Terminal opens a window by default when it is not running, so check
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment