Commit graph

306 commits

Author SHA1 Message Date
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
fourtf 24a1996a68 fix project file 2019-09-08 18:17:18 +02:00
fourtf 9f1eb654fd
Merge branch 'master' into apa-bits 2019-09-08 18:02:58 +02:00
apa420 289811dc7d Moved example cheers to new file 2019-09-08 17:25:42 +00:00
Rasmus Karlsson 256a65a12e Load mod badge information from the FFZ API instead of assuming the URL.
This lets us load all sizes of the emote if they are available.

Channel with all versions of the mod badge: https://api.frankerfacez.com/v1/room/pajlada
Channel with only one version of the mod badge: https://api.frankerfacez.com/v1/room/apa420
Channel with no mod badge: https://api.frankerfacez.com/v1/room/forsen
2019-09-08 14:08:18 +02:00
fourtf a268abfd4c Allow searching in LogsPopup 2019-09-04 00:29:58 +02:00
fourtf 577e2e0a21 moved cache into general page 2019-09-03 12:46:22 +02:00
fourtf 6aa6e084af removed unused settings pages 2019-09-03 11:49:44 +02:00
fourtf ae20acb7ea renamed AccountSwitchPopupWidget -> AccountSwitchPopup
This has been triggering me forever
2019-09-01 14:13:44 +02:00
fourtf a7cd1fbf97 removed unused files 2019-08-20 22:16:17 +02:00
fourtf 7bf5a79f8a Delete emote popup when it is closed. 2019-08-13 16:39:22 +02:00
Rasmus Karlsson 381aaaa2d8 add old warnings.pri file (copied from appbase project) 2019-08-10 23:21:12 +02:00
Edgar af59cce89b 📦 Create appimage 2019-08-04 15:38:00 +02:00
pajlada 8b1f9e91b4
Merge pull request #1173 from AnotherFoxGuy/boost-conan
👷 Manage Boost with conan
2019-08-03 11:46:23 +02:00
Edgar 654712ed64 👷 Manage Boost with conan 2019-08-03 11:39:41 +02:00
Rasmus Karlsson 45e2887ce8 Set our own custom User-Agent on network requests.
Format: chatterino/VERSION (COMMIT HASH)

Fixes #1169
2019-08-03 11:20:19 +02:00
pajlada 4a5a7c84fc
Merge pull request #1153 from AnotherFoxGuy/openssl-conan
👷 Manage OpenSSL libs with conan
2019-07-28 12:23:48 +02:00
fourtf a85e5821ba Remove appbase as an external dependency. 2019-07-23 23:55:31 +02:00
Edgar 88c3a5cb18 👷 Manage OpenSSL libs with conan 2019-07-21 16:12:19 +02:00
rexim 3838157d82 Extract TooltipWidget updating into a separate class 2019-06-12 01:03:04 +07:00
Rasmus Karlsson 8ba8bbeef6 Move environment variable parsing and storage to its own class
Make the Link resolver and Twitch emotes set resolver urls modifiable with
environment variables
2019-05-26 21:44:37 +02:00
Rasmus Karlsson 8c46cbf571 add chatterino icon to linux install script 2019-05-11 00:01:32 +02:00
hemirt c43c1dc207 Adds option to mute ping sound for specific channels (#990)
Co-Authored-By: hemirt <hemirt@hemirt.com>
2019-05-10 22:36:37 +02:00
Rasmus Karlsson 536e86f919 add a reasonable default installation path
modifiable in qmake with the PREFIX argument
i.e. qmake PREFIX=/usr
2019-05-07 11:08:50 +02:00
TranRed 2be81aa877 Update chatterino.pro 2019-05-02 00:01:18 +02:00
TranRed 724ad2118b Update chatterino.pro 2019-05-02 00:01:18 +02:00
TranRed f76df80575 creates common texts for opening streams
Texts for opening streams were used in multiple locations. Created a file to store GUI texts like this and replaced were applicable
2019-05-02 00:01:18 +02:00
23rd 780b1e8622 Fixed icon of application for OS X. 2019-04-27 16:43:03 +03:00
fourtf 9be0d7d458 removed red stripes and connected tape cut visuals 2019-04-17 17:02:13 +02:00
hemirt e1ed3553b5 chatroom emotes 2019-02-26 21:00:57 +01:00
hemirt 63b22ecf1d HistoricMessageAppearance
Merge branch 'master' of https://github.com/fourtf/chatterino2
2019-01-30 16:00:45 +01:00
fourtf 52dcc2130e moved more stuff into appbase 2018-11-25 21:14:42 +01:00
fourtf 0b94d0f763 made appbase compile standalone 2018-11-25 15:02:48 +01:00
fourtf a9ca33f431 moved stuff from chatterino to appbase 2018-11-23 17:51:55 +01:00
fourtf 41a07a43af added switch for appbase standalone 2018-11-23 12:08:24 +01:00
fourtf 38b23d77ce moved BaseWindow and related files into appbase 2018-11-22 22:10:29 +01:00
fourtf 0f8a1a3ff8 added appbase submodule 2018-11-22 19:36:58 +01:00
fourtf 5c720242e4 removed unused dependencies 2018-11-22 19:11:26 +01:00
fourtf cf26f10b80 initial appbase integration 2018-11-21 21:37:41 +01:00
Rasmus Karlsson 57069c609a maybe update chatterino.pro to work for older versions of osx 2018-11-07 12:20:45 +01:00
Rasmus Karlsson 22cf4368bd potentially fix msvc compilation 2018-11-03 15:43:38 +01:00
Rasmus Karlsson ac4a496a06 Update to latest settings library version 2018-11-03 13:00:07 +01:00
fourtf 3c3be99177 new settings page 2018-10-31 19:49:15 +01:00
pphop 3c9bcd581a custom ffz moderator badges (#827) 2018-10-25 21:53:03 +02:00
fourtf bf8bf37eab Merge branch 'master' of https://github.com/fourtf/chatterino2 2018-10-16 14:22:53 +02:00
fourtf 280605e715 added basic code for incognito links 2018-10-16 14:13:19 +02:00
hemirt b3a41e5c1a Closed Splits 2018-10-09 19:48:22 +02:00
pajlada e2a7765964
Merge branch 'master' into apa-notification-on-live 2018-09-16 17:43:53 +02:00
apa420 df7d256c7f
Update chatterino.pro 2018-08-29 09:57:10 +02:00
pajlada 6eb21f4b68
Merge pull request #677 from 23rd/patch-4-link-tooltip-bttv
Added tooltip to links.
2018-08-29 01:23:17 +02:00