Chat client for https://twitch.tv
Find a file
Leon Richardt 58d892a8c2 Make Emote Tab Completion Search for Substrings (#1204)
* Make emote tab completion search for substrings

Previously, tab completion only searched for emotes that start
with the current prefix under the cursor. This commit makes tab
completion look for the current prefix as a substring in any position,
not just the start.

Examples:
    * In forsen's channel, tabbing on "pls" will cycle through "DonaldPls", "forsenPls",
    "GachiPls", "nyanPls" and "SourPls".

    * As a forsen subscriber, tabbing on "sen1" will complete to "forsen1".

    * As a pajlada subscriber, tabbing on "shrug" will cycle through
    "pajaShrugL" and "pajaShrugR". (Unless you are in a channel with
    more "shrug" emotes, of course.)

* Add a setting for prefix and substring completion

This commit adds a setting under the "Miscellaneous" section to allow
user to choose whether they want prefix-only or substring emote
completion.

The QCompleter filter mode and `addString` function are now chosen
according to the user's setting.

* Improve description of emote completion setting

Also reintroduce a blank line that went missing.
2019-08-17 17:17:38 +02:00
.CI Try to fix appimage 2019-08-11 20:35:25 +02:00
.docker Start experimenting with docker ubuntu builds 2019-07-21 12:19:02 +02:00
.github/PULL_REQUEST_TEMPLATE add small pull request template 2019-05-18 15:46:22 +02:00
docs Move environment variable parsing and storage to its own class 2019-05-26 21:44:37 +02:00
lib Removed unused variable (#1206) 2019-08-16 21:17:30 +02:00
resources Added RAnders00 to contributors list 2019-07-14 18:52:16 +02:00
src Make Emote Tab Completion Search for Substrings (#1204) 2019-08-17 17:17:38 +02:00
tests/src Add tests for the UsernameSet and Prefix classes 2019-05-11 14:17:52 +02:00
tools Start experimenting with docker ubuntu builds 2019-07-21 12:19:02 +02:00
.clang-format .clang-format updated: Don't reflow comments 2019-08-04 14:26:34 +02:00
.gitignore Update .gitignore build ignores so it only ignores folders 2019-07-21 12:18:41 +02:00
.gitmodules Remove appbase as an external dependency. 2019-07-23 23:55:31 +02:00
.travis.yml Fixed dmg Travis deployment. 2019-08-13 01:02:35 +03:00
appveyor.yml Added build date in Chatterino title for all platforms of CI. 2019-08-12 11:13:23 +03:00
BUILDING_ON_LINUX.md Add libboost-filesystem-dev to ubuntu dependencies, closes #957 2019-05-09 19:44:40 +02:00
BUILDING_ON_MAC.md Document minimum Qt 5.10 requirement 2018-10-19 22:41:59 +02:00
BUILDING_ON_WINDOWS.md Correct indent 2019-05-01 20:30:14 +02:00
chatterino.pro Delete emote popup when it is closed. 2019-08-13 16:39:22 +02:00
CMakeLists.txt Add tests for the UsernameSet and Prefix classes 2019-05-11 14:17:52 +02:00
conanfile.txt 👷 Manage Boost with conan 2019-08-03 11:39:41 +02:00
ISSUE_TEMPLATE.md Create ISSUE_TEMPLATE.md 2018-01-07 00:16:26 +01:00
Jenkinsfile run distclean before making 2018-08-11 14:16:59 +02:00
LICENSE Add LICENSE file (#130) 2017-10-13 21:57:43 +02:00
README.md Clean up README.md 2019-07-28 13:30:17 +02:00
update_filelist.py added script to update SOURCES and HEADERS in chatternio.pro 2019-04-17 16:59:52 +02:00

alt text Chatterino 2

Chatterino 2 is the second installment of the Twitch chat client series "Chatterino". For now you can check out Chatterino 1 at https://chatterino.com.

Downloading

You can download the latest Chatterino 2 build over here

You might also need to install the VC++ 2017 Redistributable from Microsoft if you do not have it installed already.
If you still receive an error about MSVCR120.dll missing, then you should install the VC++ 2013 Restributable.

Releases for linux and mac will follow soon™

Building

To get source code with required submodules run:

git clone --recurse-submodules https://github.com/Chatterino/chatterino2.git

or

git clone https://github.com/Chatterino/chatterino2.git
cd chatterino2
git submodule update --init --recursive

Building on Windows

Building on Linux

Building on Mac

Code style

The code is formatted using clang format in Qt Creator. .clang-format contains the style file for clang format.

Get it automated with QT Creator + Beautifier + Clang Format

  1. Download LLVM: http://releases.llvm.org/6.0.1/LLVM-6.0.1-win64.exe
  2. During the installation, make sure to add it to your path
  3. In QT Creator, select Help > About Plugins > C++ > Beautifier to enable the plugin
  4. Restart QT Creator
  5. Select Tools > Options > Beautifier
  6. Under General select Tool: ClangFormat and enable Automatic Formatting on File Save
  7. Under Clang Format select Use predefined style: File and Fallback style: None

Qt creator should now format the documents when saving it.