Bug 141946 - easy way to enable/disable static word wrap
Summary: easy way to enable/disable static word wrap
Status: RESOLVED FIXED
Alias: None
Product: kate
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Debian testing Linux
: NOR wishlist
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
: 139232 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-02-19 22:34 UTC by Joachim Reichel
Modified: 2018-12-28 03:21 UTC (History)
7 users (show)

See Also:
Latest Commit:
Version Fixed In: 19.04.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joachim Reichel 2007-02-19 22:34:27 UTC
Version:           1.9.2 (using KDE KDE 3.5.5)
Installed from:    Debian testing/unstable Packages

While static word wrap is very useful in general, often there are situations in which one temporarily wants to disable static word wrap. Selecting Settings/Configure Kile/Editor/Editing, disabling, perform the desired action and then calling Settings/Configure Kile/Editor/Editing again and reenabling is quite cumbersome. Please provide a way to bind the on/off switching for static word wrap to a shortcut, a toolbar button or menu entry.
Comment 1 Alessandro Rossini 2009-06-08 22:51:11 UTC
Enabling and disabling static word wrap in Kate 3.2.1 (using KDE 4.2.1) requires to select:
Settings -> Configure Kate -> Editor Component -> Editing -> "Enable static word wrap"
This is annoying when editing certain kind of text-based source files, e.g. LaTeX sources, where paragraphs are typically word wrapped and verbatim environments are not.
While "Dynamic Word Wrap" and "Word Wrap Document" actions are available to be added to Toolbars and Shortcuts, the same is not possible with "Enable static word wrap". Is it possible to add "Enable static word wrap" to the list of action available in Toolbars and Shortcuts?

Best regards.
Comment 2 neteler@gmail.com 2009-12-13 12:16:13 UTC
*** This bug has been confirmed by popular vote. ***
Comment 3 Shriramana Sharma 2012-07-26 12:39:24 UTC
Hello I've added my maximum votes for this bug. Just like it is possible to switch dynamic word wrap on/off from the menu, please make the same available for static word wrap also. Note that while the dynamic word wrap setting is available from the View menu, the static word wrap setting should be available from the Edit menu. (See also my comments on Bug 191028.)

This bug is over five years old. I hope it is not too difficult to fix. Thank you all for your great work on KDE!
Comment 4 Dominik Haumann 2013-12-17 14:10:18 UTC
*** Bug 139232 has been marked as a duplicate of this bug. ***
Comment 5 dartmouth.kids 2015-03-23 13:54:55 UTC
This would be a great feature and extremely useful. Please, consider it.
Comment 6 fire f. 2018-06-12 23:18:36 UTC
it is poss to ena/disa WW from toolbar or via a kateline

like 



kaXte: dynamic-word-wrap on;
kate: dynamic-word-wrap off;

change kate:  to  "kaXte:"  or sth. to disable the line , or delete one of the lines to toggle

Kate will only search the first and last 10 lines for variable lines such as "kate: dynamic-word-wrap off;"
This is line 11


see https://docs.kde.org/trunk5/en/applications/katepart/config-variables.html
Comment 7 Jerôme Pouiller 2018-06-15 15:08:41 UTC
IMHO, solution suggested by fire f. is not sufficient to close the bug. Users want a shortcut, a toolbar button or menu entry.
Comment 8 fire f. 2018-11-19 09:08:14 UTC
there is a toolbar button, only it must be placed as visible manually.
Comment 9 Christoph Cullmann 2018-12-26 21:52:51 UTC
Git commit 3a7a2d1ca986cef5eaf49ed165ff6652d7085925 by Christoph Cullmann, on behalf of loh tar.
Committed on 26/12/2018 at 21:53.
Pushed by cullmann into branch 'master'.

KTextEditor: Add action for static word wrap

Summary:
- Move "Show Static Word Wrap Marker" code some lines up to group related actions

Test Plan: {F6478656}

Reviewers: #ktexteditor, #vdg, cullmann

Reviewed By: #ktexteditor, cullmann

Subscribers: cullmann, abetts, kwrite-devel, kde-frameworks-devel, #ktexteditor

Tags: #kate, #frameworks

Differential Revision: https://phabricator.kde.org/D17609

M  +2    -1    src/data/katepart5ui.rc
M  +11   -8    src/view/kateview.cpp

https://commits.kde.org/ktexteditor/3a7a2d1ca986cef5eaf49ed165ff6652d7085925