Commit graph

1212 commits

Author SHA1 Message Date
Leon Richardt 93a6c55ed3 Fix subscription messages triggering split highlights (#1519)
Since #1320, subscription messages are treated as highlights in order to
allow customization. This caused subscription messages to highlight the
split(s) the message was received in. This is not intended behavior.

This commit fixes the issue by additionally checking if the
`Subscription` flag is set on a highlighted message.
2020-01-26 10:08:25 +01:00
apa420 4b1202437b Sort emotes alphabetically in emote picker (#1499) 2020-01-25 13:05:59 +01:00
Mm2PL 410de82261 Make a command that shows the Chatterino user card (/usercard) (#1375)
* Make UserInfoPopup be able to show that fetching the information failed.
2020-01-25 12:59:31 +01:00
Rasmus Karlsson 71337c4dbe Add missing include in ColorPickerDialog.hpp for MSVC2017 2020-01-25 11:28:10 +01:00
Leon Richardt 5957551d06 Better Highlights (#1320)
* Support for user-defined sounds and colors

* Make color & sound columns selectable

* Add custom row for subscription highlights

* Add subscriptions to custom highlights and centrally manage highlight colors

* Dynamically update message highlight colors
2020-01-25 11:03:10 +01:00
Alexey Kutepov 00414eb779 Synchronize Clipboard with Primary Selection on Linux when copying (#1502)
* Introduce crossPlatformCopy()

It sets the text of the clipboard and also syncs it with the selection
clipboard if it is supported. Such behaviour is pretty common for X11
application on Unix-like Operating Systems.

* Fix clang-format remarks

* Fix weird clang-format config discrepancy between my machine and CI

* Remove clipboard argument from crossPlatformCopy

* Fix clang-format remarks
2020-01-24 21:36:51 +01:00
pajlada 265bab1ce6
Add the ability to tab through the emote menu (#1483)
Fixes #1478
2020-01-05 09:45:10 +01:00
DatGuy1 a6c91afde4 Remove support for CBenni's Logviewer (#1458) 2020-01-03 21:11:00 +01:00
pajlada 3c8992cac1
Remove FMT dependency (#1472)
All occurrences of log() have been replaced with qDebug()

bonus meme: remove a bunch of std::string usages in the pubsub client

Fixes #1467
2020-01-03 20:51:37 +01:00
Rasmus Karlsson 25a2c04b02 Add lists of valid and invalid links 2019-12-29 15:46:29 +01:00
fourtf 443aba3f9c fixed tooltip deselect issue 2019-12-29 11:14:55 +01:00
fourtf c5e8c5396f oops 2019-12-26 23:41:31 +01:00
fourtf b70806409d workaround for white border 2019-12-26 23:23:59 +01:00
apa420 be898e88dd Add setting to stack bits (#1452) 2019-12-21 10:36:46 +01:00
SupDos ba685b291f Typo in Settings (#1441)
small one character typo
2019-12-15 15:58:58 +01:00
Mm2PL 62cf7cbea2 Remove unmod button for moderators (#1439)
Fixes #1419
2019-12-14 13:22:49 +01:00
Rasmus Karlsson 58e909067e the EmotePopup now inherits from the BasePopup instead of BaseWindow
Fixes #1437
2019-12-14 12:58:15 +01:00
Rasmus Karlsson 55080bd354 Add a "BasePopup" class, which helps add default functionality to any popups (like the search popup) 2019-12-14 12:58:15 +01:00
Rasmus Karlsson bcc53c9aa7 Clean up Twitch badge appending code 2019-12-01 13:32:41 +01:00
23rd d99102cd23 Fixed closing tab with middle button when tab management is not allowed. (#1426) 2019-12-01 02:00:06 -08:00
Rasmus Karlsson 0e1f1196d6 reformat 2019-11-02 12:36:42 +01:00
CommName dc1e4d2544 Show the title when offline (#1347)
* Channel text for offline chats

* Title refresh timer

* Fixed typo

* Refresh title when room id is loaded

* removed timer

* Typo

* Loaded on demand when hovered over

* removed the extra api request

* Moved refreshTitle function call

* Added thottling for 10s

* Fixed formating style

* reformat

* make status fetcher safer

* Requested changes from fourtf
2019-10-12 15:09:12 +02:00
fourtf 8153aa7d40 fixed #1362 rightclick on empty split crash 2019-10-12 11:17:40 +02:00
fourtf 6f710823ed renamed getInstance() -> instance() for singletons 2019-10-07 22:42:34 +02:00
fourtf aeab038bc8 removed get function prefix in Version 2019-10-07 22:32:11 +02:00
fourtf ec2a2f30b7 fixed windows compilation 2019-10-07 22:29:35 +02:00
fourtf f25e52b218 attach extension to opera/vivaldi or all windows 2019-10-07 20:23:28 +02:00
fourtf 0ada53a3c1 tell user they might downgrade in update popup 2019-10-07 19:53:46 +02:00
fourtf 05bcf22af4 clear search field when reopening settings 2019-10-07 17:30:47 +02:00
fourtf b1cbf09427 removed appbase directory 2019-10-07 15:46:41 +02:00
fourtf 9f52564b9c fixes tab and split header title text size 2019-10-06 21:31:59 +02:00
fourtf 16b2b2458c Fixes #1331 emote picker out of bounds 2019-10-05 18:17:29 +02:00
Cranken 252e2e8bae Fix tooltips in chat not showing on ctrl hover. 2019-10-05 17:36:03 +02:00
Leon Richardt d6bcd61289
Fix bug regarding mentions with comma
While tab-completing user names already respected the setting for
mentions with commas, right-clicking user names did not.

This commit adds the missing check in ChannelView::handleMouseClick.
2019-10-03 15:30:51 +02:00
fourtf e31371fdf5 Fixes #1344 Copying user id adds "ID: " 2019-10-01 22:38:21 +02:00
fourtf 9874bd779a formatted all files with clang 9 2019-09-26 00:51:05 +02:00
fourtf 848d5c8789 Fixes #1336 Pause on hover breaks moves selection 2019-09-25 23:49:30 +02:00
fourtf 367b1970fd use C_DEBUG instead of QT_DEBUG 2019-09-22 18:09:11 +02:00
fourtf ca0db97d09 ammend 2.1.5 added setting for experimental irc support 2019-09-22 17:12:09 +02:00
fourtf fc049d8f45 disabled irc and fixed notice messages in write conn not showing 2019-09-22 16:16:08 +02:00
fourtf 431d35e528 added setting to restart on SIGSEGV 2019-09-22 15:32:36 +02:00
fourtf 456065f508 moved resources out of Application 2019-09-22 10:54:32 +02:00
pajlada 038fdd5446
Merge pull request #1326 from CommName/MentionsFix
[Bug fix] Highlights in /mentions
2019-09-22 10:43:13 +02:00
pajlada 1256a7b631
Fix formatting 2019-09-22 10:42:22 +02:00
CommName 5078ecbef1 Highlight bug fix 2019-09-21 22:19:03 +02:00
pajlada 452b65b4dd
Merge pull request #1315 from leon-richardt/commit-hash-settings
Add Version Information to "About" Page
2019-09-21 10:10:04 +02:00
Leon Richardt baf52d7563 Add version information to "About" page 2019-09-19 23:31:04 +02:00
Leon Richardt ddcce73111 Use Version singleton to set window title 2019-09-19 23:30:18 +02:00
fourtf 758a6bb41c NetworkRequest onError now uses NetworkResult 2019-09-19 19:03:50 +02:00
fourtf 88d8bf7cec renamed members in Helpers.cpp 2019-09-18 16:32:07 +02:00
fourtf 5ca0fc0c8f
Merge branch 'master' into moderation 2019-09-18 16:14:45 +02:00
fourtf 99f99f0cff smol fixes 2019-09-18 14:20:21 +02:00
fourtf 3ab7362304 Merge branch 'master' into irc-support 2019-09-18 13:03:16 +02:00
fourtf 997a0598cd changed tab title to "Irc (beta)" 2019-09-18 11:16:07 +02:00
fourtf 07133166d9 added setting to show unhandled irc commands 2019-09-18 11:11:50 +02:00
fourtf 765a75f158 added irc commands 2019-09-18 10:59:28 +02:00
fourtf 27d6cf2bfd reconnect for irc + show errors + nickRequired 2019-09-18 08:05:51 +02:00
fourtf 6298b74884 fixed compilation on non-msvc 2019-09-16 21:08:14 +02:00
fourtf cadff4c430 Fixes #1259 highlight not added when changing channel 2019-09-16 11:54:34 +02:00
fourtf 89fd3bfce9 hide tooltip on split::leaveEvent 2019-09-16 11:48:17 +02:00
fourtf 40c1857c90 added additional dropdown for moderation mode 2019-09-16 11:44:03 +02:00
fourtf 3a9f9fa17b added setting for pause on hover length 2019-09-16 11:36:19 +02:00
fourtf 602a66f5bc Fixes #963 Highlights move while paused 2019-09-16 10:55:54 +02:00
fourtf fd8987cf1b fixed typo 2019-09-16 10:44:05 +02:00
fourtf 63126899ec added pause while key is down 2019-09-16 10:43:20 +02:00
fourtf 0cb918b96a fixed spaces in the wrong place 2019-09-15 17:01:18 +02:00
fourtf 7cbbd72e7f disable updates on windows nightlies 2019-09-15 15:45:04 +02:00
fourtf a390649d0f added sasl auth 2019-09-15 13:15:29 +02:00
fourtf 22ca20ad2a renamed TwitchServer -> TwitchIrcServer 2019-09-15 13:02:02 +02:00
fourtf c3b65b4db0 select the right server in the dialog 2019-09-15 11:42:22 +02:00
fourtf 2a56cef848 added irc authentificate type 2019-09-15 11:35:17 +02:00
fourtf 9bbc4f8a5e queue for erase/set credentials 2019-09-14 22:58:53 +02:00
fourtf 13d1fab303 credentials are now loaded when needed 2019-09-14 20:45:01 +02:00
fourtf d33a8b1b3a now loads passwords for irc 2019-09-14 18:38:09 +02:00
fourtf 7c6f744e73 added insecure credential store 2019-09-13 19:26:52 +02:00
fourtf eadf5355ee renamed IrcConnection_ to IrcServerData 2019-09-11 13:51:48 +02:00
fourtf 158564d0c2 disabled twitch dropdown items for irc chats 2019-09-11 13:34:59 +02:00
fourtf b20fdc0da6 smol irc fixes 2019-09-11 13:17:36 +02:00
fourtf c4d0efacff added loading and saving of irc servers 2019-09-10 23:55:43 +02:00
fourtf 82f63d2f7e added send and receive for irc messages 2019-09-10 14:46:43 +02:00
fourtf 5974438edf added irc tab in SelectChannelView 2019-09-09 22:26:56 +02:00
fourtf 8241ce7097 added qtkeychain dependency 2019-09-09 22:18:56 +02:00
Leon Richardt 720e5aa25f Improvements to Message Search (#1237)
* Ran clang-format

* Implement user-specific search in message history

This functionality was originally requested in #1236.

This commit changes the SearchPopup::performSearch method so that only
messages from specific users can be shown.

In order to filter for a specific user, enter their username with a
leading '@' in the search popup. You can also add an additional search
phrase which will also be considered in the search.

* Naive implementation for "from:" tags

Rebase later?

* Cleverer (?) version using Predicates

Commit adds two POC predicates: one for the author of messages, and one
for substring search in messages.

Problems/TODOs:
* Best way to register new predicates?
* Clean up tags (e.g. "from:") or not?
* Test combinations of different predicates

* Add a predicate to check for links in messages

* Remove a dumb TODO

* Rewrite SearchPopup::performSearch to be cleaner

* Ran clang-format on all files

* Remove TODO I missed earlier

* Forgot to run clang-format

peepoSadDank

* Re-use {}-initialization

Was accidentally removed when fixing earlier merge conflict.

* Does this fix line endings?

No diffs are shown locally, hopefully Git doesn't lie to me.

* Rename "predicates" directory to "search"

Resolving one conversation in the review of #1237.

* Use LinkParser in LinkPredicate

Resolving a conversation in the review of #1237.

* Predicates: Use unique_ptr instead of shared_ptr

Resolves a conversation in the review of #1237.

* Refactor of SearchPopup and AuthorPredicate

Resolving some points from the review in #1237.

* Moved parsing of comma-seperated values into AuthorPredicate
  constructor.
* Rewrite SearchPopup::parsePredicates as suggested.
* Deleted now redundant methods in SearchPopup.

* MessagePredicate::appliesTo now takes a Message&

... instead of a MessagePtr.

This resolves a conversation in the review of #1237.

* Run clang-format on two files I missed

* AuthorPredicate: Check for displayName & loginName

Resolving conversation on #1237.
2019-09-09 15:21:49 +02:00
Leon Richardt b6f632701f Fix merge conflicts 2019-09-08 22:58:17 +02:00
Leon Richardt b06eb9df83 Normalize line endings in already existing files 2019-09-08 22:27:57 +02:00
fourtf 4f356f80cf BaseWindow smol refactor 2019-09-08 21:45:46 +02:00
fourtf 3158ed4085 fixed user popup size issues 2019-09-08 20:05:40 +02:00
fourtf cf23838099 added irc support 2019-09-08 18:06:43 +02:00
fourtf 9f1eb654fd
Merge branch 'master' into apa-bits 2019-09-08 18:02:58 +02:00
apa420 0c6a26d897 IFDEF QT_DEBUG 2019-09-08 17:40:30 +00:00
apa420 ffc483049c Pepega 2019-09-08 17:36:26 +00:00
apa420 289811dc7d Moved example cheers to new file 2019-09-08 17:25:42 +00:00
fourtf c6a05f289d removed useless table column in user highlights 2019-09-08 15:10:10 +02:00
fourtf 87c0ff76e7 added setting to open links in incognito by default 2019-09-08 14:59:51 +02:00
apa420 c08eaa4640 Higher cheer tiers now show and added tests 2019-09-08 13:40:11 +02:00
apa420 cd64b5eff5 Removed old tests 2019-09-08 12:47:36 +02:00
apa420 48fcc1a1a1 Fixed cheers not showing up in chat Fixes #1031 2019-09-08 12:45:25 +02:00
fourtf 4ec10e720c adjusted size of user switch popup 2019-09-08 12:43:12 +02:00
fourtf b14154a811 Fixes #996 can't ctrl+c in search popup 2019-09-08 12:31:27 +02:00
pajlada dd996d1b8a
Merge pull request #1281 from Chatterino/logsGtSearch
Allow searching in LogsPopup
2019-09-08 10:59:13 +02:00