Note that this requires an additional copy of the Clipboard when the application imports the text, and for very large pastes, there may be a noticeable delay while the text gets precomposed. (Despite the name, the precomposition is done when TextWrangler imports the Clipboard from other applications, not when the paste is actually done.) This is not a general need, but if you run into it often enough, you can tell TextWrangler to combine the characters for you:ĭefaults write PrecomposeUnicodeWhenPasting -bool YES If you find that you frequently need to bring in text which contains combining Unicode characters (as are frequently found in PDFs generated on other platforms, for example), it can be desirable to preprocess the combining characters into one composed character where possible. If you wish to turn this off, there’s an expert pref:ĭefaults write FlashBalancePointsWhenNavigating -bool NO When you use the right-arrow key to navigate over a closing delimiter (right paren/brace/bracket/curly quote), the opening delimiter will be briefly highlighted. Note that this preference can be set per-language in the usual fashion, by appending the language’s name to the preference key:ĭefaults write AllowShiftRightToIndentWhitespaceOnlyLines_C++ -bool YES If you would prefer to indent every line, regardless of its whitespace-only nature, you can do so:ĭefaults write AllowShiftRightToIndentWhitespaceOnlyLines -bool YES If you would prefer that TextWrangler insert the line-comment delimiter at the insertion point instead:ĭefaults write CommentWholeLineWithInsertionPoint -bool NOīy default, the “Shift Right” command on the Text menu will not add indentation to lines that are empty or consist entirely of white space. When using the Un/Comment command, if nothing is selected, TextWrangler will use the line comment delimiter to comment (or uncomment) the entire line. If you would like for it to do so:ĭefaults write BalanceIncludesDelimiters -bool YES Use -int 0 to suppress the limit altogether.īy default, the “Balance” command (or double-clicking on a delimiter to balance) does not include the delimiters in the resulting selection. This may be adjusted with an expert preference:ĭefaults write Editor_SpellCheckLengthLimit -int NN Since “Find All Misspelled Words” is pretty much pointless on files over a certain size, the maximum amount of text checked by this command is limited to 1M (1024 squared) characters. # Setting it to zero disables the limit check entirely. The factory default is 16M characters, but you may change this limit as desired using the following expert preference:ĭefaults write Editor_AutoWordCountSizeThreshold -int 16777216 This may be disabled by an expert preference if desired:ĭefaults write Editor_DeleteIndentationWhitespaceToTabStop -bool NOĪutomatic word counting is disabled for documents over a set size threshold, in order to avoid needless delays when working on very large documents. When you backspace from the insertion point, TextWrangler will delete a tab stop’s worth of spaces if there are only spaces (and tabs) between the insertion point and the start of the line on which you’re editing. If you prefer the old behavior, you can do the following from the command line:ĭefaults write Editor_ControlArrowCamelCase -bool NOĭefaults write Editor_ControlArrowHScroll -bool YES Note that this use of Control-left-arrow and Control-right-arrow replaces the pre-8.5 behavior of using these key combinations to scroll horizontally. TextWrangler supports “camel case” navigation: press Control-left-arrow or Control-right-arrow to jump to the next (or previous) transition from lower-case to upper-case characters (or a word boundary, whichever comes first). Most changes will not have any immediate visible effect, but will instead take effect the next time you perform a relevant action, or, at the latest, after quitting and restarting TextWrangler.Īnother note: Although they may wrap for display, each of the defaults write commands listed here is intended to be entered on a single line in the terminal. Note: Adjusting the settings described here involves using the Unix command line (in the Terminal or a suitable replacement). In fact, some of these settings were in the Preferences window, and have been removed in order to simplify the interface in such cases, any changes you made previously will be honored, even though the UI in the Preferences window is gone. There are a number of behaviors in TextWrangler for which there are no UI controls in the Preferences window this is typically because the settings are so obscure that placing them in the Preferences window would just make it complicated.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |