Commit graph

204 commits

Author SHA1 Message Date
Josh Megnauth
e4006945c6
Fix tab auto focus on TabCloseForce
Auto focus should only trigger if the current tab is selected or else
closing an unfocused tab would move the focused tab.

See: pop-os/cosmic-files#1949
2026-08-01 20:11:53 -04:00
Nathan Rowe
dfcef22632 Save file to recents on save 2026-06-30 15:58:35 -04:00
Ashley Wulber
12cee06253 fix: libcosmic updates 2026-05-26 14:15:00 -04:00
Rishi Yadav
ffb2c46d6e fix: allow editor focus when project search drawer is open 2026-04-10 13:39:13 -06:00
olekawaii
48b648500e Close application upon closing last tab 2026-04-10 11:38:20 -06:00
Hojjat
0e48718a92 fix: focus the main textbox when clicked 2026-03-31 16:14:06 -04:00
Ashley Wulber
6326f65d84
feat: rebase libcosmic onto iced 0.14 2026-03-18 17:23:49 +01:00
Jeremy Soller
36633540c2 Generate translated desktop and metainfo files with xdgen 2026-02-12 15:13:02 -07:00
Ashley Wulber
2b90abdde9
feat: tab dnd 2026-02-03 12:05:09 -05:00
Jeremy Soller
1c037f0a6e
Fix compilation with new cosmic_text 2026-01-22 09:54:18 -07:00
Jeremy Soller
449ff6b88c
Reload folder tree and git status using recursive watcher 2025-11-11 13:24:50 -07:00
Jeremy Soller
ec78c39a58
Show open project placeholder only if no projects open 2025-11-11 11:50:47 -07:00
Jeremy Soller
2e6487542c
Use ignore crate to build tree view 2025-11-11 11:49:22 -07:00
Jeremy Soller
b48e7b0865
Make context drawer inline 2025-11-10 07:44:29 -07:00
Jeremy Soller
0a3b248c67
Close git diff tabs with same path when new one is opened 2025-11-10 07:44:28 -07:00
Ashley Wulber
73446cdafc fix: focus find on window focus if text box did not have focus 2025-10-24 20:47:07 +02:00
Jeremy Soller
bce1d2aebc
Allow opening of non-existant files, fixes #434 2025-10-14 09:58:44 -06:00
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