Commit Graph

9611 Commits

Author SHA1 Message Date
Martin T. H. Sandsmark
8ce0aaddc7 Fix line 2024-07-25 17:50:42 -04:00
Kurt Hindenburg
c21dd64a93 Warn if user if passing incompatible command line options 2024-07-25 21:48:35 +00:00
Kurt Hindenburg
0d383d4355 Remove randomSeed in TerminalDisplay
Simplify by using sessionId and not passing around randomSeed.
The randomEngine is still initialized the same.
This also avoids passing session to createTerminalDisplay().

This is from !301
2024-07-25 21:25:32 +00:00
Kurt Hindenburg
8755513d5d Remove FallbackKeyboardTranslator
Since the keyboard files are bundled in the executable now,
there should be no need for a fallback translator.  The code
is still there for reference w/o using a separate class.
2024-07-25 18:08:01 +00:00
l10n daemon script
6ed8ccab78 GIT_SILENT Sync po/docbooks with svn 2024-07-25 01:31:41 +00:00
l10n daemon script
283d5468a9 GIT_SILENT made messages (after extraction) 2024-07-25 00:41:41 +00:00
Ahmet Hakan Çelik
9c72d6301d Allow setting Konsole tab color with escape codes
FEATURE: 396960
2024-07-24 18:53:34 +00:00
Christian Muehlhaeuser
9f7a2b846a Add support for OSC-52 write-only clipboard access
Implements OSC-52 write-only clipboard access. Already supported by a
wide range of other terminals, including alacritty, foot, kitty,
urxvt, wezterm, xterm, and others.

I've intentionally omitted read access to the clipboard as that comes
with several security concerns, which should be discussed first.

BUG: 372116
2024-07-24 18:37:56 +00:00
l10n daemon script
d4b41ad86c GIT_SILENT Sync po/docbooks with svn 2024-07-24 01:30:42 +00:00
Kurt Hindenburg
3ef78a6c89 Add cppcheck to CI 2024-07-23 19:51:45 +00:00
Kurt Hindenburg
d822d163b9 Use separate category so not to spam Konsole's debug 2024-07-23 14:25:36 -04:00
l10n daemon script
dd62843b81 GIT_SILENT Sync po/docbooks with svn 2024-07-23 01:35:26 +00:00
Wendi Gan
1817dd4067 Add URL test cases in HotSpotFilterTest
Add test cases for URLs ending with invalid characters like comma, dot, colon, and semicolon.
2024-07-22 12:05:48 +00:00
Wendi Gan
02ba8cefc7 url filter: remove trailing non-URL characters
Adjusted UrlFilter::newHotSpot to strip non-URL trailing characters (e.g., commas, dots) using regex "[',.:;]+$". This ensures correct URL parsing without trailing punctuation.

Test case: 'https://example.com.' should exclude the trailing dot.

BUG: 472274
BUG: 473285
2024-07-22 12:05:48 +00:00
l10n daemon script
446074d7c6 GIT_SILENT Sync po/docbooks with svn 2024-07-22 01:33:58 +00:00
Kurt Hindenburg
33166bb198 Move variable into #if 2024-07-21 19:35:30 -04:00
Kurt Hindenburg
68fe07916b Spelling fixes; reuse is preferred English but ignore translatable strings 2024-07-21 19:16:06 -04:00
Kurt Hindenburg
9b7c855489 Don't compare floats; use qFuzzyIsNull 2024-07-21 18:56:25 -04:00
Kurt Hindenburg
658029bdc8 Don't compare floats; use qFuzzyCompare + 1.0 and qFuzzyIsNull
Silences float-equal warning.
2024-07-21 20:29:51 +00:00
Theodore Wang
ae222d8eb5 Added autosave functionality
The autosave functionality is contained in a SaveHistoryAutoTask
class, which inherits from SessionTask. The autosave mechanism
hinges on two pieces of information regarding the autosave file:
the number of bytes used to store the contents of dropped lines
(represented by SaveHistoryAutoTask::_droppedBytes) and a list
of byte offsets corresponding to the start of the contents of lines
on the screen (represented by SaveHistoryAutoTask::_bytesLines).
Everytime a line is dropped, SaveHistoryAutoTask::_droppedBytes
is updated using _bytesLines. Everytime the output is read and
saved to file, the autosave file is resized to _droppedBytes and
the current screen output is appended. Everytime the output is read
or the screen is resized, _bytesLines is updated.

The autosave can be started using an "Auto Save Ouput As" button in
the "File" tab of the toolbar. Once the autosave is started, said
button is replaced by a "Stop Auto Save" button which allows the
user to stop the autosave. Internally, any errors encountered by
the program would result in an KMessageBox reporting the details of
the error and stopping the autosave as well. Clicking on the stop
button reveals the start button again.

Similar to SaveHistoryTask, there is a file dialog which allows the
user to choose which file they would like the autosave contents to
be stored in.

Apart from errors involving reading session output and writing to
file, modifying the file externally, renaming the file and deleting
the file will also result in an error. Emulation::_currentScreen
being changed will also result in an error.

The autosave is conducted at a fixed time interval, apart from an
edge case where an autosave is required immediately due to internal
constraints. Said fixed time interval can be set by the user in the
settings of their current profile, specifically the "Advanced" tab.

Details on the internals of the autosave functionality is documented
in the source files.

GUI
FEATURE: 208620
2024-07-21 18:26:27 +00:00
Albert Astals Cid
3573cfef06 GIT_SILENT Upgrade release service version to 24.11.70. 2024-07-21 12:30:09 +02:00
l10n daemon script
8d3950c784 GIT_SILENT Sync po/docbooks with svn 2024-07-21 01:33:10 +00:00
l10n daemon script
8b4798aa12 GIT_SILENT Sync po/docbooks with svn 2024-07-20 01:30:45 +00:00
l10n daemon script
8b645b6b52 GIT_SILENT Sync po/docbooks with svn 2024-07-19 01:30:59 +00:00
l10n daemon script
c7f733ff73 GIT_SILENT Sync po/docbooks with svn 2024-07-18 01:27:42 +00:00
ivan tkachenko
913d5f15ee Port SIGNAL/SLOT to modern connection syntax
From !1013
2024-07-17 18:48:24 -04:00
Theodore Wang
d0754cc3e4 Add functionality for markers on scrollbar
Users can add markers to the scrollbar by double clicking on the
scrollbar. A user can remove a marker by double clicking on it again.

The position of the marker is stored internally as a percentage offset
of the scrollbar's length and is not attached to any line of output.
This means that on resize, a scrollbar marker originally created at
x percentile of the scrollbar's length from the top will still remain
at x percentile of the scrollbar's length from the top.

In the "Scrolling" tab in the settings, there are options for the
user to change the color of the markers and the size of the markers.
The size of the marker can be specified as a floating point number,
representing the percentage of the entire scrollbar's length it occupies.

GUI:
FEATURE: 338901
2024-07-17 15:43:56 +00:00
l10n daemon script
e152f6436d GIT_SILENT Sync po/docbooks with svn 2024-07-17 01:28:26 +00:00
ivan tkachenko
256c1b18fb Fix playing audio for OSC attribute 1337 and inlineMedia=1 parameter
The player was basically stuck in the QMediaPlayer::BufferingMedia
state, never playing or deleting itself. I guess this still could
happen on systems without valid audio outputs.

BUG: 490264
2024-07-14 18:33:30 +03:00
Andreas Sturmlechner
c5f2315c9d Drop faux X11 dependency and switch WITHOUT_X11 option to WITH_X11
X11 is nowhere needed in the codebase. Follow-up to 2f116f9fb2438a6e66b6702b3cc2ace9d0205f96

Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2024-07-11 21:15:55 +00:00
l10n daemon script
9ab4a3a4ac GIT_SILENT Sync po/docbooks with svn 2024-07-11 01:29:08 +00:00
l10n daemon script
47963a487b GIT_SILENT Sync po/docbooks with svn 2024-07-08 01:29:42 +00:00
l10n daemon script
2d4bdc77d9 GIT_SILENT made messages (after extraction) 2024-07-08 00:41:21 +00:00
Luis Javier Merino Morán
c2485b4874 Avoid UB on 32 bit targets
Shifting an operand by a shift amount greater than or equal to the width
of that operand results in UB, which can happen when shifting an
unsigned long on a 32 bit target by an amount from 0 to 63.

This is probably the cause of the crash at the following bug:

BUG: 479319
2024-07-02 22:15:23 +00:00
Marius Pa
cf30b8413e Fix cmakelint issues
Expression repeated inside endif; better to use only endif()
 [readability/logic]  
Extra spaces between 'if' and its () [whitespace/extra]  
Do not mix upper and lower case commands [readability/mixedcase]  
Weird indentation; use 2 spaces [whitespace/indent]  
Mismatching spaces inside () after command [whitespace/mismatch]  
Extra spaces between 'set' and its () [whitespace/extra]
2024-07-01 23:29:08 +00:00
l10n daemon script
7f37482fc8 GIT_SILENT Sync po/docbooks with svn 2024-07-01 01:30:30 +00:00
Heiko Becker
5ac7ff0676 GIT_SILENT Update Appstream for new release
(cherry picked from commit 24560c80d5)
2024-06-28 22:28:21 +02:00
l10n daemon script
9780f6e890 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2024-06-28 01:28:05 +00:00
l10n daemon script
273aa4be38 GIT_SILENT made messages (after extraction) 2024-06-25 00:41:09 +00:00
l10n daemon script
52860ac5d7 GIT_SILENT Sync po/docbooks with svn 2024-06-21 01:30:06 +00:00
l10n daemon script
c7b30d5156 GIT_SILENT Sync po/docbooks with svn 2024-06-20 01:34:31 +00:00
l10n daemon script
fb4971f4bd GIT_SILENT made messages (after extraction) 2024-06-20 00:41:59 +00:00
l10n daemon script
1ef532ee50 GIT_SILENT Sync po/docbooks with svn 2024-06-19 01:30:38 +00:00
Boudhayan Bhattacharya
4918a2a707 Add launchable tag to appdata
See https://invent.kde.org/teams/flathub/issues/-/issues/28#error-desktop-app-launchable-omitted
2024-06-18 10:52:36 +05:30
l10n daemon script
8d9e534d7f GIT_SILENT Sync po/docbooks with svn 2024-06-12 01:34:14 +00:00
Andrew Gunnerson
4cc7a91c7c Add AddBehavior when splitting multiple times in the same direction
Previously, when eg. hitting `Ctrl+Shift+(` multiple times, the resulting
panes would look like:

    -------------------------------------
    |        |        |        |        |
    | Pane 1 | Pane 4 | Pane 3 | Pane 2 |
    |        |        |        |        |
    -------------------------------------

This was caused by `AddBehavior` being ignored when splitting more than
once in the same orientation. The new pane would always be created at
the index of the current pane. This commit fixes the problem so that
`AddBehavior::AddAfter` will open a new pane downwards or to the right in
all scenarios.
2024-06-11 21:57:03 +00:00
l10n daemon script
e6c62bd7e3 GIT_SILENT Sync po/docbooks with svn 2024-06-10 01:50:49 +00:00
Heiko Becker
ab2ce46522 GIT_SILENT Update Appstream for new release
(cherry picked from commit 063cd3fff4)
2024-06-09 23:50:43 +02:00
l10n daemon script
e2c0e8f9e4 GIT_SILENT Sync po/docbooks with svn 2024-06-08 01:35:02 +00:00
l10n daemon script
317a4f421b GIT_SILENT Sync po/docbooks with svn 2024-06-07 01:28:15 +00:00