SUPPORT : BBEdit : Archived Release Notes : BBEdit 7.1 Release Notes
BBEdit 7.1 Release Notes
This page documents all feature enhancements and bug fixes included in the BBEdit 7.1 update. For complete details on enhancements and fixes included in previous BBEdit 7.0.x maintenance releases, please see the release notes archive.
Note: When running on Mac OS X, BBEdit 7.1 requires Mac OS X 10.2 or later (10.2.6 or later recommended, 10.3 is dandy too). The Mac OS 9 system requirements are unchanged from 7.0.4: 9.1 required, 9.2.2 strongly recommended.
Additions
-
There's a new menu command: "Preview in BBEdit". If you're running on Mac OS X 10.2 or later and have Safari installed, this command is visible and will open up a window in BBEdit which is linked to the document which was front when you chose the command. The preview window uses the same content rendering engine as Safari, and is updated whenever you modify the document. Closing the document will also close the preview window. (You can of course have multiple preview windows open on multiple documents.)
-
BBEdit now supports SFTP (SSH File Transfer Protocol). When running BBEdit on Mac OS X (10.2 or later now required), there's a new "SFTP" check box visible in the "Open from FTP Server", "Save to FTP Server", and "Save a Copy to FTP Server" dialogs. If you check this option before opening a connection, BBEdit will negotiate a secure connection with the server, as long as the server is running a compatible version of sshd listening on port 22 (which describes a great many machines, including Mac OS X machines in which "Remote Login" is turned on in the "Sharing" preferences).
Apart from the single "SFTP" check box, opening and saving files via SFTP works just like it does when using ordinary FTP.
A file opened via SFTP will appear in the Open Recent submenu with an "sftp:" URL, and you can send a "get URL" event to BBEdit with an "sftp" URL as well.
-
BBEdit now supports FTP server discovery via Rendezvous when running on Mac OS X. In the FTP dialogs, there's a new "Rendezvous" pop-up menu. This menu shows FTP servers if "SFTP" is turned off, or SSH servers if "SFTP" is turned on. Note that SSH services are only advertised by machines running Mac OS X 10.3 when "Remote Login" is turned on in the "Sharing" system preferences. When you choose a server from the menu, its network host name will be entered into the "Host" field.
-
The add/edit dialog for FTP Bookmarks (Prefs -> FTP Settings) now has an "SFTP" check box.
-
FTP browser windows now have check boxes so that you can set SFTP and Passive FTP on a per-window basis.
-
If you hit Return while in the Password field of an FTP browser, BBEdit 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.
-
The "Project Builder" switch in the Tools panel of the prefs has been renamed to "Xcode" to accurately reflect the new state of the universe. (PBX 2.1 and later are still supported.)
-
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 operation takes a measurable amount of time).
-
The "bbedit" command-line tool has two new options: -t for naming windows created by pipes, and -resume for returning to the front application after the completion of a "bbedit -w". Update the tool using the button in the "Tools" preferences, then see "man bbedit" for more details.
-
The "Add/Remove Line Numbers" plug-in now has an option to right-justify the line numbers.
-
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).
-
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.
-
The "Preview" menu command on the Markup menu now indicates which browser will be invoked if you choose it.
-
The "Preview in New Window" command has been consigned to the dustbin of history.
-
Added an option to the Hex Dump tool to hex-dump the contents of the front window.
-
In the CVS commit dialogs, Return adds a line break to the message field, Enter dismisses the dialog.
-
When you do a CVS export and there is a name conflict in the destination folder you are now prompted and asked whether you want to replace the destination or use a sequenced folder name.
-
Added an "Open Scripts Folder" command to the Scripts menu. It does pretty much what you'd think.
-
When inserting (via paste or grab selection) a URL into the Anchor (or other URL dialogs) if the URL has leading or trailing whitespace (probably because of inadvertently picking it up during a select/copy operation) you will be prompted asking you whether you wish to keep and encode the whitespace, or trim it.
-
Some buttons and switches in the Find dialog are now enabled even when Multi-File Search is turned off: "Use File Filter" and "Options...". Confirming the "Options" dialog, choosing a filter (or creating a new filter) or turning on "Use File Filter" now turns on the "Multi-File Search" switch, saving you the trouble of doing it yourself.
-
Added a new term to file filters: "File Lock". This term tests the locked-ness of a file.
-
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
Fixes
-
Documentation Errata: The effects of Revert and Reload (occurs when a document is reloaded by a verify action) are not undoable. The BBEdit 7.1 PDF user manual incorrectly states that they are.
-
Fixed bug reading Shift-JIS files on Mac OS X 10.3
-
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 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 BBEdit" block no longer fails when the target file doesn't yet exist.
-
Fixed a bug where a canceled CVS export could delete your local sandbox.
-
Fixed a bug where if you typed return in a CVS folder picker dialog that had no edit fields garbage was drawn in the dialog rather than processing simulated click on the default button.
-
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.
-
Fixed curious cursor up/down behavior where if you moved up or down from a particular column position, typed something (even backspace), and then moved up or down again with a cursor key, the insertion point would be placed on the same column where you started typing instead of where you finished.
-
The Arrange command now works for some window types that it used to ignore: file groups, shell worksheets, and preview windows.
-
Numbers displayed in the "Get Info" dialog for text windows are now formatted using the appropriate separators for the language system in use.
-
Fixed bug in which two error alerts were presented for certain CVS error conditions.
-
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).
-
Updated PHP keywords list.
-
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.
-
The "Prefix/Suffix Lines" plug-in is now multi-byte savvy.
-
Corrected title of the CVS Commit Folder dialog.
-
When running on Mac OS X, BBEdit 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.)
-
When running on Mac OS X, BBEdit no longer checks whether you have the ability to write into a file's parent directory before allowing you to unlock it.
-
SimpleText documents are now considered for soft wrapping only if BBEdit is not running on Mac OS X.
-
Fixed an edge case in preview where if you didn't save an untitled document before previewing a bogus URL was sent to the browser for preview.
-
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 "BBEdit" tell document of window 1 revert end tell end tell -
This script will no longer crash the application:
tell application "BBEdit" tell text window 1 delete its contents end tell end tell -
The glossary manager now handles escaped placeholders in the documented way. That is:
#placeholder# => value
\#placeholder# => #placeholder#
\\#placeholder# => \value -
<script> elements with a type of "application/x-javascript" (instead of "text/javascript") are now handed to the javascript function parser.
-
Doing a CVS folder commit from within BBEdit verifies the contents of open documents when the operation completes.
-
Fixed problem selecting text with shift-arrow keys.
-
BBEdit 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 BBEdit on an unreleased future version of the OS and then downgraded to a current shipping 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, BBEdit 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.
-
Fixed a bug where run in terminal on a perl script was using the hardcoded /usr/bin/perl rather than the location for perl as determined from the #! line.
-
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.
-
Cleaned up glossary scripting terminology.
The glossary file can now be passed in the direct parameter. The old keyed parameter is supported for existing scripts but deprecated.
The event can be targetted at the tell target, or absent a tell target you can use the "into" parameter, i.e. you can use:
tell window 2 insert glossary entry alias_reference end tellor-
insert glossary entry alias_reference into window 2
-
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.
-
Modified the Unix shell script colorizer so that quoted strings terminate at newline (unless the newline is preceded by a backslash). Also added ` as a quote character.
-
Fixed a small glitch in the coloring subsystem that would lead to erroneous keyword coloring while editing within the keyword.
-
The PHP syntax coloring scanner now colors any text between a HEREDOC <<<IDENTIFIER tag and the end of the line in code color (w/o any keyword coloring).
-
The PHP syntax coloring scanner no longer colors a ';' at the end of a HEREDOC string in string color, but in code color instead.
-
The JavaScript function parser now understands nested function definitions.
-
When running on Mac OS X, the sequence number for a backed-up file's name is now placed before the suffix (if any).
-
Running Find Lurkers over a folder which has a custom folder icon no longer causes the operation to fail with a -43 error.
-
Fixed a bug where the link checker didn't correctly resolve URLs which had HTML entities in their attribute value.
-
Worked around an OS bug which caused the open selection service to fail if the incoming data was > 32k bytes.
-
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 interpreted as a newer version of the software was available.)
-
The list editor dialog now disallows non-numeric input in the start field for ordered lists.
-
The image editor dialog permits percentage lengths for height and width.
-
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.)
-
The syntax checker erroneously complained that id was not an allowed attribute for head in XHTML documents.
-
When writing out a temp file containing the selection for execution as a unix/perl script, ensure the file ends with a newline since some interpreters (tcsh for example) get unhappy when it doesn't.
-
Only for the perl/unix output window to Unicode if there are non-ascii characters in the output stream.
-
Fixed a bug where doing a compare revisions on a file which was put into the CVS repository with DOS line endings didn't work correctly.
-
A file with no HFS type but an extension of .filegroup will be opened as a file group.
A file with no HFS type but an extension of .worksheet will be opened as a shell worksheet.
This makes it possible to open these private document formats when they have lost their HFS type (such as through a round trip through CVS, etc.)
-
Fixed a bug in the site updater which would make the cancel button unresponsive at times.
-
Perl language guessing works on non-MacRoman files.
-
Fixed performance regressions which made the site updater slower than previous releases. (This happened when included files had no file extension that was mapped to a known language.)