Easy Shell 1.4.1 plugin for Eclipse
-----------------------------------
This plugin allows to open a shell window or file manager from the
popup menu in the navigation tree or editor view. The current
directory of the opened shell is the directory which was selected
with the popup menu. Additionally it is possible to run selected
file in the shell and copy file or directory path. Multiple
selections are also supported.
EasyShell does not support virtual folders, because they are not
present in the file system!
The plugin is platform-independent in principal. It just launches
a (configurable) system command to open the shell. The following
platform and shell combinations are supported as selections
available from the drop-down-list in the preferences page:
Windows:
- DOS-Shell / Explorer
- PowerShell / Explorer (check path of PowerShell executable!)
- Cygwin (Bash) / Explorer (check path of Cygwin-bash executable!)
http://cygwin.com
- Console / Explorer
https://sourceforge.net/projects/console
- DOS-Shell / TotalCommander
http://www.ghisler.com
Unix / Linux:
- KDE Konsole / Konqueror and Dolphin
- Gnome Terminal / Nautilus
- MAC OS X Terminal / Finder
- CDE Xterm / Dtfile (not tested!)
Other:
- Default / Unknown (can be defined for all systems supported by Java)
But you can configure any shell or command you like as long as you
can figure out how to run a command to open the shell with given
parameters. The following substitution variables are available
for building the command:
{0} = The drive letter (only Windows, not used on other platforms)
{1} = The selected directory path
{2} = The selected file or directory path
{3} = The selected file name
{4} = The project name of selected directory or path (for external files it's "Easy Shell")
{5} = The line separator
Option "Enable string tokenizer" with values "Yes, No" and default value "Yes".
The whole command line string will be splitted (tokenized) to single strings before expansion
of parameters {0} - {4} and passing to command line. With this solution there is no need to
surround parameters {0} - {4} with quotes when space character is possible between command
line option and parameter, e.g.: /D {1}. Otherwise maybe quotes are still needed,
e.g.: --working-directory="{1}".
Option "Add quotes to {1}, {2}, {3}*" with values "No, Single, Double, Automatic" and default
value "No". If changed to other values, parameters will be eclosed with quotes.
ATTENTION: use it carefully with "string tokenizer" and remove quotes from commands.
Option "Enable debug output" with values "Yes, No" and default value "No".
If changed to "Yes", debug messages will be printed to error console.
Installation:
-------------
a) Extract zip file to "eclipse\dropin" folder and restart.
OR
b) Use update site: http://pluginbox.sourceforge.net
-------------------------------
Easy Shell 1.4.1 Release Note
-------------------------------
by anb0s at 2013-04-01
Changes:
--------
! fixed: Mac OS X defaults are wrong (Thanks to Mark Phippard)
https://sourceforge.net/p/pluginbox/bugs/9/
! fixed: [1.4.0.1] bug: need to escape spaces when invoking nautilus
https://sourceforge.net/p/pluginbox/bugs/18/
! ATTENTION: added new option "string tokenizer" and set it to Yes.
Your self defined presets with usage of quotes may not work anymore.
Please change this option to No or read how to fix:
! used solution from Mark Phippard
! the whole command line string will be splitted (tokenized) to single strings
before expansion of parameters {0} - {4} and passing to command line
! with this solution there is no need to surround parameters {0} - {4} with
quotes when space character is possible between command line option and parameter,
e.g.: /D {1}
! otherwise maybe quotes are still needed, e.g.: --working-directory="{1}"
! PLEASE check your presets with debug output (error console)!
! changed: removed not needed quotes from all presets, because "string tokenizer" enabled
! changed: Run command for "Windows Console / Explorer"
! changed: Explore command for "Windows DOS-Shell / TotalCommander"
Tested with Windows 7 x64 (Cmd, PowerShell 1.0, Cygwin-bash, Console 2.0, TotalCommander 8.01)
and Linux (KDE / Kubuntu 12.04, Gnome / Ubuntu 12.04)
Reviews
Fix for spaces in folder and file names for Linux and Mac OS X
Please use v1.4.1
A great utility
One of my default tools. Thanks Andre.
Works with Eclipse 4.2 (Juno)
I've just installed EasyShell in Eclipse 4.2 (Juno) and it works well. The specifications say that this extension works with Eclipse versions 3.2-3.7, but it actually is compatible with later versions, too.
Keep in mind that when using with Mac OS X, some of the shell commands need to be changed from the defaults. For example:
In most times, it works well
In most times, it works well in Juno, but sometimes, the sub menu of Easy Shell in the context menu is missing, while in Helios, it never happens. It seems to be a compatibility issue between current version of EasyShell and Juno.
error log
Thanks for reporting. Please provide Moore information. May be some error log. Try New Version 1.4.0
Linux - Wrong folder when opening a terminal
I've created a bug report:
https://sourceforge.net/tracker/?func=detail&aid=3545857&group_id=99802&...
If the project's root folder contains spaces EasyShell fail to open a shell in the right folder.
For instance, if the Project's root folder is, say, "My Project - Core" and I right click for instance "My Project - Core/java/net", select EasyShell->Open, in Linux opens a terminal in ~/Documents
Thanks for this usefull plugin.
Diego.
Fix for spaces in folder and file names
Please use v1.4.1
spaces in names
Please answer about the proposed fix i you bug request, so i can release it with next version. Thanks!
v1.4.0
Should be fixed with v1.4.0. http://sourceforge.net/p/pluginbox/bugs/13/
Nice plugin but a boring point
The plugin is nice but the position of the menu item in the context menu could be better, mainly for the outline, I am used to have the "Run as" menu as the first item and now it's "Easy Shell".
v1.4.0
Should be fixed with v1.4.0. See issue:http://sourceforge.net/p/pluginbox/bugs/15/
Mac OS X
Thanks for the report.
I've created bug request:
https://sourceforge.net/tracker/index.php?func=detail&aid=3419791&group_...
I cannot test it with Mac OS X and need help from users. Please provide info how to open shell or run inside shell.
Good, but Mac OS X defaults are wrong
I like this extension a lot, but the defaults for Mac OS X are wrong. I've not worked out the proper commands for the two shell commands, but the others should be:
Help
Thanks for the report.
I've created bug request:
https://sourceforge.net/tracker/index.php?func=detail&aid=3419791&group_...
I cannot test it with Mac OS X and need help from users. Please provide info how to open shell or run inside shell.
osx terminal command
I'm trying to find out the right command to open a terminal with osx.
The link for the bug request is not working. Sourceforge report an error trying to open the page.
The correct command to open a terminal form a terminal in Osx and make it change the directory is:
osascript -e 'tell application "Terminal" to do script with command "cd {path}"' where {path} should be substituted with the right path from one of those provided with EasyShell ({1}, {2},...).
At the moment this is not working. I hope someone else could give tips to make it working.
https://sourceforge.net/p/pluginbox/bugs/9/
Thanks. Please use thi link.
So useful
Really wondering why this functionnality is not part of the official Eclipse platform!