Does anyone know of a plugin for Eclipse to use \'favorite folders\' in a project ?
There are maybe 2 or 3 folders inside my project (of 1000+ folders) that I regularly
I would really recommend Mylyn (a task-focused interface) for this kind of workflow.
By defining the appropriate task context, you could switch to such tasks and see only the folders you need (no dragging involved) as opposed to see everything.
To add to VonC's answer:
Currently there are two main ways I have found to manually add certain files into the activated Mylyn task context when you activate a new task. This works well for me because I always have a prompt open or accessible at a keypress.
eclipse <file_to_add>
touch <file_to_add>
(either create a new file, or update timestamp of existing file)The first one will open the file you want to work on in Eclipse, and it will show the file in the task context. The second one forces Eclipse to see that the file was accessed, and it will add it to your task context.
To solve the problem of having to cd
into your most commonly used folders all the time, use bash's built in directory stack feature.
Create a script (preferably in your personal home bin) called sh.init
Add something like this to the file:
pushd ~/src/some/seldomly/used/path
pushd ~/src/some/less-seldomly/used/path
pushd ~/src/some/commonly/used/path
pushd ~/src/some/most-commonly/used/path
Make sure to chmod +x sh.init
. (I added this into a function in my .bashrc myself that does a couple other things, but a separate script is probably easiest.) Now run this script whenever you want to add these dirs into your directory stack, and end up in the last one. There is a good tutorial on how to use these functions here or in the bash man page ( Look for dirs under Shell Builtin Commands section). You will always be in the directory on the top of the stack. Here are some quick tips:
dirs
to display the stack ( will display on one line. Top = left, Bottom = right )dirs -v
to display the stack in multiple lines with numbering ( makes top / bottom order make more sense graphically )pushd
pushd +2
or pushd +3
respectively.popd
to pop a directory off the stack, and cd into the new top dir on stack
dirs +n
or dirs -n
to display the n'th dir from the top (left) or right (bottom) of stack.pushd <new_dir>
to push a new directory onto the stack (and cd into it)At this point, looks like https://stackoverflow.com/a/12365878/470838 is more relevant than this answer.
Note quite what you want, but Eclipse allows you to bookmark files. You could use this to bookmark a file in each directory and then use the Bookmarks view to move around from there.
Eclipse now allows to bookmark folders -- the corresponding bug is fixed.
When you select a folder in the tree, the add option might not appear in the context menu, but it does appear in the application menu at Edit -› Add Bookmark.
However, while the folder then is listed in the bookmarks view, nothing happens when it gets clicked. One has to right-click the bookmark and then select Show in... to get the actual folder focused in the navigator/explorer. IMHO it is better (i.e. more robust) than the workaround using file-bases bookmarks, but it still could be improved (e.g. without the context menu extra clicks to switch to a bookmarked folder).
This topic may be old, but I think this solution is good enough
Use "Working set" feature to group files/folders you need into a working set