[ANN] ExternalTools for *nix - edit w/ $EDITOR and open pictures
I had enough to switch between windows to work on external files. So, here is ExternalTools It adds some commands to the File Browser, allowing one to edit in the $EDITOR (for me this is gvim) and another thing for opening the file externally through xdg-open (which kind of opens about anything). Basically, one can extend this to whatever is needed. The only thing is that FileServices initialize needs to be called when a new service is added if you create your own. This is Unix only and requires OSProcess to be loaded (use the ConfigurationBrowser). Gofer it url: 'http://www.smalltalkhub.com/mc/philippeback/HOExtras/main'; package: 'HighOctane-Tools'; load. Screenshot in attach. Doc here: https://gist.github.com/philippeback/8e8f8c6685bebf47f53f Phil
This is wonderful. I loved it. Many, many thanks! -- View this message in context: http://forum.world.st/ANN-ExternalTools-for-nix-edit-w-EDITOR-and-open-pictu... Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.
On 19 Sep 2014, at 21:02, phil@highoctane.be wrote:
I had enough to switch between windows to work on external files.
So, here is ExternalTools
It adds some commands to the File Browser, allowing one to edit in the $EDITOR (for me this is gvim) and another thing for opening the file externally through xdg-open (which kind of opens about anything).
Basically, one can extend this to whatever is needed.
The only thing is that FileServices initialize needs to be called when a new service is added if you create your own.
This is Unix only and requires OSProcess to be loaded (use the ConfigurationBrowser).
Great, does it work on Mac OS X ? I guess it should be possible with open and open -e.
Gofer it url: 'http://www.smalltalkhub.com/mc/philippeback/HOExtras/main'; package: 'HighOctane-Tools'; load.
Screenshot in attach.
Doc here: https://gist.github.com/philippeback/8e8f8c6685bebf47f53f
Phil
<ExternalTools.png>
Le 20 sept. 2014 11:21, "Sven Van Caekenberghe" <sven@stfx.eu> a écrit :
On 19 Sep 2014, at 21:02, phil@highoctane.be wrote:
I had enough to switch between windows to work on external files.
So, here is ExternalTools
It adds some commands to the File Browser, allowing one to edit in the
$EDITOR (for me this is gvim) and another thing for opening the file externally through xdg-open (which kind of opens about anything).
Basically, one can extend this to whatever is needed.
The only thing is that FileServices initialize needs to be called when
a new service is added if you create your own.
This is Unix only and requires OSProcess to be loaded (use the
ConfigurationBrowser).
Great, does it work on Mac OS X ? I guess it should be possible with open and open -e.
Yes, that is the thing to do. As I do some Pharo on my Mac too, I'll look into that.
Gofer it url: 'http://www.smalltalkhub.com/mc/philippeback/HOExtras/main'; package: 'HighOctane-Tools'; load.
Screenshot in attach.
Doc here: https://gist.github.com/philippeback/8e8f8c6685bebf47f53f
Phil
<ExternalTools.png>
ideally the editor would be pharo itself, but alas it not there yet, maybe one day. Great job. File Browser is actually quite good and your enhancement definitely makes it much more useful. On Sat, Sep 20, 2014 at 12:45 PM, phil@highoctane.be <phil@highoctane.be> wrote:
Le 20 sept. 2014 11:21, "Sven Van Caekenberghe" <sven@stfx.eu> a écrit :
On 19 Sep 2014, at 21:02, phil@highoctane.be wrote:
I had enough to switch between windows to work on external files.
So, here is ExternalTools
It adds some commands to the File Browser, allowing one to edit in the
$EDITOR (for me this is gvim) and another thing for opening the file externally through xdg-open (which kind of opens about anything).
Basically, one can extend this to whatever is needed.
The only thing is that FileServices initialize needs to be called when
a new service is added if you create your own.
This is Unix only and requires OSProcess to be loaded (use the
ConfigurationBrowser).
Great, does it work on Mac OS X ? I guess it should be possible with open and open -e.
Yes, that is the thing to do. As I do some Pharo on my Mac too, I'll look into that.
Gofer it url: 'http://www.smalltalkhub.com/mc/philippeback/HOExtras/main '; package: 'HighOctane-Tools'; load.
Screenshot in attach.
Doc here: https://gist.github.com/philippeback/8e8f8c6685bebf47f53f
Phil
<ExternalTools.png>
simple and powerful That was a good one Phil! Thanks for sharing sebastian o/
On 19/09/2014, at 16:02, "phil@highoctane.be" <phil@highoctane.be> wrote:
I had enough to switch between windows to work on external files.
So, here is ExternalTools
It adds some commands to the File Browser, allowing one to edit in the $EDITOR (for me this is gvim) and another thing for opening the file externally through xdg-open (which kind of opens about anything).
Basically, one can extend this to whatever is needed.
The only thing is that FileServices initialize needs to be called when a new service is added if you create your own.
This is Unix only and requires OSProcess to be loaded (use the ConfigurationBrowser).
Gofer it url: 'http://www.smalltalkhub.com/mc/philippeback/HOExtras/main'; package: 'HighOctane-Tools'; load.
Screenshot in attach.
Doc here: https://gist.github.com/philippeback/8e8f8c6685bebf47f53f
Phil
<ExternalTools.png>
But if you open a file in an external application youâll still be switching windows, namely between pharo and the external application⦠What am I missing? Cheers, Max On 19.09.2014, at 21:02, phil@highoctane.be wrote:
I had enough to switch between windows to work on external files.
So, here is ExternalTools
It adds some commands to the File Browser, allowing one to edit in the $EDITOR (for me this is gvim) and another thing for opening the file externally through xdg-open (which kind of opens about anything).
Basically, one can extend this to whatever is needed.
The only thing is that FileServices initialize needs to be called when a new service is added if you create your own.
This is Unix only and requires OSProcess to be loaded (use the ConfigurationBrowser).
Gofer it url: 'http://www.smalltalkhub.com/mc/philippeback/HOExtras/main'; package: 'HighOctane-Tools'; load.
Screenshot in attach.
Doc here: https://gist.github.com/philippeback/8e8f8c6685bebf47f53f
Phil
<ExternalTools.png>
On Sep 21, 2014, at 10:53 AM, Max Leske <maxleske@gmail.com> wrote:
But if you open a file in an external application youâll still be switching windows, namely between pharo and the external application⦠What am I missing?
Cheers, Max
I particularly donât see switching windows as a problem. I love switching windows. Specially if they are native windows. All is in its right powerful context (instead of a messy thing with cheap user experience).
Le 21 sept. 2014 15:53, "Max Leske" <maxleske@gmail.com> a écrit :
But if you open a file in an external application youâll still be
switching windows, namely between pharo and the external application⦠What am I missing?
I guess you aren't dealing with css, js, json, html, jpg, png, sh files all day long in web apps. St code in a window and file browser in another inside pharo and external files in other windows on the second screen with web browser on the third. Phil
Cheers, Max
On 19.09.2014, at 21:02, phil@highoctane.be wrote:
I had enough to switch between windows to work on external files.
So, here is ExternalTools
It adds some commands to the File Browser, allowing one to edit in the $EDITOR (for me this is gvim) and another thing for opening the file externally through xdg-open (which kind of opens about anything).
Basically, one can extend this to whatever is needed.
The only thing is that FileServices initialize needs to be called when a new service is added if you create your own.
This is Unix only and requires OSProcess to be loaded (use the ConfigurationBrowser).
Gofer it url: 'http://www.smalltalkhub.com/mc/philippeback/HOExtras/main'; package: 'HighOctane-Tools'; load.
Screenshot in attach.
Doc here: https://gist.github.com/philippeback/8e8f8c6685bebf47f53f
Phil
<ExternalTools.png>
On 21.09.2014, at 17:17, phil@highoctane.be wrote:
Le 21 sept. 2014 15:53, "Max Leske" <maxleske@gmail.com> a écrit :
But if you open a file in an external application youâll still be switching windows, namely between pharo and the external application⦠What am I missing?
I guess you aren't dealing with css, js, json, html, jpg, png, sh files all day long in web apps.
Actuall, thatâs exactly what I do, every day :) I guess I use the Mac OS Finder to accomplish more or less the same thing.
St code in a window and file browser in another inside pharo and external files in other windows on the second screen with web browser on the third.
Phil
Cheers, Max
On 19.09.2014, at 21:02, phil@highoctane.be wrote:
I had enough to switch between windows to work on external files.
So, here is ExternalTools
It adds some commands to the File Browser, allowing one to edit in the $EDITOR (for me this is gvim) and another thing for opening the file externally through xdg-open (which kind of opens about anything).
Basically, one can extend this to whatever is needed.
The only thing is that FileServices initialize needs to be called when a new service is added if you create your own.
This is Unix only and requires OSProcess to be loaded (use the ConfigurationBrowser).
Gofer it url: 'http://www.smalltalkhub.com/mc/philippeback/HOExtras/main'; package: 'HighOctane-Tools'; load.
Screenshot in attach.
Doc here: https://gist.github.com/philippeback/8e8f8c6685bebf47f53f
Phil
<ExternalTools.png>
participants (6)
-
kilon alios -
kmo -
Max Leske -
phil@highoctane.be -
Sebastian Sastre -
Sven Van Caekenberghe