On Jan 19, 5:25 am, Roland Küffner <[email protected]> wrote:
> I'm not quite sure if I understood the wished behavior right, but how about > doing this with a simple clipping (which can easily get it's own keyboard > shortcut)? I didn't even think of using clippings -- my BBEdit skills have atrophied over the years. (I've been using another text editor which we shall refer to as "The One Whose Next Version Never Ships.") Thanks for this -- but it seems the #INDENT# placeholder doesn't actually insert a tag; it just makes it so the clipping text is indented to the current level. If I make the clipping file into: <return> #INDENT#<tab>#INSERTION# ...it will work as expected with one big caveat: it will always insert a hard tab character rather than respecting the auto-expand tab setting. However, this did point me in the right direction: I've created a very simple AppleScript which returns either a hard tab or a string of spaces equivalent to the tab width setting based on whether expand tabs it set, and called it from the clipping: #INDENT##script maketabs.scpt##INSERTION# ...so, thank you! -- You received this message because you are subscribed to the "BBEdit Talk" discussion group on Google Groups. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at <http://groups.google.com/group/bbedit?hl=en> If you have a feature request or would like to report a problem, please email "[email protected]" rather than posting to the group. Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
