{"id":26566492,"url":"https://github.com/jncrmx/krunner-count-characters","last_synced_at":"2026-04-30T07:37:20.983Z","repository":{"id":103772934,"uuid":"416689229","full_name":"JnCrMx/krunner-count-characters","owner":"JnCrMx","description":"Plugin for Plasma 5 krunner to count the number of characters in a string","archived":false,"fork":false,"pushed_at":"2023-01-04T03:21:45.000Z","size":15,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-22T18:42:02.127Z","etag":null,"topics":["character-count","character-count-plugin","character-counter","count-characters","krunner"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JnCrMx.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-10-13T10:18:52.000Z","updated_at":"2023-01-04T11:39:03.000Z","dependencies_parsed_at":null,"dependency_job_id":"68bdee25-2105-4837-a148-ecf72081d31e","html_url":"https://github.com/JnCrMx/krunner-count-characters","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/JnCrMx/krunner-count-characters","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JnCrMx%2Fkrunner-count-characters","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JnCrMx%2Fkrunner-count-characters/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JnCrMx%2Fkrunner-count-characters/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JnCrMx%2Fkrunner-count-characters/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JnCrMx","download_url":"https://codeload.github.com/JnCrMx/krunner-count-characters/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JnCrMx%2Fkrunner-count-characters/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261374413,"owners_count":23148977,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["character-count","character-count-plugin","character-counter","count-characters","krunner"],"created_at":"2025-03-22T18:34:30.567Z","updated_at":"2026-04-30T07:37:20.978Z","avatar_url":"https://github.com/JnCrMx.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# krunner-count-characters\n\nPlugin for Plasma 5 krunner to count the number of characters in a string.\n\n![](screenshot.png)\n\n## Why?\nThe original intention of this plugin was to help me quickly determine the size of a string.\nI found myself very often searching the Internet for the same tool to count characters while programming or trying to align some words perfectly.\n\nNot sure if anyone needs this as even my use case is not really the best one, but here we go!\n\n## Installation\n\nTo install the plugin on Kubuntu, run the following commands:\n\n1. Install required software and libraries\n    ```bash\n    sudo apt install cmake make g++ extra-cmake-modules qtbase5-dev qtdeclarative5-dev libkf5i18n-dev libkf5service-dev libkf5runner-dev libkf5textwidgets-dev libkf5plasmaquick5\n    ```\n2. Clone the repository and change into the project directory\n    ```bash\n    git clone https://github.com/JnCrMx/krunner-count-characters\n    cd krunner-count-characters\n    ```\n3. Create a build folder and change into it\n    ```bash\n    mkdir build\n    cd build\n    ```\n4. Configure the plugin with CMake *(Note: ``kf5-config`` is used to determine the appropriate installation paths for your system.)*\n    ```bash\n    cmake .. -DCMAKE_INSTALL_PREFIX=$(kf5-config --prefix) -DKDE_INSTALL_QTPLUGINDIR=$(kf5-config --qt-plugins) -DCMAKE_BUILD_TYPE=Release\n    ```\n5. Build the plugin (alternatively you can also just use ``make``)\n    ```bash\n    cmake --build .\n    ```\n6. Install the plugin (alternatively you can also just use ``sudo make install``)\n    ```bash\n    sudo cmake --build . --target install\n    ```\n7. (Optional) Kill ``krunner`` in order for it refresh plugins\n    ```bash\n    killall krunner\n    ```\n\n## Uninstallation\n\nTo uninstall, navigate back to the ``build`` directory you created in the installation process and use the following command:\n```bash\nsudo cmake --build . --target uninstall\n```\nAlternatively, a simple ``sudo make uninstall`` in that directory might be enough too.\n\n## Possible questions and clarifications\n\n### What is the difference between \"characters\" and \"bytes\"?\nUsually every \"standard\" character can be represented as just one single byte.\nHowever, many locales contain special characters (for example ``ä``, ``ü`` and ``ö`` in German), which might take more than one byte (depending on the charset).\n\nDepending on your use-case you might want to distinguish between those two different sizes a string can have.\nTherefore both are shown seperately.\n\n- \"characters\" refers to the total number of real world characters (``a`` is one character, ``ä`` is also one character); this is the ``length()`` of a ``QString``.\n- \"bytes\" refers to the size of the string if it was encoded in UTF-8 (as returned by ``QString.toUtf8()``); this is the ``length()`` of the ``QByteArray`` returned by said function.\n\nYou might want to experiment a little by trying different strings containing special characters! :smile:\n\n### What is a \"word\"?\nFor this plugin a the number of words is defined as the number of occurrence of the regual, normal ASCII space character (``' ' = 0x20``) in the string **plus one**.\n\nFor example ``\"Hello World!\"`` consists of 2 words by this definition while ``\"Hello World !\"`` consists of 3.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjncrmx%2Fkrunner-count-characters","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjncrmx%2Fkrunner-count-characters","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjncrmx%2Fkrunner-count-characters/lists"}