Hi Rainer,
You can *"kind of"* simulate typewriter mode with this applescript.
It only has effect once your text overflows the window because it takes
advantage of the fact that, when jumping around, BBEdit repositions the
current line at ± 25% of the window height.
Note that there is a bit of blinking that I don't know how to avoid.
Save it to the Scripts folder and give it a keyboard shortcut like
<Ctrl-return>.
--
# ~/Application
Support/BBEdit/Scripts/0-[⌃↩︎]-[typewriter_return].applescript
try
tell application "BBEdit"
tell first window
if class of its selection is not insertion point then
return
end if
tell its selection
set vCharacterOffset to (its characterOffset) as integer
set its contents to linefeed
end tell
tell its first document
select insertion point before its first text
select insertion point after its character
vCharacterOffset
end tell
end tell
end tell
on error aMessage
display alert aMessage
end try
--
HTH,
Jean Jourdain
On Monday, November 22, 2021 at 11:02:52 AM UTC+1 Rainer Krug wrote:
> Hi
>
> is it possible to have typewriter mode (i.e. the line I am typing in stays
> in the middle off the screen) in BBEdit? I haven't found anything along
> these lines. Did I miss it?
>
> Thanks,
>
> Rainer
>
>
--
This is the BBEdit Talk public discussion group. If you have a feature request
or need technical support, please email "[email protected]" rather than
posting here. Follow @bbedit on Twitter: <https://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].
To view this discussion on the web visit
https://groups.google.com/d/msgid/bbedit/ebe605cb-29fd-4222-971a-d6163ac1fa88n%40googlegroups.com.