forked from qt-creator/qt-creator
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:
@@ -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 @@
|
|||||||
<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 @@
|
|||||||
<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
|
||||||
|
Reference in New Issue
Block a user