No description
Find a file
aquiles 801c7fa68c Fix character counting in document statistics to use graphemes
- Add unicode-segmentation dependency for proper grapheme cluster support
- Replace chars() iteration with graphemes(true) for accurate character counting
- Fix counting of complex Unicode characters like emojis, combining characters, and multi-byte sequences
- Resolves TODO: 'do graphemes?' in document_statistics function

This change provides more accurate character counts for international text,
emojis with skin tones, combined characters, and other multi-codepoint graphemes.

Examples of improved accuracy:
- 👍🏾 now counts as 1 character instead of 2
- é (e + combining acute) counts as 1 character instead of 2
- 🧑‍💻 (person technologist) counts as 1 character instead of 4
2025-10-09 08:34:18 -06:00
.github Add issue template 2024-08-27 16:07:34 -06:00
.idea Fix character counting in document statistics to use graphemes 2025-10-09 08:34:18 -06:00
debian feat: menubar popups 2025-06-18 14:38:52 -04:00
i18n i18n: translation updates from weblate 2025-10-09 00:07:40 +02:00
res Add Czech translation to .desktop and metainfo.xml files 2025-10-02 10:16:01 +02:00
src Fix character counting in document statistics to use graphemes 2025-10-09 08:34:18 -06:00
.gitattributes Add metainfo 2024-03-13 09:53:10 -06:00
.gitignore Fix gitignore of debian build directory 2023-11-08 08:48:44 -07:00
Cargo.lock Fix character counting in document statistics to use graphemes 2025-10-09 08:34:18 -06:00
Cargo.toml Fix character counting in document statistics to use graphemes 2025-10-09 08:34:18 -06:00
flake.lock Add flake files 2023-11-02 13:10:20 -06:00
flake.nix build(nix): remove gtk dependency 2024-01-26 17:16:37 +01:00
i18n.toml Add translation support 2023-10-30 09:34:36 -06:00
justfile support CARGO_TARGET_DIR 2024-07-15 08:03:01 -06:00
LICENSE Initial commit 2023-02-07 12:23:07 -07:00
README.md Add metainfo 2024-03-13 09:53:10 -06:00
redoxer.sh Add redoxer script 2023-11-15 09:13:46 -07:00

COSMIC Text Editor

Text editor for the COSMIC desktop

Screenshot

Currently an incomplete pre-alpha, this project is a work in progress - issues are expected.

Testing

You can test by installing a current version of Rust and then building with cargo.

git clone https://github.com/pop-os/cosmic-edit
cd cosmic-edit
cargo build

You can get more detailed errors by using the RUST_LOG environment variables, that you can invoke for just that one command like this: RUST_LOG=debug cargo run. This will give you more detail about the application state. You can go even further with RUST_LOG=trace cargo run, that shows all logging details about the application.

Clippy Lints

PRs are welcome, as it builds a better product for everyone. It is recommended that you check your code with Clippy Lints turned on. You can find more about Configuring Clippy here.