开发者

Is there any Mac text editor with tail or watch files change feature?

Ideally I wanted to use this in TextMate but I didn't find any feature besides the Show Web Preview which is nice for the fact I can set the interval to update the page, but definitely doesn't work for watching any file and also apply syntax highlighting or any format.

One neat example of what I wanted to achieve is to simulate exactly the same behavior as CoffeScript Try Now feature where you can type in one side and see what the file would look like in javascript.

So ideally I would open my .coffee file and then run coffee --watch on terminal which will track any file change for that specific file, so I could just pop another window inside my text editor which will just keep updating the coffeescript .js generated file.

like this, where the window on the left shows the current file and the window on the right shows the file being watched with specific interval.

Is there any Mac text editor with tail or watch files change feature?

I am not sure if I was clear enought, if not, please just let me know.. but basically I just want to see in real time what happens to my files after run a specific script but with syntax highlighting and anything else possible.

I am just testing this kaleidoscope app, it is reall开发者_高级运维y nice the way the visualization works, no editing is possible neither syntax highlighting features though but it is really good, so it makes me think that something like this would be really nice:

Is there any Mac text editor with tail or watch files change feature?

cheers


Emacs can do both of these things (and you're probably better off running it as a Cocoa app).

ediff works similarly to Kaleidoscope (minus the diagonal lines connecting the two revisions) and does let you edit the files without disturbing the diff process. By default you get the versions above one another but you can press | to toggle to side-by-side and m to expand to the full screen width (unfortunately this doesn't work properly with multiple monitors, at least in the version of Emacs I'm using.)

Is there any Mac text editor with tail or watch files change feature?

To tail/auto-revert things, there's auto-revert-mode and auto-revert-tail-mode built into Emacs.

emacswiki.org is pretty good if you're trying to figure out how to do something in Emacs, as is (duh) Stack Overflow. Mastering Emacs is a relatively new blog which has some great articles. There's also M-x all-things-emacs which links to some useful screencasts.


You can open the log file in OSX's Console log viewer utility that is used to monitor system logs. Simple as that. It will not show you diff's but it does emulate the tail -f functionality.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜