Gustavo Carneiro
fd59b50e6c
Move font methods to a new TerminalFont class.
2020-12-23 03:48:30 +00:00
Gustavo Carneiro
1c0ed51e38
Rename extensions .hpp to .h in TerminalDisplay files.
2020-12-13 20:26:31 -03:00
Tomaz Canabrava
d7a411b8bc
Fix wrong rebase / fix build.
2020-12-13 12:17:12 +00:00
Ahmad Samir
9eddcdb204
SessionController: use session() and view() member functions
...
They make reading the code easier than
_sessionDisplayConnection->view()/session().
GIT_SILENT
2020-12-13 14:08:52 +02:00
Gustavo Carneiro
72d604c6cc
Move terminal color methods to a new class TerminalColor.
2020-12-12 21:07:49 +00:00
Laurent Montel
8242763fb3
operator+/- is disabled for QFlags in qt6
2020-12-09 07:57:05 +01:00
Ahmad Samir
7342cbea10
SessionController: use the same logic for the other if blocks
...
Make the code more readable by using some local vars.
2020-12-02 04:05:31 +00:00
Ahmad Samir
d74c0b1533
Fix if condition when updating filters
...
We want to delete the _escapedUrlFilter if allowEscapedLinks() is false.
2020-12-02 04:05:31 +00:00
Ahmad Samir
11987c7ae4
Minor code optimisation
...
Pass Profile::Ptr by reference. Make some local vars const.
2020-12-02 04:05:31 +00:00
Ahmad Samir
12c236c5fe
FileFilter: update the QRE pattern if "word characters" change
...
Add a new function to update the regex pattern in FileFilter, rather than
recreating a FileFilter object.
2020-12-02 04:05:31 +00:00
Ahmad Samir
3711e884c9
SessionController: don't delete actions removed from QMenu manually
...
This isn't needed as QMenu takes care of deleting removed actions (that
are children of it). Confirmed with QObject::connect() call on
QObject::destroyed signal. And skimming the upstream QMenu::actionEvent()
code.
2020-11-30 15:16:15 +00:00
Ahmad Samir
0f6424497b
SessionController: iterate over a const container
...
Also remove the action from the menu then delete it.
2020-11-26 00:20:10 +00:00
Ahmad Samir
043c424af5
SessionContoller: fix crash when closing session from Konsole KPart
...
_preventClose has to be set to false right at the end, so as to prevent
crashes if the user selects the "close session" action from the context
menu in a Konsole KPart (e.g. the terminal panel in Dolphin).
Check menu object isn't null before deleting actions from it.
BUG: 429538
2020-11-26 00:20:10 +00:00
Gustavo Carneiro
be969f454b
Add a new color filter to preview color in hotspot.
2020-11-21 20:18:46 +00:00
Tomaz Canabrava
437d967625
Add bogus icons to Monitor* actions
...
This is just to help visualization, as there are no icons for this yet.
2020-11-13 17:18:51 +00:00
Tomaz Canabrava
f4f35e9fab
Add the possibility to change the Profile from the Toolbar
2020-11-13 17:18:51 +00:00
Kurt Hindenburg
62f091f0a3
Convert session to use SPDX license/copyright
...
https://community.kde.org/Policies/Licensing_Policy#SPDX_Statements
https://community.kde.org/Guidelines_and_HOWTOs/Licensing
2020-11-12 21:34:59 -05:00
Carlos Alves
53af2a7fb9
Fix 'Copy Location' and 'Open With' issues with context menu
...
Update mouse events in mousePressEvent so the events are updated with the mouse stopped as well as moving.
BUG: 426359
BUG: 423860
FIXED-IN: 20.08.3
2020-10-26 00:06:53 +00:00
Kurt Hindenburg
9de3b239d5
Previous commit should be attributed to Yash Tiwari <yasht@mailbox.org>
2020-10-23 21:26:33 -04:00
Carlos Alves
44f00a490a
Fix duplicates link-related entries in context menu
...
BUG: 426808
FIXED-IN: 20.08.3
!237
2020-10-23 21:11:55 -04:00
Laurent Montel
b626359501
If include is define in .h remove it if it's defined in .cpp too (scripted)
2020-10-23 07:45:13 +02:00
Gustavo Carneiro
81a3e4f77a
Use SessionDisplayConnection.
2020-10-19 21:29:53 +00:00
Gustavo Carneiro
5c9c22fab3
Move TerminalDisplay to terminalDisplay folder.
2020-10-07 03:12:43 +00:00
Kurt Hindenburg
2b7bd65ab5
Allow KF 5.68 to work
...
Ubuntu 20.04 LTS only has KF 5.68 and Qt 5.12 so let's allow those
to work for now.
2020-10-06 22:46:02 -04:00
Ahmad Samir
2fd589f161
Port KRun (deprecated) to KIO::OpenUrlJob
2020-10-04 22:13:35 +02:00
Gustavo Carneiro
662d3ee947
Remove session folder in includes.
2020-09-28 02:01:03 +00:00
Martin Hostettler
f4bc91f1f7
Match OSC reply sequence terminator to OSC request terminator.
...
Traditionally konsole only was able to parse OSC sequences terminated with
non-standard BEL. In 324d78c07f konsole was extended to parse sequences
terminated by 7-bit ST (ESC \) as well. But the OSC responses were still
hardcoded to reply only with sequences with BEL. But replying to 7-bit ST
terminated sequences with a reply terminated by a non-standard terminator
is wrong.
This commit passes the terminator along and changes the response to match
the original request.
printf "\033]10;?\a" replies with "^[]10;rgb:fcfc/fcfc/fcfc^G"
printf "\033]10;?\033\\" replies with "^[]10;rgb:fcfc/fcfc/fcfc^[\"
2020-09-26 14:11:11 +00:00
Nate Graham
c8bd9a816b
Re-word tab context menu's "Configure" item/dialog title for clarity
...
- Make it confirm to the Label HIG (must start with a verb)
- Remove the redundant word "Current", which is implied
- Add the word "Rename" for clarity
- Rename the name of the resulting dialog for clarity
BUG: 426344
FIXED-IN: 20.12
2020-09-14 17:44:21 -06:00
Nicolas Fella
ac49d1e8da
Port away from KToolInvocation::kdeinitExec
...
See https://phabricator.kde.org/T12185
2020-09-04 22:28:32 -04:00
Kurt Hindenburg
140ec1d7db
Revert "Port away from KToolInvocation::kdeinitExec"
...
This broke all the tests
This reverts commit ac8799ba58 .
2020-09-02 08:48:19 -04:00
Nicolas Fella
ac8799ba58
Port away from KToolInvocation::kdeinitExec
...
See https://phabricator.kde.org/T12185
2020-08-16 11:30:06 +00:00
Tomaz Canabrava
faceafcc68
Extract URL from a Escape Sequence and provide a HotSpot for activation
...
This path adds a new feature for konsole, in the form of URL Escaped
Sequences. It allows programs to embbed URL's on texts much like
the anchor tag in html does
There's a allowed list of possible schemas for links, by default
it only accepts http://, https:// and file:// but the user can
add more if he wants.
The maximum amount of URL's accepted is 200, to prevent OOM
History is taken into account while scrooling
2020-08-12 08:20:58 +00:00
Tomaz Canabrava
12530124e8
Revert "Revert "Movo Session to a independent static library""
...
This reverts commit f4bf8a426b .
2020-08-09 15:27:18 +00:00
Tomaz Canabrava
f4bf8a426b
Revert "Movo Session to a independent static library"
...
This reverts commit 4a0f1195b9 .
2020-08-09 15:09:43 +00:00
Gustavo Carneiro
4a0f1195b9
Movo Session to a independent static library
2020-08-06 14:07:35 +00:00
Tomaz Canabrava
c71a0b3f3e
Move ProfileDialog to widgets
...
And fix build using OpenSUSE flags
2020-07-29 17:22:14 +02:00
Tomaz Canabrava
0478529c6f
Move Profile related classes to it's own folder
...
This also allowed me to remove a few includes of Profile.h
around the codebase, that used Profile::Ptr. now the compilation
is a bit faster and also does not recompile things as often.
2020-07-27 19:14:53 +02:00
Gustavo Carneiro
fdad2645f1
Move History files to a new folder.
2020-07-22 00:00:33 -03:00
Gustavo Carneiro
616db49e69
Remove unused History.h and History.cpp files."
2020-07-21 23:47:34 -03:00
Tomaz Canabrava
c6f5dc79c5
Split Filter.cpp into corresponding new files
...
This reduces buildtime when touching on unrelated Filter
classes.
2020-07-19 09:38:35 +00:00
Kurt Hindenburg
e3eba0b2c0
Fix bool implicit conversions
2020-07-15 23:31:49 -04:00
Gustavo Carneiro
07fa804a71
Separates the connection between session and display
2020-07-16 02:09:42 +00:00
Tomaz Canabrava
3ce5ab692b
Port SessionController away from Qt4 Connection Style
2020-07-15 19:26:07 +02:00
Gustavo Carneiro
9b2e9731e0
move Session files to a new folder.
2020-07-15 09:30:42 +00:00