Bug 143827 - option to insert a new-line at a given column
option to insert a new-line at a given column
Status: NEW
Product: gedit
Classification: Applications
Component: general
2.24.x
Other Linux
: Low enhancement
: ---
Assigned To: Gedit maintainers
gedit QA volunteers
:
: 572860 (view as bug list)
Depends on:
Blocks:
  Show dependency tree
 
Reported: 2004-06-06 20:21 UTC by Sebastien Bacher
Modified: 2012-10-26 08:50 UTC (History)
6 users (show)

See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch for the build system (1.36 KB, text/plain)
2005-02-07 17:19 UTC, Marc Maurer
Details
and the plugin itself as a tarball (4.30 KB, application/octet-stream)
2005-02-07 17:21 UTC, Marc Maurer
Details
improved plugin (tar.gz) (4.46 KB, application/x-compressed-tar)
2005-02-07 22:05 UTC, Marc Maurer
Details

Description Sebastien Bacher 2004-06-06 20:21:08 UTC
This bug has been reported in the Debian BTS: http://bugs.debian.org/205908

"I would like an option to cut (== insert a new line) at a given columns
and not only to wrap the lines."
Comment 1 Carl Devos 2005-02-02 21:09:21 UTC
This feature exists already in nedit 5.4.
First you have to select wrap continous (in preferences), then when you 'save
as...' there is a checkbox: 'add line break where wrapped' (there a confirmation
window as it is irreversible). See http://zongo.be/pic/nedit_screenshot.png
I don't know whether the  it's the best place to check, but it could be
implemented as plugin.
Comment 2 Marc Maurer 2005-02-07 17:19:28 UTC
Created attachment 37114 [details]
patch for the build system
Comment 3 Marc Maurer 2005-02-07 17:21:03 UTC
Created attachment 37115 [details]
and the plugin itself as a tarball

This is a good start, and it would even be save to commit, but I'll tweak it
some more.

Mimetype specific line breaking can be added as well. For now, LaTeX line
endings (\\) are honored as an example
Comment 4 Marc Maurer 2005-02-07 22:05:45 UTC
Created attachment 37136 [details]
improved plugin (tar.gz)

Better line merging capabilities, taking trailing whitespace into account, and
\r\n newline handling.
Comment 5 Loïc Minier 2005-09-24 16:00:23 UTC
Kenneth P. Turvey added in Debian bug http://bugs.debian.org/329400 that it
would be nice if the resulting wrapping could also handle things such as quotes
for mails or Usenet posts (lines starting with "> " would be wrapped with the
same prefix).
Comment 6 Loïc Minier 2005-09-24 16:05:10 UTC
One generic solution to this bug is also to provide a plugin to filter data
through a command, such as "par", as noted in bug 317112.
Comment 7 Paolo Borelli 2009-12-30 14:39:13 UTC
*** Bug 572860 has been marked as a duplicate of this bug. ***

Note You need to log in before you can comment on or make changes to this bug.