Jeremy Soller
117f00337d
Preserve newlines and get closest cursor on reload, fixes #390
2025-10-09 12:28:39 -06:00
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
aquiles
4bf88ae6ad
Refactor: Extract monospace_attrs() helper to eliminate code duplication
...
- Add monospace_attrs() function in main.rs to centralize monospace font attributes creation
- Replace duplicated Attrs::new().family(Family::Monospace) calls in:
* line_number.rs: LineNumberCache::get() method
* main.rs: App::init() font enumeration
* tab.rs: EditorTab::new() constructor
- Remove unused imports (Attrs, Family) from line_number.rs
- Resolves TODO comments about code repetition across modules
This change improves maintainability by having a single source of truth
for monospace font configuration.
2025-10-05 06:22:37 +00:00
Ashley Wulber
bde36a3c17
chore: update libcosmic
2025-10-03 15:02:53 -04:00
Vukašin Vojinović
ee4272112e
chore: make dbus-config optional
2025-09-13 10:53:00 +02:00
Vukašin Vojinović
b380b1bf32
chore: update dependencies
...
Also switches to the `about` widget.
2025-09-11 19:36:09 +02:00
Vukašin Vojinović
e405b929c1
chore: Rust 2024 edition
2025-09-11 16:26:28 +02:00
Michael Aaron Murphy
a5ee0e75d8
improv: use new and improved FileNav style
2025-08-19 16:32:01 +02:00
Jeremy Soller
863f570b56
Fix compilation with new cosmic-files dialog API
2025-07-01 09:38:23 -06:00
Ashley Wulber
c47c12fe17
feat: menubar popups
2025-06-18 14:38:52 -04:00
Ashley Wulber
9336731c7d
feat: responsive menu
2025-04-16 20:35:40 +02:00
Jeremy Soller
2fc1abe0b8
Update dependencies
2025-03-31 09:16:20 -06:00
l-const
f97b4fe76c
perf: reduce disk io when updating config values.
2025-02-19 07:50:14 +02:00
l-const
f67a6b5a02
chore: remove forgotten eprintln.
2025-02-18 13:19:11 -07:00
l-const
5b71f5f850
(feat): Text zoom for cosmic-edit.
2025-02-18 12:43:00 -07:00
Jeremy Soller
04f2812f4e
Implement drag scroll, fixes #154
2025-02-05 15:28:38 -07:00
Jeremy Soller
3effc64df5
Fix closing projects when open project button is shown, fixes #41
2025-01-17 10:10:14 -07:00
Jeremy Soller
686185b0f1
Implement revert all changes, fixes #128
2025-01-17 09:43:46 -07:00
Vukašin Vojinović
86bcadb9e7
update libcosmic
2024-12-03 15:09:06 -07:00
Jeremy Soller
5b0d05d2cb
Update libcosmic/iced
2024-10-22 11:55:58 -06:00
Jason Rodney Hansen
e1ec093429
Fix clicking directories in nav bar in condensed mode
...
This fixes the issue where the nav bar would close when clicking a directory
in the nav bar when the window width was reduced to a size where only
the nav bar was visible.
2024-10-14 09:47:19 -06:00
Jeremy Soller
9be376c8af
Update dependencies
2024-10-10 11:22:41 -06:00
RaspberryProgramming
f9ee60f1b7
Added Wrap around functionality to Replace menu
2024-10-06 09:00:38 -06:00
RaspberryProgramming
5070f0c696
Added wrap around feature to find menu
2024-10-06 09:00:38 -06:00
Jeremy Soller
d8b74620c8
Update dependencies
2024-09-20 19:44:54 -06:00
Jeremy Soller
220cd93777
Update dependencies and fix focus in vi mode
2024-08-19 13:43:37 -06:00
Josh Megnauth
addf93f899
Replace empty, unsaved, activated tab on file load
...
Closes : #203
2024-07-15 08:07:33 -06:00
Vukašin Vojinović
995249eea6
Text button for Cancel in unsaved changes dialog ( #213 )
...
* chore: use text button for cancel
* cargo fmt
* fix: use text button for cancel
The text will use the accent color after updating libcosmic
* fmt
2024-07-15 08:03:49 -06:00
Jeremy Soller
4eb631c9a1
Update dependencies
2024-06-12 09:45:12 -06:00
Jeremy Soller
c2f49c8422
Only list font names once
2024-06-10 08:49:52 -06:00
Jeremy Soller
62605f73c7
Add cancel button to unsaved changes dialogs, fixes #189
2024-05-31 08:29:30 -06:00
Jeremy Soller
4b4897878a
Update dependencies
2024-05-28 19:12:09 -06:00
Jeremy Soller
e26175b28d
Add dialog for saving all unsaved tabs when closing app, fixes #169
2024-05-15 10:20:40 -06:00
Jeremy Soller
4716c2242b
Allow for staging and unstaging in git management view
2024-05-14 11:45:39 -06:00
Ashley Wulber
cfebad159f
fix: focus the text box when the window gains focus
2024-05-09 11:20:13 -06:00
Josh Megnauth
93e993d72e
fix: Unsaved changes should be dialogs
...
Closes : #174
2024-04-25 20:02:55 -06:00
Josh Megnauth
3d4fa84759
Update unsaved status on undo/redo/replace/paste
...
Fixes : #116
Issue #116 concerns undo and redo, but I also found a few other
instances where the unsaved indicator wasn't correctly updated. I fixed
those as well.
2024-03-26 08:59:28 -06:00
Jeremy Soller
59933e6a03
Add case sensitive and use regex toggles for find, fixes #144
2024-03-25 10:18:28 -06:00
Jeremy Soller
abfb5d845f
Only parse app global shortcuts when ignored by widgets, fixes #120 and #164
2024-03-25 09:32:46 -06:00
Jeremy Soller
07115fd891
Merge pull request #162 from edfloreshz/master
...
refactor(menu): update menu declaration.
2024-03-18 20:30:04 -06:00
Jeremy Soller
0eaaeab652
Fix missing open project button
2024-03-18 09:49:15 -06:00
Jeremy Soller
4e678873da
Open nav bar when project is opened, fixes #156
2024-03-18 09:38:40 -06:00
Eduardo Flores
4196135665
refactor(menu): update menu declaration.
...
- Updated libcosmic.
- Updated menu declaration.
2024-03-18 03:02:33 -07:00
Jeremy Soller
e337023d8f
Use mime icon cache from cosmic-files
2024-03-04 12:34:02 -07:00
Jeremy Soller
cfe15d9a78
Fix default nav_bar width
2024-03-01 09:10:12 -07:00
Jeremy Soller
e95998c204
Shorten hash in UI
2024-02-28 13:38:34 -07:00
Jeremy Soller
ff1d216207
Remove about heading
2024-02-28 09:33:26 -07:00
Jeremy Soller
4f95f6509b
Sort messages alphabetically
2024-02-28 09:13:11 -07:00
Jeremy Soller
a305f7501e
Adjust about page to match design, open links
2024-02-28 09:11:23 -07:00
Jeremy Soller
b77e89d762
Add icons and about page
2024-02-28 08:57:36 -07:00