Commit Graph

101 Commits

Author SHA1 Message Date
Kurt Hindenburg
3cd4d2e440 Add profile option to scroll full/half height via Page Up/Down keys
The default is still half page - there is no GUI to change this;
either use konsoleprofile or change the .profile manually.

CCBUG: 280637
2013-02-24 12:03:46 -05:00
Kurt Hindenburg
417af269e5 Add option to disable ctrl+<mouse-wheel> zooming
The built-in behavior of Ctrl+<Mouse Wheel> to zoom in/out the terminal
can not be disabled. This patch adds an option to disable this
behavior. (Default to the original behavior).

Original patch by Yichao Yu yyc1992@gmail.com
I made some changes - bugs are mine as usual
REVIEW: 107281
FIXED-IN: 4.11
GUI:
2012-12-28 09:51:34 -05:00
Kurt Hindenburg
ca9dd11bf5 Allow option to trim spaces at end of line
In the ongoing issue with spaces at the end of lines, this allows for
an option to trim the spaces.  By default, it is disabled so only
people who need this will be affected.

Many thanks to David Smid <david@smidovi.eu>

CCBUG: 188528
2012-09-09 19:10:41 -04:00
Jekyll Wu
248f2c3cc9 Add profile option for opening URL by direct click(off by default)
Thanks to Asko Eronen<asko.eronen@gmail.com> for the idea and patch

REVIEW: 105282
FEATURE:
DIGEST:
2012-07-15 01:41:13 +08:00
Kurt Hindenburg
57994c1d5d Provide GUI to change line spacing
This provides a profile GUI to change the line spacing  (0-5).  Due to
the Qt4.8/BIDI issues, allowing the user to  change the spacing allows
the user to fix any issues w/ the font they are using.

FEATURE: 279490
REVIEW: 105478
FIXED-IN: 4.10
2012-07-10 10:41:38 -04:00
Kurt Hindenburg
ed31a8b0aa Provde a GUI option to disable requiring CTRL to dnd text
This adds a GUI checkbox per profile to enable/disable requiring the
CTRL key to drag-n-drop text.
The default is to require the CTRL key as before.

Thanks to Scott Kitterman (kde@kitterman.com) for patch.

BUG: 165923
REVIEW: 105423
FIXED-IN: 4.10
2012-07-06 16:37:27 -04:00
Jekyll Wu
4bb9512c7e Rename: make static member variables use the same naming style 2012-05-21 22:29:04 +08:00
Jekyll Wu
6fa0121b8e When saving profile, always use its untranslated name as filename
An internal property is introduced to record the untranslated name.
When saving profile into disk, always refer to that untranslated name
to get the filename.

This extra consideration is intended to deal with the situation when the
profile's contents are i18nized. The typical example is the "Shell" profile
shipped by default.

BUG: 250506
FIXED-IN: 4.9.0
2012-05-16 01:10:04 +08:00
Jekyll Wu
bb818010b4 Add two profile options for the copy & paste behavior of mouse
* support "automatially copy selected text into clipboard"
  * mouse middle button can be customized to paste from selectio or
    clipboard

The first feature might look like a unnecessary duplicate of the
"synchronize selection and clipboard" feature of Klipper. However, that
klipper feature is generally problematic, while doing it only in Konsole
is generally useful and harmless.

FEATURE: 183490
FIXED-IN: 4.9.0
REVIEW: 103861
DIGEST:
2012-04-25 12:55:38 +08:00
Jekyll Wu
9b3e6ae11a move code around 2012-04-10 06:01:00 +08:00
Jekyll Wu
50668d65b0 Set the initial/preferred terminal size accroding to profile options
The old code always set the hardcoded 80x40 size.

Two profile options are added under the "General" group:

  * TerminalColumns
  * terminalRows

Note: Due to the way KMainWindow works, those profile options may not
work :(. Do not take this commit as something completed.
2012-04-09 11:37:04 +08:00
Jekyll Wu
ecf7217e85 Remove unneeded #includes 2012-04-01 16:46:00 +08:00
Jekyll Wu
2f6d64fe5a Merge Profile::BellModeEnum and TerminalDisplay::BellMode into Enum::BellModeEnum 2012-03-19 16:08:55 +08:00
Jekyll Wu
cf0a3e3cd0 Merge Profile::TripleClickModeEnum and TerminalDisplay::TripleClickMode into Enum::TripleClickModeEnum 2012-03-19 16:08:54 +08:00
Jekyll Wu
0e35037be6 Merge Profile::CursorShapeEnum and TerminalDisplay::KeyboardCursorShape into Enum::CursorShapeEnum 2012-03-19 16:08:54 +08:00
Jekyll Wu
d1a1b11762 Merge Profile::ScrollBarPositionEnum and TerminalDisplay::ScrollBarPosition into Enum::ScrollBarPositionEnum 2012-03-19 16:08:42 +08:00
Jekyll Wu
683f2c9ec5 Merge Profile::HistoryModeEnum and HistorySizeDialog::HistoryMode into Enum::HistoryMode Enum 2012-03-19 16:07:27 +08:00
Jekyll Wu
25b8b5353c Trivial style change: remove extra blank lines 2012-03-17 19:53:21 +08:00
Jekyll Wu
42665e7908 Remove the per-profile option "AllowProgramsToResizeWindow"
* It never works in KDE4
  * It is never revealed to users in KDE4
  * It is better to be a global and konsole-only option; does it make
    sense for a konsolepart to resize itself?
2012-03-17 18:38:22 +08:00
Kurt Hindenburg
4dae2895bb Separate the profile reader/writer to their own file 2012-03-16 11:14:05 -04:00
Jekyll Wu
f4fb943132 Most of time we only need <KLocalizedString> instead of <KLocale> 2012-03-07 06:48:26 +08:00
Jekyll Wu
07c80018ce Use "%d" instead of "%D" in the default local tab format
"%d" has always been used as the default since KDE4, until in KDE SC
4.8 it is replaced by "%D" as a workaround for the problem in BKO
192081
2012-02-26 04:52:15 +08:00
Jekyll Wu
f42fd4721b Clean up unneeded #includes 2012-02-20 19:41:38 +08:00
Jekyll Wu
2ba24db12c Add per-profile option 'BellMode' for choosing the type of bell
There are no GUI elements for controlling that option, so it is a hidden
option at the moment.

To configure this option manually, put following lines into some konsole
profile under ~/.kde4/share/apps/konsole/ :

    [Terminal Features]
    BellMode=N

Where N could be 0 for system beep, 1 for system notification and 2 for
visual bell. That mapping might change before next major release.

CCBUG: 155622
CCBUG: 177861

REVIEW: 104013
2012-02-19 06:50:52 +08:00
Jekyll Wu
3301a786d5 Remove no-longer-useful options from class Profile 2012-01-22 10:21:45 +08:00
Jekyll Wu
e3e960ab95 Move the 'show menubar' option from profiles into global settings 2012-01-22 10:21:29 +08:00
Jekyll Wu
3d8da1f878 Make 'foreach(...)' more readable 2012-01-14 22:54:56 +08:00
Jekyll Wu
b5dc7a982d Ensure the 'MenuIndex' entry is never written into profile on disk
The current code expects that entry to be absent or has 0 as its value in the
profile on disk. However, I guess the code is not strict enough to guarantee
that assuption since I have noticed MenuIndex=N several times when checking my
profiles.

More importantly, the way how MenuIndex interacts with favorite status is
not quite staight forward.
2012-01-14 13:24:58 +08:00
Jekyll Wu
562e949b52 Remove the code for reading KDE3 profile.
See BKO 218655.
2012-01-11 23:51:04 +08:00
Kurt Hindenburg
d8e05a0672 Use the Qt versions of strlen, strncpy, strncmp 2012-01-03 23:29:05 -05:00
Kurt Hindenburg
94c5f1b526 Apply astyle-kdelibs
Over the years, the coding style is all over the place.

Use 'git diff -w --ignore-all-space' to see non-whitespace changes.
2011-12-24 11:05:39 -05:00
Kurt Hindenburg
e718e93bf0 Add bidirectional text support by default
Make Konsole BiDi rendering enabled by default. Default Shell.profile
and also fallback profile are updated to have BidiRenderingEnabled set
to true by default.
AFAIK there is no reason not to have it on by default.  I don't see
any penalty code-wise.
BUG: 198169
FIXED-IN: 4.8
2011-11-19 15:46:35 -05:00
Jekyll Wu
b95f9443a0 Trivial change on #include 2011-11-16 13:31:24 +08:00
Jekyll Wu
1826cfcdc9 Delete the unused 'Title' entry within Profile 2011-11-06 05:32:44 +08:00
Jekyll Wu
cf92cece2b Remove leading white spaces in blank lines to make them really empty 2011-11-05 07:29:21 +08:00
Jekyll Wu
44e59a16e6 Revert "Remove two useless entres from DefaultPropertyNames[]"
Those entries are useful when used with the konsolepofile utility.

This reverts commit 2eeec68c4f.
2011-10-28 03:40:36 +08:00
Jekyll Wu
2eeec68c4f Remove two useless entres from DefaultPropertyNames[] 2011-10-28 03:29:53 +08:00
Jekyll Wu
7ad55af1fc Implement the "Seconds to detect silence" option from KDE3 konsole.
FEATURE: 195978
FIXED-IN:4.8
REVIEW:102823
2011-10-11 12:30:05 +08:00
Jekyll Wu
9ea9d62785 Reimplement the feature of "show/hide the size widget after resising"
This is a follow up of commit b40a006d which closees BUG 169054.
It turns out the old code already has most parts of similar logic.
So remove duplicated logic in the code.
2011-10-10 16:23:22 +08:00
Jekyll Wu
04ca6c2764 Remvoe three never-used methods 2011-10-07 15:06:39 +08:00
Jekyll Wu
59963d8b7e Change the type of TripleClickMode property from bool to enum.
Its correspoding UI in the EditProfileDialog is changed from
checkbox to combobox.

REVIEW:102742
2011-09-30 23:14:52 +08:00
Jekyll Wu
607e2d44d0 Define the default debug area and no more "kDebug(1211)". 2011-09-27 23:01:38 +08:00
Jekyll Wu
acd37f7a73 Allow users to control where the newly created tab should be placed.
CCBUG:276872
REVIEW:102685
2011-09-27 06:45:05 +08:00
Jekyll Wu
93f98ef422 Align successive assignments for better readability. 2011-09-01 17:27:45 +08:00
Jekyll Wu
b4c73b4ad1 slightly more readable. 2011-08-31 22:44:44 +08:00
Kurt Hindenburg
b40a006db8 Add a checkbox to hide the size widget upon resizing window.
Re-add the KDE 3 option to show/hide the size widget when the window is
changed.

Patch is years old from Chali Ahmul M.P.U <chali.ahmul@atlas.cz>
FEATURE: 169054
FIXED-IN: 4.8
2011-07-31 20:56:16 -04:00
Kurt Hindenburg
febd3c63da Change the default LocalTabTitleFormat to use %D instead of %d
%d will shorten the directory name whereas %D will not.  For some
users, having %d as the default is confusing as they don't understand
why some directories are not displaying correctly in the tab text.
Currently there is no UI to examine or change which folder names will be
shorten.

CCBUG: 190281
2011-07-31 15:42:38 -04:00
Kurt Hindenburg
c78e7e523e Change default remote tab format to always show hostname.
Change to (%u) H so when the tab names are shorten using ..., the
hostname will stay visible.
BUG: 171143
2011-07-05 19:29:19 -04:00
Kurt Hindenburg
48cdd11371 Add profile option to disable underlining links.
Add a configuration item that allows disabling of the underlined links
on mouse hover. The option is profile specific and defaults to the previous
behaviour where links are underlined on hover.

Patch by Amand Tihon <amand.tihon@alrj.com>

BUG: 174261
FIXED-IN: 4.7
CCMAIL: amand.tihon@alrj.com
2011-04-16 13:39:42 -04:00
Kurt Hindenburg
78f0d054ff Add command-line option --list-profile-properties
This new option will list all the profile properties' name and type.
This info can then be used with the -p name=value; command line option.
2011-02-28 20:19:52 -05:00