Only show hidden files in certain directories

Solution 1:

Opening your project directory with a text editor such as TextMate (Great for RoR!), shows you all the files.

If not, it may be useful to add ".*|" at the beginning of the file pattern you will find in TextMate's Preferences > Advanced > File Pattern:

P.S. I'm not aware of any way to show invisible files only for a given directory. But i would rather not do it if it is possible. I prefer working with the terminal for this sort of things. It's even cooler with TextMate's Command line tool, type:

$ mate any_file_or_directory

...to open it in TextMate

Solution 2:

Undirectly related solutions welcome?

Well, I recently came across this tutorial which allows you to use the Shift-Cmd-Period shortcut that's already usable in open/save dialog boxes inside Finder as well. It does involve restarting Finder, but since all the windows are all restored it's relatively seamless.

Quite stupid that Finder doesn't have such functionality built in if the open/save dialogs do have such functionality, but ah well.

Solution 3:

you can write a shell script, eg with bash

shopt -s dotglob
for file in my_rails_directory1/.*  my_rails_directory2/.*
do
 echo $file
done 

Solution 4:

Does not do precisely what you want, but I use the hiddenfiles widget to toggle visibility. This affects all folders off course, but it's quick to use.