1

I'm not an IDE user and I spend a lot of time going back and forth between finder windows opening files in quicklook just to look at a thing here and there. This gets awkward fast, specially as QL loses the spot I was reading at, and the file browser is not as attuned to this usage as that of an IDE file browser. Also, the QLStephen source code preview stops working from time to time.

I'm wondering, is there any lightweight alternative to browsing source files like this?A finder replacement, a terminal utility, or something like those old school image file browsers ala ACDSee but for text?

I'd be happy if the column view of the finder showed me a full pane scrollable preview of the text so I didn't have to open QL, but other desirable features would be the ability to set a project folder with a file tree in the sidebar, bookmarking folders/files, search across project folder, and dreaming big, the possibility to go to function definition. Been thinking to write something like it myself but I just keep thinking something like it must exist somewhere.

2

BBEdit is able to have multiple documents open at one time and then there is a left side sidebar you can easily change between documents. In the menu bar go to VIEW > Show Sidebar. It appears to keep your highlights and scrolling of each document. You can use BBEdit for free without paying for it as well but it will ask for you to pay for the first couple weeks. BBEdit has markers, grep find/replace, and multi-file search as well. Sounds like a lot of what you want.

1

The Firefox browser will let you navigate the filesystem and view text files. This will open a browser window starting at your home folder:

cd; open -a firefox . 
1

If the files you are using QL on have the same extension you can set a certain app to open those files. Then double-clicking the file will allow you to browse it.

If you right-click on a file of the type you are browsing and select 'get info' you can go to the bottom of the 'get info' window and select application to open the file with. Then under that click on open all files of that type with same app.

I selected the quickest editor on my machine (TextMate in my case) and use that to open the files. This gives me a simple and quick way to view text files. I use the same apps for text files with extensions of .txt, ,dat, .out, .py, .f90, etc. If I need a different app I can use the open with selection by right-clicking or by starting the app and opening file from new app.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .