tayalan.blogg.se

Bbedit for mac
Bbedit for mac





  1. #Bbedit for mac update#
  2. #Bbedit for mac code#
  3. #Bbedit for mac mac#

Scripts are in the scripts menu (or palette), and text filters are in the Text▸Apply Text Filter menu (or palette). One of the things I don’t like about BBEdit’s package system is that scripts and text filters from the same package don’t appear together. Preview Post opens a local preview in Safari so I can see how the post will look when it’s published.

bbedit for mac

#Bbedit for mac update#

  • Update Header cleans up the post’s metadata, which is in the top 4–5 lines of the document.
  • Normalize Table adds spaces to clean up a messy Markdown table.
  • Tabs to Markdown Table takes selected text that I’ve copied and pasted from a spreadsheet and formats it as a Markdown table.
  • When I paste a script into a blog post, it numbers the lines and formats them.

    #Bbedit for mac code#

    Line Number Code does pretty much what you’d expect.These are shell, Python, or Perl scripts that work on either the selected text or the entire document. Many of the scripts in the Blogging package are Text Filters. Table from Numbers gets the contents of the frontmost Numbers spreadsheet, converts it into a Markdown table, and inserts it.Image Tag from Clipboard inserts an tag at the cursor position, filling in the src, alt, and title attributes from the clipboard.It pulls out the Markdown source of my most recent post. Source of Last Post is similar to Source of Front Page, but doesn’t use Safari.This is mainly for when readers find an error in a post that I have to correct. It goes to the server, grabs the Markdown source of that page, and opens a new BBEdit document with that text in it. Source of Front Page assumes the frontmost page in Safari is a page here on ANIAT.Footnote inserts a Markdown footnote at the current cursor position and repositions the cursor for me to write the footnote text.This should be called Choose Safari Link. It presents a list of all the Safari tabs and asks me to choose one. Safari Choose Link turns the currently selected test into a Markdown link to one of the tabs in Safari.I should change the name of this one to Choose Old Link. It presents a list of all the links in the current document and asks me to choose one. Old Link turns the currently selected text into a Markdown link to a web page that I’ve already linked to.It doesn’t activate Safari or force me to copy the URL-all the Safari work happens in the background. Safari Front Link turns the currently selected text into a Markdown link to Safari’s frontmost web page.These all add text to the document I’m working on. The AppleScripts are all accessible from the Scripts menu (the one that looks like a scroll). What I have now is a new and improved Blogging package that combines scripts written in Bash, Python, Perl, and AppleScript. Over the past couple of weeks, I resurrected those scripts and added to them, stealing several ideas I used in Drafts and Shortcuts.

    bbedit for mac

    Back when I was blogging regularly from BBEdit, I had written several scripts to make blogging easier.

    bbedit for mac bbedit for mac

    It starts with BBEdit, the Mac-assed text editor that has lots of great editing tools built in and, at least as important, allows you to build your own tools to extend it.

    #Bbedit for mac mac#

    I’m going to write soon about how and why I decided to move back to the Mac for most of my work (the M1 is a big part of the story, of course, but not the whole story), but for now I want to go over how I’ve organized the tools I use for writing and publishing this blog from a Mac. I was wondering if I’d ever use a Mac notebook again, as Apple was in the middle of a five-year period in which it seemed determined to ruin its most popular line of computers.My older son’s laptop had crapped out on him, and I gave him my MacBook Air as a stopgap until we got him a new computer.I was trying to learn the best ways to use an iPad, and forcing myself to use it for blogging seemed like a good way to learn.1 I had switched to blogging from an iPad through a combination of Drafts and Shortcuts for a few reasons: Next post Previous post Blogging from BBEdit againĪ few days ago, I mentioned on Twitter that my last post was the first one I’ve written on and published from a Mac in over three years.







    Bbedit for mac