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 <eike.ziller@qt.io>
This commit is contained in:
Robert Loehning
2016-06-29 18:18:20 +02:00
parent e69144d1da
commit 23b3bb5814
3 changed files with 3 additions and 3 deletions

View File

@@ -30,7 +30,7 @@
<description>Opens the current file in Notepad</description>
<displayname>Edit with Notepad</displayname>
<category>Text</category>
<executable modifiesdocument="yes">
<executable>
<path>notepad</path>
<arguments>"%{CurrentDocument:FilePath}"</arguments>
<workingdirectory>%{CurrentDocument:Path}</workingdirectory>

View File

@@ -30,7 +30,7 @@
<description>Opens the current file in vi</description>
<displayname>Edit with vi</displayname>
<category>Text</category>
<executable modifiesdocument="yes">
<executable>
<path>xterm</path>
<arguments>-geom %{CurrentDocument:ColumnCount}x%{CurrentDocument:RowCount}+%{CurrentDocument:XPos}+%{CurrentDocument:YPos} -e vi "%{CurrentDocument:FilePath}" +%{CurrentDocument:Row}</arguments>
<workingdirectory>%{CurrentDocument:Path}</workingdirectory>

View File

@@ -30,7 +30,7 @@
<description>Opens the current file in vi</description>
<displayname>Edit with vi</displayname>
<category>Text</category>
<executable modifiesdocument="yes">
<executable>
<path>osascript</path>
<input>
--Terminal opens a window by default when it is not running, so check