advice2020 created an issue (geany/geany#4467)

### ISSUE
Not sure if anyone would agree with this, but for me large coding files can be 
kind of confusing to navigate through.  Things like code folds / visual 
indicators can be very helpful.  

I noticed that in certain formats, code folds are not as easily seen/defined 
visually.
Good example of this is commonly used `xml` format.

`xml` files often contain a main level (starts at top and ends at bottom of 
document) that all the other levels are inside of.
When this is the case, no breaks in the code fold vertical line occurs.
These breaks in the vertical line are really one of the only visually 
indications for code folds (when they are expanded).
Obviously tabs/tab lines can help visually as well but not all the time.  I am 
also aware that there is a setting to round the corners of code fold before 
someone mentions this.

### ISSUE - XML EXAMPLE
I tried finding a basic `xml` file that everyone would have access to.  If have 
LibreOffice installed can use the following small example found here on Linux 
systems
`/usr/lib/libreoffice/share/classification/example.xml`

### POSSIBLE SOLUTIONS
These all pertain to when caret is in a code fold, similar to the 
setting that applies a highlight background color to the line that the caret is 
currently in.

`Code Fold Margin - Bold Vertical Line Overlay`
I have seen this available in a different text editor.
There was a setting that when caret was in a code fold it would apply a bold 
colored overlay line on top of the existing code folder margins vertical line.  
This setting allowed user to choose the bold line color as well has it offered 
color to fill in the expand/collapse node backgrounds.
For example Geany square code fold nodes with minus/plus signs in them, the 
background colors for these.

`Code Fold Margin - Background Color`
Can change the background color of the code fold margin background when caret 
is in code fold.

`Background Color In Typing Pane`
I have seen this used in other text editors where rectangular background 
(subtle/light) color the size of the code fold the caret is currently in.  
Based on how Geany assigns colors I am not sure if this would be possible.

### KEYBINDING
If settings like these were added, it might be a good idea to also allow a 
keybinding that could easily toggle setting on/off.

If anyone else has any ideas please mention them.
Thank you to anyone who reads this

If any of these suggestions require Scintilla request, if any Geany developers 
are interested in this suggestion (probably not) then would also have to put in 
request to Scintilla.  I had made requests in the past and they did not go well 
so someone else would have to put in request for this.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/4467
You are receiving this because you are subscribed to this thread.

Message ID: <geany/geany/issues/[email protected]>

Reply via email to