If you add the text factory as a Text Filter then you can assign it a keyboard shortcut. Put it in ~/Library/Application Support/BBEdit/Text Filters/ and then you can run it from the Text > Text Filters menu or assign a keyboard shortcut in Settings... on the Menus & Shortcuts tab.
h/t Christopher Stone. [fletcher] > On May 22, 2023, at 8:24 AM, Mark Mayberry <[email protected]> wrote: > > Dear Kaveh, > > YES! Thank you! I tried the same procedure in Text Factory and it worked > PERFECTLY! Quick question: Is it possible to set up a shortcut keystroke in > BBEdit that (when pressed) will run my newly created TextFactory? > > Yours, > > Mark > > On 22 May 2023, at 10:20, Kaveh Bazargan wrote: > > Hi Mark > > I think Text Factory is indeed what you need. it is not based on keystrokes, > but BBEdit actions that are carried out one after another. Here is a glimpse > of one I made to convert VCF to CSV. I am using just regular expressions, but > you can use any BBEdit command. > > Regards > Kaveh > > > On Mon, 22 May 2023 at 16:07, Mark Mayberry <[email protected] > <mailto:[email protected]>> wrote: >> Dear Rich, >> >> Thanks! I have not yet explored “Text Factory” but will give it a whirl. >> Since we are talking about an internal BBEdit set of keystrokes, it might be >> better to stay “in house.” >> >> Yours, >> >> Mark >> >> On 22 May 2023, at 9:10, Rich Siegel wrote: >> >> > On 22 May 2023, at 10:04, Mark Mayberry wrote: >> > >> >> I am attempting to set up create a macro that would automate the process >> >> of >> >> cleaning up a block of text as I import it into BBEdit. I have >> >> successfully >> >> created a macro that selects the Text Menu in BBEdit to (1) Straighten >> >> Quotes, (2) Strip Trailing Whitespace, and (3) Normalize Line Endings. >> >> These steps are easy. >> >> [...] >> > >> > I don't know anything about Keyboard Maestro, but have you considered >> > using a Text Factory for this? >> > >> > Start with File => New => Text Factory and go from there. >> > >> > R. >> > >> > -- >> > This is the BBEdit Talk public discussion group. If you have a feature >> > request or need technical support, please email "[email protected] >> > <mailto:[email protected]>" rather than posting here. Follow @bbedit >> > on Twitter: <https://twitter.com/bbedit> >> > --- >> > You received this message because you are subscribed to the Google Groups >> > "BBEdit Talk" group. >> > To unsubscribe from this group and stop receiving emails from it, send an >> > email to [email protected] >> > <mailto:bbedit%[email protected]>. >> > To view this discussion on the web visit >> > https://groups.google.com/d/msgid/bbedit/1357698D-18C5-41AE-8029-46890A86EB02%40barebones.com. >> >> -- >> This is the BBEdit Talk public discussion group. If you have a feature >> request or need technical support, please email "[email protected] >> <mailto:[email protected]>" rather than posting here. Follow @bbedit on >> Twitter: <https://twitter.com/bbedit> >> --- >> You received this message because you are subscribed to the Google Groups >> "BBEdit Talk" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] >> <mailto:bbedit%[email protected]>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/bbedit/6EB9CEBD-AC78-46D0-BFDB-EA6598AC010D%40gmail.com. > > > -- > Kaveh Bazargan PhD > Director > River Valley Technologies <http://rivervalley.io/> ● Twitter > <https://twitter.com/rivervalley1000> ● LinkedIn > <https://www.linkedin.com/in/bazargankaveh/> ● ORCID > <https://orcid.org/0000-0002-1414-9098> ● @[email protected] > <https://mastodon.social/@kaveh1000> > Accelerating the Communication of Research > > <https://www.linkedin.com/posts/bazargankaveh_ismte-innovation-award-recipient-kaveh-bazargan-activity-7039348552526921728-XAEB/?utm_source=share&utm_medium=member_desktop> > > <https://rivervalley.io/gigabyte-wins-the-alpsp-scholarly-publishing-innovation-award-using-river-valleys-publishing-technology/> > -- > This is the BBEdit Talk public discussion group. If you have a feature > request or need technical support, please email "[email protected]" > rather than posting here. Follow @bbedit on Twitter: > <https://twitter.com/bbedit> > --- > You received this message because you are subscribed to the Google Groups > "BBEdit Talk" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] > <mailto:[email protected]>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/bbedit/CAJ2R9pjwVphxL%2BhUOy_bpqP5umf9RhLsJ2XEidhkTc1FyZeUXw%40mail.gmail.com > > <https://groups.google.com/d/msgid/bbedit/CAJ2R9pjwVphxL%2BhUOy_bpqP5umf9RhLsJ2XEidhkTc1FyZeUXw%40mail.gmail.com?utm_medium=email&utm_source=footer>. > > -- > This is the BBEdit Talk public discussion group. If you have a feature > request or need technical support, please email "[email protected]" > rather than posting here. Follow @bbedit on Twitter: > <https://twitter.com/bbedit> > --- > You received this message because you are subscribed to the Google Groups > "BBEdit Talk" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] > <mailto:[email protected]>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/bbedit/98AF30B4-7C84-422E-9E98-72D1C2473942%40gmail.com > > <https://groups.google.com/d/msgid/bbedit/98AF30B4-7C84-422E-9E98-72D1C2473942%40gmail.com?utm_medium=email&utm_source=footer>. -- This is the BBEdit Talk public discussion group. If you have a feature request or need technical support, please email "[email protected]" rather than posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit> --- You received this message because you are subscribed to the Google Groups "BBEdit Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/bbedit/575E27EB-71CE-49C2-B5CB-F6C3109EE468%40cumuli.com.
