OT Komodo Edit, line selection gutter is one pixel wide?

J

John Doe

Is there a way to increase the line selection gutter width? It
seems to be only one pixel wide. In other words... When I single
click on the left side of the line, in order to automatically
select the line, the pointer must be in a precise single pixel
location immediately to the left of the line. Or am I doing
something wrong?

Thanks.

By the way... I can see that clicking and dragging to select
multiple lines can be done somewhere in the space of the first
character on the lines, but I am talking about single clicking to
select the single line.
 
I

Ian Kelly

Is there a way to increase the line selection gutter width? It
seems to be only one pixel wide. In other words... When I single
click on the left side of the line, in order to automatically
select the line, the pointer must be in a precise single pixel
location immediately to the left of the line. Or am I doing
something wrong?

I've been using Komodo for 3.5 years and didn't even realize there was
such a gutter until you pointed it out. I don't see any way to make
it larger either -- how odd. When I want to select full lines, I use
the keyboard. I have Alt+Home mapped to the Beginning of Line command
(the one that always takes you to the first column rather than the
first character), and then Shift+Up/Down to select.
 
T

Thomas Jollans

Is there a way to increase the line selection gutter width? It
seems to be only one pixel wide. In other words... When I single
click on the left side of the line, in order to automatically
select the line, the pointer must be in a precise single pixel
location immediately to the left of the line. Or am I doing
something wrong?

Thanks.

By the way... I can see that clicking and dragging to select
multiple lines can be done somewhere in the space of the first
character on the lines, but I am talking about single clicking to
select the single line.

Not sure if this factoid is of any use to you, but many editors support
selecting lines by tripple-clicking.
 
A

André

Is there a way to increase the line selection gutter width? It
seems to be only one pixel wide. In other words... When I single
click on the left side of the line, in order to automatically
select the line, the pointer must be in a precise single pixel
location immediately to the left of the line. Or am I doing
something wrong?
Assuming it is the same behavior as for Komodo IDE, if you set it up
so that linenumbers are shown, then you get a much larger target to
click and select the line.

André
 
J

John Doe

André said:
... set it up so that linenumbers are shown, then you get a much
larger target to click and select the line.

Yes... And it allows clicking and dragging the number area to
select multiple lines. Thanks.
 
E

Eric Promislow

Is there a way to increase the line selection gutter width? It
seems to be only one pixel wide. In other words... When I single
click on the left side of the line, in order to automatically
select the line, the pointer must be in a precise single pixel
location immediately to the left of the line. Or am I doing
something wrong?

Thanks.

By the way... I can see that clicking and dragging to select
multiple lines can be done somewhere in the space of the first
character on the lines, but I am talking about single clicking to
select the single line.

You can easily do this with a Komodo macro. First you get a reference
to the current buffer like so. In JS:

var view = ko.views.manager.currentView;
var scimoz = view.scimoz; // the editor

In Python code:

currentView = components.classes["@activestate.com/koViewService;1"].\
getService(Components.interfaces.koIViewService).currentView
view =
currentView.QueryInterface(Components.interfaces.koIScintillaView)
scimoz = view.scimoz

To get the current width of the line-selection margin:

oldValue = scimoz.getMarginWidth(2) # Margin #2, width given in
pixels

To set a new value:

scimoz.setMarginWidth(2, newValue) # 4 looks like a good value

There is no boundary between the breakpoint margin (1) and the line-
selection
margin.

If you want this behaviour in general, you can write a post-file-open
macro that
will set the margin after a file is opened. You currently can't write
a post-file-open trigger in Python, (see bug http://bugs.activestate.com/show_bug.cgi?id=45265)

Hope this helps,

Eric Promislow
Komodo Team Member
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,763
Messages
2,569,562
Members
45,039
Latest member
CasimiraVa

Latest Threads

Top