At 11:02 -0700 04/18/2013, Jerry Krinock wrote:
[...]
>But several times now I've wanted to navigate to a certain character
>number (offset) in a file. BBEdit has Search -> Go to LineŠ. I want
>to Search -> Go to CharacterŠ. and enter the offset in the file, in the
>same way I'd enter a line number.
>
>Does BBEdit 10 have this feature?
>
>If not, does anyone know an easy way to do this?
Though neither BBEdit 9 or 10 have such a command built-in, you can do this
via AppleScript.
As a quick example, use the AppleScript Editor to compile the following:
===
tell application "BBEdit"
display dialog "Character position:" default answer 1 buttons ¬
{"Cancel", "Go to"} default button 2
set cPosition to (text returned of result) as number
select insertion point before character cPosition of text window 1
end tell
====
then save the resulting script into the "Scripts" folder of BBEdit's app
support folder and assign a key shortcut to it via the Scripts palette (or
in BBEdit 10, the Menus & Shortcuts preference panel).
Regards,
Patrick Woolsey
==
Bare Bones Software, Inc. <http://www.barebones.com/>
--
--
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>
---
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].
For more options, visit https://groups.google.com/groups/opt_out.