texstudio icon indicating copy to clipboard operation
texstudio copied to clipboard

Enhance creating bookmarks

Open octaeder opened this issue 2 years ago • 6 comments

Describe the feature and the current behavior/state

Left to the linenumbers of the document is an area where a click creates a bookmark. But with documents with thousands of lines it is not quite clear where this area is. Images show the same document. I tried to depict the area with read lines:

grafik In the case above about 50% of the area between center bar and line numbers can't be clicked for bookmarks. Moving the pointer as close as possible to the center tool may end up in clicking a tool instead of creating a bookmark. So creating the bookmark is more strenuous.

grafik

Maybe you could make this area more visible in some way, for example with the two lines. Or the columns for bookmarks and line numbers could be interchanged (s. notepad++). Thus both columns would always stay a constant distance from the text area away.

Who will benefit with this feature?

People using line numbers and bookmarks for large documents.

octaeder avatar Apr 07 '22 21:04 octaeder

Maybe a darker background color on it...

tmelorc avatar Apr 08 '22 17:04 tmelorc

i would rather make the line number part change booksmarks as well. No real need that the cursor jumps to the line instead.

sunderme avatar Apr 08 '22 17:04 sunderme

@sunderme I like your idea not to move the cursor when creating a bookmark, because this is sometimes not what I want. Using the numbers at first glance might be good, too. But if I want the cursor at the beginning of a specific line for some purpose it would be easier to click on the number (as it is currently). But I would recommend interchanging both columns as said before. Just let me clarify the reason with two images from documents of different size:

Doc w, 20 Lines: grafik

Doc with 1000 lines: grafik

The distance between mark and text is depending of the documentsize (increasing with number of digits of largest line number). I think in this way the eye can better correlate text line and both line number and bookmark.

octaeder avatar Apr 08 '22 17:04 octaeder

One note: There might be no line numbers at all or only important ones. And following image the area is quite not clear also: grafik

octaeder avatar Apr 12 '22 15:04 octaeder

Further note: This column shows both bookmarks and Error Log Markers.

octaeder avatar Apr 26 '22 23:04 octaeder

Further note: standard behaviour should be that a left mouse key click sets/removes a bookmark and also moves the cursor at the beginning of this line. Since a right mouse key click opens a bookmark menu, I'm looking for another way to set/remove a bookmark without moving the cursor. @sunderme Could a double click with the left mouse key be that way?

octaeder avatar Apr 27 '22 00:04 octaeder

solved by changing cursor shape over the linemarkpanel 65203ccd8a7806289c4529c117d578d3d5626033

sunderme avatar Jan 21 '23 20:01 sunderme