Commit graph

249 commits

Author SHA1 Message Date
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
Jeremy Soller
4b75c32bff Update default font 2025-02-20 11:13:10 -07: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
Hadi Chokr
8e7c6bcf68
Enable saving read-only/root files via pkexec (Fixes #249) (#304)
* Enable saving read-only/root files via pkexec (Fixes #249)

This update addresses the issue where users couldn't open Cosmic Edit as root. It allows users to save read-only or root files using pkexec for privilege escalation, all within the graphical interface of Cosmic Edit, eliminating the need to open the terminal.

Changes:

    Implemented pkexec functionality for saving read-only/root files.
    Added a confirmation dialog for file modifications.

This feature resolves issue #249 and streamlines the process, ensuring a smoother experience for users managing protected files directly within Cosmic Edit.

* Secure pkexec handling with piped stdin and escape safety

Enhanced permission handling by using `pkexec` with `tee` and piped stdin. This implementation avoids shell injection risks and ensures proper handling of special escape characters in the input. The approach securely writes text content to files with elevated privileges while maintaining robustness against potentially malicious inputs.

* Update tab.rs

* Log Errors but dont crash

* Update tab.rs

* Update tab.rs

* Clean up after child (sounds weird...)
2025-01-23 13:47:16 -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
bde7e2bfc2
Don't capture ctrl+tab in text box, fixes #123 2025-01-17 09:49:30 -07:00
Jeremy Soller
686185b0f1
Implement revert all changes, fixes #128 2025-01-17 09:43:46 -07:00
Jeremy Soller
03de470425 Remove unimplemented spell-check menu item, fixes #300 2025-01-16 12:43:35 -07:00
toftpokk
c6cd819fff Fix clicking outside textbox to unfocus 2024-12-22 07:35:33 -07:00
toftpokk
647d29169e Improve text search 2024-12-21 10:42:39 -07:00
Vukašin Vojinović
86bcadb9e7 update libcosmic 2024-12-03 15:09:06 -07:00
Vukašin Vojinović
740692d6cf fix(context menu): use radius from theme 2024-11-05 09:19:27 -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
Camerin Figueroa
5546ed9988 Fixed selection bug when finding or replacing text
Fixed bug where the selection wouldn't reset after finding or replacing text
Also added functionality to find to select text being searched for
2024-10-07 15:47:34 -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
6bc62fa8ba
Update dependencies 2024-09-06 07:29:28 -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
Josh Megnauth
d7e46938ae Replace lexical-sort with icu
`lexical-sort` is unmaintained. The author recommends switching to the
official set of ICU crates.
2024-07-09 06:08:22 -06:00
Jeremy Soller
4eb631c9a1
Update dependencies 2024-06-12 09:45:12 -06:00
Jeremy Soller
3f2af19d9e
Update dependencies 2024-06-12 08:18:22 -06:00
Jeremy Soller
c2f49c8422
Only list font names once 2024-06-10 08:49:52 -06:00
Jeremy Soller
0693acfdd4
Update dependencies 2024-06-10 08:35:49 -06:00
Jeremy Soller
62605f73c7
Add cancel button to unsaved changes dialogs, fixes #189 2024-05-31 08:29:30 -06:00
Jeremy Soller
0ae48666d8
Implement horizontal scrollbar drag, fixes #59 2024-05-31 08:14:36 -06:00
Jeremy Soller
fe280423b8
Fix rendering of horizontal scrollbar, related to #59 2024-05-30 15:52:53 -06:00
Jeremy Soller
55e89579ad
Fix location of horizontal scrollbar 2024-05-30 15:41:28 -06:00
Jeremy Soller
53d7b06926
Show horizontal scrollbar if necessary, related to #59 2024-05-30 15:37:04 -06:00
Jeremy Soller
68dd4c3758
Allow horizontal scroll to fit cursor, related to #59 2024-05-30 15:09:57 -06:00
Ashley Wulber
102a3f1d2d update libcosmic 2024-05-30 13:20:54 -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
Jeremy Soller
695b82a53d
Save file using original line endings 2024-04-30 12:25:07 -06:00
Jeremy Soller
0fa09ab57b
Update cosmic-text, fixing CRLF handling (#64) 2024-04-30 12:22:39 -06:00
Jeremy Soller
42cade3149
Update libcosmic 2024-04-30 08:43:55 -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