linuxmint / xed

X-Apps [Text] Editor (Cross-DE, backward-compatible, GTK3, traditional UI)
GNU General Public License v2.0
452 stars 85 forks source link

Feature request: The wavy line every 4 spaces, indentation, that notepad++ draws to show the scope of all the lines within an if statement #654

Open ohlogic opened 2 months ago

ohlogic commented 2 months ago
 * Xed version:  3.6.6
 * Distribution: LinuxMint 22

Issue I can almost interchangeably use xed instead of Notepad++. However, this is the last feature that if implemented would be a game changer for me and perhaps may help a lot of people also. The feature I am requesting is a wavy line at every indentation for example, every 4 spaces to indicate scope of an if statment for example. I have attached a image to show this at the bottom.

Steps to reproduce Wavy line at every 4 lines

Expected behaviour Wavy line at every 4 spaces to indicate scope of an if statement

Other information, Image Attached is a image of the feature and I have highlighted the wavy line that indicates scope nicely. feature_request

If you can implement this wavy line to indicate scope feature, that is a great thank you. Please help.

ohlogic commented 2 months ago

This is done in gtksourceview-4.8.4.tar.xz to the gtksourcespacedrawer.c that xed uses.
leadingSpacesAsLines.diff.tar.gz

Torrehoradada commented 1 month ago

...and what can I do with your last info? Is this a hint to the request or the solution? I can´t find neither 'gtksourceview' nor 'gtksourcespace'... On which file leadingSpacesAsLines.diff.tar.gz should be applied to?

ohlogic commented 1 month ago

Hi, The patch is applied to the file gtksourcespacedrawer.cAnd the version of xed is gtksourceview-4.8.4 to download

I am happy to answer any questions. Thanks for asking.  Stan Switaj

On Tuesday, August 27, 2024 at 06:25:08 AM EDT, Torrehoradada ***@***.***> wrote:  

...and what can I do with your last info? Is this a hint to the request or the solution? I can´t find neither 'gtksourceview' nor 'gtksourcespace'... On which file leadingSpacesAsLines.diff.tar.gz should be applied to?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

Torrehoradada commented 1 month ago

Thanks for the quick response, but... You leave me a bit clueles... pls. excuse my perhaps silly questions. I just saw you mentioned the versions in the original post. As I'm still on Mint 21.3 (GTK 3.24.33) with xed v.3.4.5, perhaps this is the reason I cannot find those files nor any packages names... So I will DL Mint 22 and see further...

ohlogic commented 1 month ago

Hi, Ok, please go to https://wiki.gnome.org/Projects/GtkSourceView These are the list of versions of gtkSourceView that xed needs.  https://download.gnome.org/sources/gtksourceview/ This is where the gtksourceview 4.8.4 is located. https://download.gnome.org/sources/gtksourceview/4.8/ Of course, apply the patch, compile, and then run xed to check if its working.

Now Linux Mint's xed may work correctly with the vertical line when you configure it in preferences,  Xed, edit, preferences, draw whitespace, leading whitespace. However, perhaps xed may be statically linked the library to gtksourceview, therefore, you may have to compile a fresh xed also. xed source code is located here. https://github.com/linuxmint/xed And the downloads are located,https://github.com/linuxmint/xed/releases You may want to downloadlinux mint 22 https://github.com/linuxmint/xed/archive/refs/tags/master.mint22.tar.gz linux mint debian version 6 https://github.com/linuxmint/xed/archive/refs/tags/master.lmde6.tar.gz and compile xed also, that will get gtkviewsource that you modified from the patch file.

Thank you for the question and I am happy to answer your question and anything opensource. Thanks, Stan Switaj On Tuesday, August 27, 2024 at 08:10:16 AM EDT, Torrehoradada @.***> wrote:

Thanks for the quick response, but... You leave me a bit clueles... pls. excuse my perhaps silly questions. I just saw you mentioned the versions in the original post. As I'm still on Mint 21.3 (GTK 3.24.33) with xed v.3.4.5, perhaps this is the reason I cannot find those files nor any packages names... So I will DL Mint 22 and see further...

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>