![]() ![]() I think the comments explain everything reasonably well. ![]() By setting the sourceħ: # language to Log File, the Text Display will be set to Tail Mode.Ĩ: # This works for BBEdit 14.5 and later. Here’s my combination shell script/AppleScript: bash:ģ: # Get the absolute path to the file argument.Ħ: # Open the file in BBEdit and go to the end. Yesterday, Mark Gardner had a great idea:Īlready emailed asking for a bbedit -f or bbtail commandĪlthough I have a feeling Rich Siegel will soon have a bbtail command to go along with bbdiff and bbfind, I couldn’t wait. log extension are opened with their language set to Log File and Tail Mode on. You can also set a file’s language to Log File, which will turn Tail Mode on without any other action from you. To turn on Tail Mode, you can choose the View‣Text Display‣Tail Mode menu item or bring up the Text Options window and check the Tail Mode box. What I like about Tail Mode is that it works like tail -f but by doing so in a BBEdit window, all my ingrained habits for searching and copying text will work, which they don’t in Terminal or iTerm. ![]() It is this use of tail that gives Tail Mode its name. There’s also the old-school way of using the “follow” option to the tail command in a Terminal window: tail -f /var/log/system.log MacOS has the Console app for doing this, but I’ve never liked Console. Lots of processes send information (errors, connections, etc.) to log files, and when you’re debugging code, it’s often very useful to be able to see the log file update in real time. It’s a way of viewing a log file in a way that persistently updates as new text is added to the file. Next post Previous post BBEdit, Tail Mode, and bbtailĪ new version of BBEdit, 14.5, was released a couple of days ago, and the feature that caught my eye was Tail Mode. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |