[Bug 318517] Re: Word wrapping is not respecting indentation
** Changed in: gedit Status: New => Won't Fix -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/318517 Title: Word wrapping is not respecting indentation To manage notifications about this bug go to: https://bugs.launchpad.net/gedit/+bug/318517/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 318517] Re: Word wrapping is not respecting indentation
** Changed in: gedit Importance: Low = Wishlist -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/318517 Title: Word wrapping is not respecting indentation To manage notifications about this bug go to: https://bugs.launchpad.net/gedit/+bug/318517/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 318517] Re: Word wrapping is not respecting indentation
At least a control button wrap/unwrap in the toolbar would be a great feature, whatever is the fate of the wrapping indentation request. ... or a direct keyboard shortcut hscwftic (hope some coder will find this idea cool :) ) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/318517 Title: Word wrapping is not respecting indentation To manage notifications about this bug go to: https://bugs.launchpad.net/gedit/+bug/318517/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 318517] Re: Word wrapping is not respecting indentation
** Changed in: hundredpapercuts Assignee: Papercuts Ninjas (papercuts-ninja) = (unassigned) ** Changed in: hundredpapercuts Importance: Low = Wishlist -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/318517 Title: Word wrapping is not respecting indentation To manage notifications about this bug go to: https://bugs.launchpad.net/gedit/+bug/318517/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 318517] Re: Word wrapping is not respecting indentation
** Changed in: hundredpapercuts Importance: Undecided = Low -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/318517 Title: Word wrapping is not respecting indentation To manage notifications about this bug go to: https://bugs.launchpad.net/gedit/+bug/318517/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 318517] Re: Word wrapping is not respecting indentation
** Changed in: hundredpapercuts Milestone: gedit = papercuts-s-gedit -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/318517 Title: Word wrapping is not respecting indentation To manage notifications about this bug go to: https://bugs.launchpad.net/gedit/+bug/318517/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 318517] Re: Word wrapping is not respecting indentation
The following is copied from the Upstream Bug: Ignacio Casal Quinteiro (nacho) [gtksourceview developer] 2012-12-04 17:15:42 UTC Here are some find outs from a quick research that I made today. First of all we need to touch almost all the layers to have this working, so if somebody is brave enough to make it here are the steps: 1) Get the size of a tab \t from the gtktextlayout.c. For this we can either check if there is a way to get it from the pango layout or we could as well move the tab-width property from GtkSourceView to GtkTextView. 2) From the gtktextlayout.c we need to detect the indentation of the paragraph, counting the number of tabs and get the size in a pango scale. 3) For that layout we need to set the indentation level for the wrapped text. For this we can already do it by setting a negative value to the pango layout indent value (i.e set_indent(-20)). Although I think the right thing to do here is to set a new set/get_indent_wrapped_text, which will do the same as the indent value but just for the wrapped text. 4) We need to add a setting into gedit, either in the preferences dialog or at this point it could be easily done with a plugin. (A setting in the dialog I think it would be better though). So if somebody wants to have some fun feel free to go fixing each of those steps, and if you have any question we are like always in the irc channel spotted in the previous comment. ** Changed in: hundredpapercuts Status: New = Triaged -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/318517 Title: Word wrapping is not respecting indentation To manage notifications about this bug go to: https://bugs.launchpad.net/gedit/+bug/318517/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 318517] Re: Word wrapping is not respecting indentation
@Timothy: thanks for following up there, the fix seems to be non trivial and impact several components... not sure if that qualify for a papercut bug? ** Package changed: gedit (Ubuntu) = gtksourceview3 (Ubuntu) ** Changed in: gtksourceview3 (Ubuntu) Assignee: Ubuntu Desktop Bugs (desktop-bugs) = (unassigned) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/318517 Title: Word wrapping is not respecting indentation To manage notifications about this bug go to: https://bugs.launchpad.net/gedit/+bug/318517/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 318517] Re: Word wrapping is not respecting indentation
@Sebastien: I think we should leave this as a papercut bug for now, part of the reason for the decline of the papercut project has been the lack of bugs to actually work on. Relaxing the criteria for a papercut has meant we have been more productive so far this release. To be honest from my experience most papercuts are non trivial otherwise they would just have been fixed already. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/318517 Title: Word wrapping is not respecting indentation To manage notifications about this bug go to: https://bugs.launchpad.net/gedit/+bug/318517/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 318517] Re: Word wrapping is not respecting indentation
** Also affects: hundredpapercuts Importance: Undecided Status: New ** Changed in: hundredpapercuts Milestone: None = gedit ** Changed in: hundredpapercuts Assignee: (unassigned) = Paper Cuts Ninja (papercuts-ninja) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/318517 Title: Word wrapping is not respecting indentation To manage notifications about this bug go to: https://bugs.launchpad.net/gedit/+bug/318517/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 318517] Re: Word wrapping is not respecting indentation
This would be nice... -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/318517 Title: Word wrapping is not respecting indentation To manage notifications about this bug go to: https://bugs.launchpad.net/gedit/+bug/318517/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 318517] Re: Word wrapping is not respecting indentation
There is a gedit-plugin available that does great things with tabstops and indets, called elastic tabstops, see http://nickgravgaard.com/elastictabstops/ It does what i asked for and many things more, but it is terribly slow. A few kilobytes of code will slow the editor down to be almost unusable. But maybe it is a good thing to build upon it. -- Word wrapping is not respecting indentation https://bugs.launchpad.net/bugs/318517 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 318517] Re: Word wrapping is not respecting indentation
drx: Elastics tabstops doesn’t indent wrapped lines. I do think the two features go hand-in-hand: elastic tabstops make tabs semantic, while indented wrapping makes new lines semantic. In fact, I asked[*] the author for this feature, but he believes that someone should provide this functionality in a separate plugin. [*] http://nickgravgaard.com/elastictabstops/news/support-for-more- editors-in-the-works/ -- Word wrapping is not respecting indentation https://bugs.launchpad.net/bugs/318517 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 318517] Re: Word wrapping is not respecting indentation
** Changed in: gedit Importance: Unknown = Low -- Word wrapping is not respecting indentation https://bugs.launchpad.net/bugs/318517 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 318517] Re: Word wrapping is not respecting indentation
There is also an upsteam bug for gtksourceview: http://bugzilla.gnome.org/show_bug.cgi?id=326821 . I would like to amend the original suggestion slightly. When a line is wrapped, instead of inheriting indentation, I think it should inherit the last tabstop. To use a common use case as an example (‘ → ’ represents a tab and ‘ ↲’ represents a soft wrap.): → somePieceOfCode(); →// This is a very long comment ↲ that spans two lines. Note that the second line is indented to the position of the most recent tabstop rather than the indentation of the whole line. As far as I know, the other editors that do wrap more intelligently do not take such non- initial tabs into account. I believe that this suggestion yields even more readable text, as the whole comment in now separate from the actual code. This would also be useful in the many cases where text is arranged in a table-like manner. When tabs aren’t inserted in the middle of a line, the result is identical to the the original suggestion. ** Bug watch added: GNOME Bug Tracker #326821 http://bugzilla.gnome.org/show_bug.cgi?id=326821 -- Word wrapping is not respecting indentation https://bugs.launchpad.net/bugs/318517 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 318517] Re: Word wrapping is not respecting indentation
** Changed in: gedit Status: Unknown = New -- Word wrapping is not respecting indentation https://bugs.launchpad.net/bugs/318517 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 318517] Re: Word wrapping is not respecting indentation
The correct url is http://bugzilla.gnome.org/show_bug.cgi?id=559132 -- Word wrapping is not respecting indentation https://bugs.launchpad.net/bugs/318517 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 318517] Re: Word wrapping is not respecting indentation
Thank you for your bug report, there is a similar request on http://bugzilla.gnome.org/show_bug.cgi?id=321910 ** Changed in: gedit (Ubuntu) Importance: Undecided = Wishlist Assignee: (unassigned) = Ubuntu Desktop Bugs (desktop-bugs) Status: New = Triaged ** Also affects: gedit via http://bugzilla.gnome.org/show_bug.cgi?id=321910 Importance: Unknown Status: Unknown ** This bug has been marked a duplicate of bug 159300 Search is disabled when reading postscript documents ** This bug is no longer a duplicate of bug 159300 Search is disabled when reading postscript documents -- Word wrapping is not respecting indentation https://bugs.launchpad.net/bugs/318517 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 318517] Re: Word wrapping is not respecting indentation
** Attachment added: Gedit with less useful indents on the left and kate with luxury indets on the right. http://launchpadlibrarian.net/21324240/indent.png ** Attachment added: Dependencies.txt http://launchpadlibrarian.net/21324241/Dependencies.txt ** Attachment added: ProcMaps.txt http://launchpadlibrarian.net/21324242/ProcMaps.txt ** Attachment added: ProcStatus.txt http://launchpadlibrarian.net/21324243/ProcStatus.txt -- Word wrapping is not respecting indentation https://bugs.launchpad.net/bugs/318517 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs