Commit graph

42 commits

Author SHA1 Message Date
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
686185b0f1
Implement revert all changes, fixes #128 2025-01-17 09:43:46 -07:00
toftpokk
647d29169e Improve text search 2024-12-21 10:42:39 -07: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
695b82a53d
Save file using original line endings 2024-04-30 12:25:07 -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
e337023d8f
Use mime icon cache from cosmic-files 2024-03-04 12:34:02 -07:00
Jeremy Soller
38058fb2e6
Use iced FontSystem and fix #122 2024-02-15 15:23:41 -07:00
Jeremy Soller
1403adb1aa
Fallback to glyph wrapping if word wrapping does not fit 2024-02-02 10:43:20 -07:00
Mark Tomlin
b97eb0603b Remove lazy_static dep. 2024-01-18 20:52:20 -07:00
Mark Tomlin
d7e9e3085f Removed needless refrence. 2024-01-18 20:52:20 -07:00
Michael Aaron Murphy
0581f96f46 feat: improve tab title for mod.rs files 2024-01-16 19:33:20 -07:00
Jeremy Soller
dd459efe06
Simple replace implementation 2024-01-09 13:37:10 -07:00
Jeremy Soller
f3a8fef8f8
Implement find and improvements for focus 2024-01-09 12:40:29 -07:00
Mark Tomlin
aecb80eaed Fixed **many** clippy lints, and one bug. 2023-12-26 10:17:32 -07:00
Jeremy Soller
83bf38f899 Update cosmic-text 2023-12-19 12:07:45 -07:00
Jeremy Soller
e2e92d5dd5
Add read-only git management 2023-12-01 13:23:15 -07:00
Jeremy Soller
f207db0e84
Add tab reload on external change 2023-11-21 11:57:11 -07:00
Jeremy Soller
858bad0f50
Add simple context menu 2023-11-20 11:26:26 -07:00
Jeremy Soller
f0d9bc06e1
Add auto-indent support 2023-11-16 09:00:48 -07:00
Jeremy Soller
b1c6505832
Implement tab width config 2023-11-16 08:44:23 -07:00
Jeremy Soller
3716300139
Show changed status 2023-11-13 14:47:17 -07:00
Jeremy Soller
f76f83565c
Load icons using mime type 2023-11-13 10:33:26 -07:00
Jeremy Soller
7170e64f4a
Configurable app_theme 2023-11-13 09:08:31 -07:00
Jeremy Soller
fdc9c4905b Store font name in config 2023-11-03 19:00:41 -06:00
Jeremy Soller
c8b786d7dc Make config serializable 2023-11-03 16:16:24 -06:00
Jeremy Soller
fd42a47684 Font size setting 2023-11-03 15:58:26 -06:00
Jeremy Soller
6c0e104314
Add support for setting theme and default font 2023-11-03 11:02:25 -06:00
Jeremy Soller
6f0994f752
Select syntax theme based on system theme, update cosmic-text 2023-11-02 12:56:59 -06:00
Jeremy Soller
aee972e171
Add settings page with support for vim bindings toggle 2023-11-01 14:19:39 -06:00
Jeremy Soller
621e9d75eb
Rename wrap setting to word_wrap 2023-11-01 09:44:11 -06:00
Jeremy Soller
a6976daa25
Implement copy/cut/paste, only use iced_winit 2023-10-31 13:18:43 -06:00
Jeremy Soller
b2998f4317
Add translation support 2023-10-30 09:34:36 -06:00
Jeremy Soller
8dd38517ab
Add dialog for opening project, highlight active file in project menu 2023-10-27 13:41:48 -06:00
Jeremy Soller
8566c6f31f
Add configuration and new tab button 2023-10-27 12:28:48 -06:00
Jeremy Soller
49dcb4a84e
Refactor 2023-10-27 12:28:45 -06:00