Colored mark in the line number column possible ?

43 views
Skip to first unread message

Peace Keeper

unread,
Feb 7, 2021, 4:53:03 PM2/7/21
to BBEdit Talk
Hi there,
as my source code is growing, it is sometimes difficult to find the line, where I started scrolling. I already use the split view to keep e.g. the block with variables of the source in scope, but I still need to scroll sometimes.
Folding is also not an option as I need to have the full source in my view. When I look at the line number (column) I thought it would be great to set a colored marker / highlight by clicking on that number ( like you do it in some debugger to set a breakpoint)
Is that possible with bbedit ? 
Or any other suggestions ? 

Neil Faiman

unread,
Feb 7, 2021, 6:12:11 PM2/7/21
to BBEdit Talk Mailing List
On Feb 7, 2021, at 4:53 PM, Peace Keeper <madd...@gmail.com> wrote:
Hi there,
as my source code is growing, it is sometimes difficult to find the line, where I started scrolling. I already use the split view to keep e.g. the block with variables of the source in scope, but I still need to scroll sometimes.
....
Or any other suggestions ? 

It sounds like what you want to do is to go sightseeing around your code, but be able to easily return to where you started. 

If you do your sightseeing with PageUp / PageDown / the scroll bar / the mouse scroll wheel / etc., then the text cursor stays where you left it, so all you need to do is to hit the left or right arrow key, which will move the cursor in the line it is in and scroll the document to bring that line back into view.

If you actually want to do something that moves the text cursor somewhere else in the document, and then return to where you were, try using the Set Jump Point / Previous Jump Point / Next Jump Point commands from the Go menu (and of course, if you end up using these much, you can always assign key commands to them).

Regards,

Neil Faiman

Peace Keeper

unread,
Feb 8, 2021, 3:28:18 AM2/8/21
to BBEdit Talk
Thanks for the suggestion. It is a bit of sightseeing.but it is also a quick editing ( so "shopping" included ).  Also I could use the marker menu - but the effort is a bit high for that, while my eyes are focused on the scrolling text. But overall it would be easier to identify a coloured line number and set a marker like in a debugger ( and during shell script development it feels like using bbedit as editor and debugger)
So a small bar would be great ( the picture shows what I mean, but the bar should be transparent to let the line number still visible)

I assume this is not possible today ?


Bildschirmfoto 2021-02-08 um 09.23.14.png

Christopher Stone

unread,
Feb 8, 2021, 9:50:25 AM2/8/21
to BBEdit-Talk
On 02/08/2021, at 02:28, Peace Keeper <madd...@gmail.com> wrote:
Also I could use the marker menu - but the effort is a bit high for that, while my eyes are focused on the scrolling text.


Hey There,

Assign keyboard shortcuts to the Jump Point menu items.

You can instantly set unlabelled marks and move back and forth between them.

If you get lost you can bring up the Jump Point palette.

If you want to roll your own, you can use AppleScript.  It would be easy to set and go back to a static anchor point with a couple of scripts.

--
Best Regards,
Chris

Peace Keeper

unread,
Feb 9, 2021, 4:08:37 AM2/9/21
to BBEdit Talk
Thanks Chris - it is an idea to use the marker menu and assign a short-cut. But it will not color the place where the marker is set. I thought bbedit could use the column with the line numbers also for some other stuff. I will open an "improvement request" and see what they will do ... Thanks again for the suggestion
Reply all
Reply to author
Forward
0 new messages