Word wrap is too commonly changed to be in preferences, should be a menu

Bug #118522 reported by Endolith
100
This bug affects 11 people
Affects Status Importance Assigned to Milestone
gedit
Fix Released
Wishlist
gedit (Ubuntu)
Fix Released
Wishlist
Unassigned

Bug Description

Binary package hint: gedit

Changing from word wrapped to non-wrapped happens too often to be in preferences. It should be on a more easily accessible menu.

ProblemType: Bug
Architecture: i386
Date: Sun Jun 3 11:30:22 2007
DistroRelease: Ubuntu 7.04
ExecutablePath: /usr/bin/gedit
Package: gedit 2.18.1-0ubuntu1
PackageArchitecture: i386
ProcCmdline: gedit
ProcCwd: /home/omegatron
ProcEnviron:
 LANG=en_US.UTF-8
 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/games
 SHELL=/bin/bash
SourcePackage: gedit
Uname: Linux Inspiron 2.6.20-15-generic #2 SMP Sun Apr 15 07:36:31 UTC 2007 i686 GNU/Linux

Tags: wishlist
Revision history for this message
Endolith (endolith) wrote :
Revision history for this message
Endolith (endolith) wrote :

It would also be great if it guessed whether to word wrap or not in a sane way based on the type of file that was being opened. But it should still be a menu option for when it gets it wrong.

Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for your bug. That's known upstream, http://bugzilla.gnome.org/show_bug.cgi?id=119428

Changed in gedit:
assignee: nobody → desktop-bugs
importance: Undecided → Wishlist
status: New → Triaged
Changed in gedit:
status: Unknown → Confirmed
Revision history for this message
Dawid M. (dawid.mlyn) wrote :

Thanks for the link Sebastien ;) From that discussion (Comment #15) it seems that Paolo Borelli has made up his mind on this bug almost 2 years ago. Still on my Ubuntu Feisty I didn't find any convenient way to toggle word wrapping in gedit :/ Is there at least a small glimmer of hope that this issue will be solved in the next couple of months?? ;-S (even keyboard shortcut would do the trick ;)

Revision history for this message
Sebastien Bacher (seb128) wrote :

We don't have the ressources to start hacking small features instead of upstream at the moment. They plan to add it but that's not on top of their list, maybe next cycle

Revision history for this message
Sebastien Bacher (seb128) wrote :

upstream pointed that it should be easy to hack a python plugin

Revision history for this message
Dawid M. (dawid.mlyn) wrote :

Today I got to know about two of such plugins from http://brainstorm.ubuntu.com/idea/6465/ .

1) http://live.gnome.org/Gedit/Plugins?action=AttachFile&do=view&target=toggletextwrap-plugin-0.1.0.tar.bz2

2) http://sodki.org/programas/gedit_plugins/menu-text-wrap.tar.gz

I like the second 'menu-text-wrap' plugin more, because it provides Ctrl+R keyboard shortcut.

Still I think much more people would benefit form the plugin if it was included with gedit by default. Even such a featureless program like windows notepad has it.

In the last few days I had to toggle text wrap many times so I decided to search for gedit plugin again and this time finally found one++ ;)

I'll pass it on to my friends - they'll be glad :))

Revision history for this message
Karl Ostmo (kostmo) wrote :

Attached is an update to the text-wrap plugin. It shows wrapping state in the status bar and takes care of the inconsistent checkbox state when tabs are switched.

Revision history for this message
Dawid M. (dawid.mlyn) wrote :

It's great, thanks! :) The only thing it's missing now is to keep wrapping state after saving changes in a file.

Currently when you save the file text-wrap sets itself to what is selected in global preferences ignoring what you have chosen for the file that you're working with.

So every time I do CTRL+S I also have to do CTRL+R (assuming you work with many text files, and the one you're working with right now has different word-wrap than what is selected in global prefs).

Anyway, quite nice piece of work. Thanks again ;D

Revision history for this message
Karl Ostmo (kostmo) wrote :

Thanks, Dawid. I tried to reproduce the bug you mention, but for me it did preserve the wrap settings on my machine after saving.

The sequence of events I tried was:
1) Load a file with long lines. Text wrapping was disabled in my Preferences, so the initial state was "NOWRAP".
2) Pressed CTRL+R. Wrapping state was changed to "WRAP".
3) Made a change to the file. Saved with CTRL+S. Wrapping state remained as "WRAP".
4) Pressed CTRL+R again. Wrapping state was changed back to "NOWRAP".
5) Made another change to the file. Saved with CTRL+S. Wrapping state remained as "NOWRAP".

Is this not what happens on your machine? If not, maybe you can provide more details.

Revision history for this message
oddemirci (oddemirci) wrote :

If initially the "Word wrap" option is already chosen in preferences, then there is the above mentioned problem. If not, there is no problem.

Changed in gedit:
importance: Unknown → Wishlist
Revision history for this message
Mario T. Lanza (mlanza) wrote :

I entirely agree with comment #2. I should be able to tie my word wrapping setting to a file type. It's a pain having to manipulate this as frequently as I do.

Revision history for this message
Karl Ostmo (kostmo) wrote :

Hi all,
I made a plugin for gedit 3.x that does the same thing as my original: toggle word wrap with CTRL+R and display the wrap state in the status bar. I called it "Quick Text Wrap". The files should be extracted into the directory "~/.local/share/gedit/plugins".

Changed in gedit:
status: Confirmed → Fix Released
Revision history for this message
Sebastien Bacher (seb128) wrote :

The issue has been fixed in the upstream vcs

Changed in gedit (Ubuntu):
assignee: Ubuntu Desktop Bugs (desktop-bugs) → nobody
status: Triaged → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :
Download full text (7.6 KiB)

This bug was fixed in the package gedit - 3.18.1-1ubuntu1

---------------
gedit (3.18.1-1ubuntu1) xenial; urgency=medium

  * Newer upstream version and merge on Debian, includes those changes
    - code snippets plugin improvements (lp: #1335613)
    - implements a minimap widget (lp: #1302451)
    - don't close infobar after print preview is dismissed (lp: #929554)
    - some segfault fixes (lp: #928420)
    - save files even when backups can't be created (lp: #867923)
    - let you edit binary files (lp: #848253, #575500)
    - count underscores are part of a word (lp: #615506, #413360)
    - don't display warnings when saving after foccusing out (lp: #589906)
    - use correct printing margins (lp: #331077)
    - ctrl-T opens new tabs (lp: #301942)
    - hide print preview tooltips when moving the cursor (lp: #234711)
    - include word wrap option in the statusbar popover (lp: #118522)
  * debian/control.in:
    - don't Build-Depends on gnome-icon-theme-symbolic it's deprecated
    - gedit replaces gedit-common (<< 3.18.1-1ubuntu1)
    - updated the requirements
  * debian/patches/06_lp_401692.patch:
    - dropped, the change is included upstream now
  * debian/rules:
    - create compatiblity desktop file for upgraders
  * Remaining other changes
  * debian/rules:
    - Build without --Bsymbolic-functions to fix issues
  * debian/patches/0001-Use-the-OSX-menubar-layout-for-XFCE-Unity-etc.patch:
    - add traditional menubar (GNOME bug #741904)
  * debian/patches/02_add_keywords.patch:
    - Add new keywords for unity and gnome-shell
  * debian/patches/05_menu_label.patch:
    - Don't display in menu as "gedit Text Editor"
  * debian/patches/07_use_del_instead_ctrl_del.patch:
    - Use Delete, not Ctrl+Delete, to delete files in file browser
      side panel to match our Nautilus behavior (LP: #1163287)

  [ Lars Uebernickel ]
  * New upstream version (lp: #1339371)
  * debian/patches/01_gedit-bugreport-location.patch,
    debian/patches/02_add_keywords.patch,
    debian/patches/05_menu_label.patch:
    - update for new desktop file name
  * debian/patches/03_no_gnu_gettext.patch,
    debian/patches/06_lp_401692.patch,
    debian/patches/07_use_del_instead_ctrl_del.patch,
    debian/patches/08_multiarch_fallback.patch:
    - refresh
  * debian/patches/disable-warnings.patch:
    - dropped - should be fewer deprecation warnings now
  * debian/patches/00git_state_property_type.patch,
    debian/patches/fix_snippets_encoding.patch,
    debian/patches/fix_snippets_python34.patch,
    debian/patches/fix_snippet_warning.patch,
    debian/patches/git_encoding_combo.patch,
    debian/patches/git_filebrowser_toolbar.patch,
    debian/patches/git_get_start_sig.patch,
    debian/patches/git_save_run_tool_order.patch,
    debian/patches/git-search-hide-when-hitting-Esc.patch,
    debian/patches/git-search-use-new-GtkSearchEntry-signals.patch,
    debian/patches/git_select_mispelled_word.patch,
    debian/patches/git_Show-preview-text-in-the-font-chooser.patch,
    debian/patches/git_store_dialog.patch,
    debian/patches/git_wrap_labels.patch:
    - dropped - applied upstream
  * debian/patches/git_zeitgeist_crash.patch:
    - dropped - moved to ge...

Read more...

Changed in gedit (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.