SUPPORT : TextWrangler : Archived Release Notes : TextWrangler 1.5.1 Release Notes
TextWrangler 1.5.1 Release Notes
This page documents all feature enhancements and bug fixes included in the TextWrangler 1.5.1 release. For complete details on previous releases, please see the release notes archive.
For information on using TextWrangler, please refer to the online Help, or the PDF user manual (available by selecting "TextWrangler Manual" from the Help menu).
Additions
The following features and enhancements are new for TextWrangler 1.5.1:
-
The "Add/Remove Line Numbers" plug-in now has an option to right-justify the line numbers.
-
In the Zap Gremlins dialog, the text field for the "Replace With" now accepts the same escape sequences for characters as the Find dialog does when doing literal searches. Specifically, the following escapes can be used:
\t tab (ASCII 9) \n line feed (ASCII 10) \f form feed (ASCII 12) \r carriage return (ASCII 13) \\ backslash \xNN hex escape, where "NN" are two hex digits (0-9, A-F)
Note that in some cases this could be counterproductive, since the hex escapes (\xNN) and some of the single-character escapes can themselves be used to generate unprintable characters.
Zap Gremlins runs a bit faster, and displays measured (vs. indefinite) progress while doing so (in the rare case that the progress takes a measurable amount of time).
Add/Remove Line Numbers will now optionally pad the numbers so the original text stays justified.
The file popup in the Find Differences dialog now shows each file's path, which is useful when selecting from among multiple open files with the same name.
-
There's a new menu command: "Clear Undo History" (factory default binding is Cmd-Control-Z). Hold down the Control key while pulling down the Edit menu to see it. This command will clear (after confirmation) the undo history for the current editing window. You can also script this operation via the "clear undo history" scripting command (see the scripting dictionary for details).
Clear Undo History is useful if you've performed a lot of operations on a file and wish to recover memory stored by Undo state information (in the rare event that should become necessary). The primary use of this is probably going to be via the scripting interface, but you may find cause to use the menu command on occasion.
If you hit Return while in the Password field of an FTP browser, TextWrangler will take that as a request to connect, provided that you aren't already connected and the host name and user name fields are populated.
Added an "Open Scripts Folder" command to the Scripts menu. It does pretty much what you'd think.
FTP browser windows now have check boxes so that you can set Passive FTP on a per-window basis.
TextWrangler now supports FTP server discovery via Rendezvous when running on Mac OS X (10.2 or later now required). In the FTP dialogs, there's a new popup: "Rendezvous". Choosing a server's name will enter its network host name into the "Host" field.
The "Prefix/Suffix Lines" plug-in has been revised, and is somewhat easier to use (and can insert/delete both a prefix and a suffix at the same time).
When using the "add prefix", "add suffix", "remove prefix", or "remove suffix" scripting commands, the string direct parameter is now required (rather than being optional and falling back to the previous settings, which was the unpredictable behavior of previous versions).
Added an option to the Hex Dump tool to hex-dump the contents of the front window.
-
You can now control whether a window is collapsed (minimized to the dock) or not via applescript.
tell application "BBEdit" tell window "untitled text 3" set flag to not collapsed set collapsed to flag if not collapsed then select end tell end tell -
when Auto-Indent is in use, TextWrangler will now adjust whitespace immediately following the carriage return as follows. Consider the following text:
void foo();
If you placed the insertion point after "void" and hit return, previous versions of TextWrangler would leave you with:
void foo();
Now, you'll get:
void foo();
In other words, any whitespace following the newly inserted line break is deleted. (Note that this behavior is similar to that of the old MPW shell.)
You can now use Command-period to abort grep searches (in those rare instances where the search is complicated enough to require a noticeable amount of time).
Fixes
The following problems have been corrected in TextWrangler 1.5.1:
Fixed package bug which caused the Apple Script Editor to claim that TextWrangler wasn't scriptable. Bah.
Fixed rare crash that would occur after bringing the application to the front if a window was closed by a script run from the Scripts palette and and the application was switched out before script execution was finished.
Fixed a glitch seen when deleting from a list and a partial line is visible at the bottom of the list rectangle. The rest of the partial line is now drawn after it is scrolled up.
Fixed bug in which the "Numbers Sort by Value" option in Sort Lines and Process Duplicates didn't work correctly in some circumstances.
Worked around bug in the OS which broke Grep pattern popups in the Sort Lines, Process Lines Containing, and Process Duplicate Lines plug-ins.
Using the open for access scripting addition inside a tell TextWrangler block no longer fails when the target file doesn't yet exist.
Windows-J, aka "Japanese (Windows, DOS)" in the "Read As:" popup, is Shift-JIS with extensions. The Text Encoding Converter appears to handle Windows-J codes in the Shift-JIS "user-defined" area EBxx-EFxx, but not those in the F0xx-FCxx area. The alternate mapping code in PETextUtils will now treat these areas the same as for Shift-JIS -- if the TEC doesn't catch the mappings they'll be mapped into the Unicode Private Use Area so they don't get lost.
Numbers displayed in the "Get Info" dialog for text windows are now formatted using the appropriate separators for the language system in use.
The Zap Gremlins dialog now disables the "OK" button if you have selected "Replace With" (character) and entered more than (or less than) one character in the edit field. (Note that the determination of "one character" takes into account any character escaping; e.g. "\t" or "\xAA" counts as one character.
Fixed bug in which saving changes to an encoded text file (e.g. ISO-Latin-1) would cause the file to get written out as UTF-16 if the default encoding for new documents was set to a Unicode encoding (UTF-8 or -16).
Fixed an obscure bug in the Apple Event innards which would cause strange behavior in some situations. For example, executing the script "get closeable of window 1" and then manually trying to copy a text selection would report a scripting error.
Fixed case where Prefix/Suffix Lines would leave crap at the end of the buffer.
Prefix/Suffix Lines is now multibyte savvy.
TextWrangler will no longer warn you when you unlock a file that you don't own in order to modify it. (You'll still need to authenticate in order to save it.)
TextWrangler no longer checks whether you have the ability to write into a file's parent directory before allowing you to unlock it.
Fixed a bug where quitting from the dock menu while a quit was already in progress could lead to the application crashing.
Results lists no longer show the contextual-menu icon when the mouse is over a selected item and the Control key is down (because there is no contextual menu available).
-
This script will no longer hang the application:
tell application "TextWrangler" tell document of window 1 revert end tell end tell -
This script will no longer crash the application:
tell application "TextWrangler" tell text window 1 delete its contents end tell end tell Fixed problem selecting text with shift-arrow keys.
TextWrangler will no longer abort loading a language module's keyword list when it encounters a duplicate.
Fixed crash which would occur if the stored Text Encoding preferences contained encodings for which no names existed in the system. This tended only to happen if you had been running TextWrangler on Mac OS X 10.3 and then downgraded to an older version of the OS.
Fixed bug in which Open Selection file searches wouldn't work correctly if the selection length was less than 32 characters and included a line-number specification, e.g. "foo.cp:15".
Fixed bug in which selection expansion for Open Selection would run too far in the case of a string containing a colon followed by a non-numeric character (e.g. "foo.cp:mumble").
If you have "Use Two Screens" set for a Find Differences operation, but you only have one screen, TextWrangler now arranges the windows correctly.
Fixed a bug where key events that came in through the unicode input handler didn't prompt to unlock read only documents (and instead the key event was "lost.")
Fixed bug in which undoing a Remove Line Breaks operation did the wrong thing.
Corrected error in computation of search results line numbers when doing a Find All (single-file or multi-file) in Unicode files.
The "Use 'Hard' Line Numbering in Soft-Wrapped Views" preference is now honored when doing a Find All on a soft-wrapped open window.
"Print Color Syntax" now appears in the "Options" dialog invoked from within the print dialogs.
Fixed a glitch in the Perl scanner where an '=' may be inadvertently seen as at the beginning of a line when it is not and therefore be treated as the beginning of a POD section.
Fixed bug in which incorrect line numbering was printed when "Print Backwards", "Print Line Numbers", and soft wrapping were all in effect.
Fixed bug in which paths in the print header weren't properly truncated when using "Print Full Pathname" on Mac OS X.
The serial number file is now group-writeable.
Fixed a bug where text stationery files with no HFS type were excluded from the stationery menu at startup.
Fixed bug in which Educate Quotes would incorrectly convert a double quote ( " ) to a right double quote ( ” ) if it was immediately preceded by a single quote ( ' ) that had been converted to a right single quote ( ’ ).
If a zero-length "named grep pattern" parameter is provided to the "sort lines" scripting command, it is ignored (rather than an error being reported. The terminology has also been revised to make clear that either of the "grep pattern" or "named grep pattern" parameters should be omitted if the other is specified.
The "Case Sensitive" switch in the "Sort Lines" dialog has been moved into the "Sort Using Pattern" group, to correctly reflect the fact that it only controls the case sensitivity of the Grep pattern matching.
Fixed cosmetic in the Hex Dump dialog in which it didn't highlight the file path display when an eligible file was dragged onto the dialog.
Educate Quotes now works on documents represented as Unicode. (Note that when used on such a document, it will generate Unicode character values for the curly quotes.)
Fixed bug in which Remove Line Numbers didn't work when used on a document represented as Unicode.
Fixed a small glitch in the coloring subsystem that would lead to erroneous keyword coloring while editing within the keyword.
When running on Mac OS X, the sequence number for a backed-up file's name is now placed before the suffix (if any).
The wording/title of the "do you want to read the release notes for this new version dialog" have been updated so that people aren't confused (the previous wording was vague and could be interpretted as a newer version of the software was available.)
Fixed a bug where the indent string generated for folder listings was incorrect in documents represented internally as unicode (every other "tab" that was inserted was actually a null.)
Fixed bug that prevented opening a "UTF-16 with no BOM" file.
Fixed crash which would occur sometimes when reporting an error that occurred during an FTP operation.
Fixed an OB1B in LineSort
Fixed bug in which FTP uploads would stall if the upload took long enough to overlap with a periodic server ping. (Thus, it tended not to happen with small files being uploaded to servers on the LAN.)
Fixed bug in which the "Open from FTP Server" dialog box incorrectly allow shift-arrow to select multiple items.
Fixed a lurking bug that might cause strange things to happen when hard-wrapping using "Same as First Line" or "Relative to First Line" indentation.
Fixed long-standing but obscure bug that would sometimes cause the Perl scanner fail to recognize a '/'-delimited regex if it was preceded by a comment.
Fixed bug which would leave FTP connections open even after the document or FTP browser had been closed. This would occasionally lead to a given FTP server refusing connections from TextWrangler until the latter had been quit and relaunched.
TextWrangler no longer tries to maintain contact with the FTP server by sending it a NOOP every thirty seconds. This eliminates any change of TextWrangler stalling due to network or server latency while an FTP document is open.
Fixed bug in which a file opened from an FTP browser wouldn't reuse the already-open connection when saving.
Rephrased the "not logged in" message to more accurately reflect the triggering condition (login refused by server because of incorrect username/password or because of busy server).
Fixed bug in which bookmarks created from the bookmarks popup in the FTP dialogs or FTP browser didn't save path information.
Fixed a bug in which trying to Command-drag a window behind a moveable modal dialog would result in the dragged window moving to France.