Commit graph

43 commits

Author SHA1 Message Date
43d38aed8a feat: Konsole parity phase 1 (save output, search options, monitors, profile CLI)
Implements the first batch of COSMIC_TERMINAL_KONSOLE_PARITY.md:

Save output as text:
- New SaveOutput action in the Edit menu, terminal context menu and
  keyboard shortcuts (Ctrl+Shift+S, Konsole parity, rebindable).
- Terminal::scrollback_text() extracts history plus visible screen via
  alacritty bounds_to_string, trimming trailing empty lines.
- Save-file dialog through cosmic-files; the file is written in a
  spawn_blocking task so large scrollbacks never stall the UI.

Search options:
- Case-sensitive and regex checkboxes in the find bar.
- App::find_pattern() escapes the pattern when regex mode is off and
  prefixes (?i) when case-insensitive (same approach as Alacritty).

Per-tab monitors (activity / silence / process finished):
- Toggles in the View menu and terminal context menu, state stored in
  Terminal (monitor_* fields).
- Activity alerts on PTY output (Wakeup) for non-active tabs; silence
  alerts after 10 s without output (Konsole default); process-finished
  compares the shell pgrp with the tty tpgid via /proc/<pid>/stat and
  alerts when the foreground job exits.
- Silence and process checks run on a 1 s iced::time subscription that
  is only active while at least one tab needs it.
- Tab bar shows an armed icon (view-reveal-symbolic) and per-kind alert
  icons; activating the tab acknowledges the alert.

Profile CLI:
- --profile/-p <name-or-id> applies a profile to the first tab only,
  unknown profiles exit(1) with the available list on stderr.
- --list-profiles prints "id<TAB>name" and exits.
- Config is now loaded before the daemonize fork so CLI output reaches
  the launching terminal.
- --help now documents -e/--command, --no-daemon and the new flags
  (-e already worked; audit confirmed everything after it becomes the
  command and its arguments).

i18n: new en/fr strings (save-output, monitor-*, find-case-sensitive,
find-regex).

Validated with ./check_cosmic_local.sh terminal, cargo fmt, and a debug
build exercising the CLI flags and a 6 s live run. The shutdown panic
in iced_winit ("async fn resumed after completion") pre-exists and is
reproducible with the installed binary.

Leyoda 2026 – GPLv3
2026-07-06 09:50:58 +02:00
d5eb4b8308 fix: absorb libcosmic theme-v2 API + reqwest stream feature
Leyoda 2026 – GPLv3
2026-07-04 11:23:11 +02:00
f9f329d85f feat: align terminal with local cosmic stack 2026-07-04 11:21:51 +02:00
James Feister
18b4450c0f
fix: avoid re-reading system theme from disk on every menu bar render 2026-06-12 14:47:00 -06:00
Ashley Wulber
512cc0d250 fix: libcosmic updates 2026-05-26 15:40:59 -04:00
Hojjat
c8b18c2827 chore: update to the latest libcosmic
applies iced re-export changes
2026-04-09 12:47:22 -04:00
Hojjat
8b95675c9b fix: gate wayland features and add inline popover fallback 2026-04-09 12:47:22 -04:00
Ashley Wulber
f62abcea4e
feat: rebase libcosmic onto iced 0.14 2026-03-18 17:21:57 +01:00
Toby Gethin
260bb79728 fix: increase menu width to prevent cutting off toggle maximized 2026-02-21 19:35:37 +11:00
Chris Glass
a6522c4816 Add "Copy link" to context menu 2026-02-15 11:15:12 +01:00
Jeremy Soller
182e1549fd Move keyboard shortcuts to menu item 2026-02-05 11:31:05 -07:00
Balki
64290a519a
Increase width of menu to match cosmic-edit
fixes #281
2026-01-02 21:49:31 +00:00
Mattias Eriksson
d486de067b Show the Open Link menu item at the top of the menu if we have a link 2025-10-21 22:59:36 +02:00
Mattias Eriksson
e7e47d5bac Add context menu for opening links 2025-10-16 09:27:00 +02:00
Mattias Eriksson
71b9fb5226 Implement a simple password manager 2025-10-13 07:19:10 +02:00
Vukašin Vojinović
58b8da4310 chore: Rust 2024 edition 2025-09-11 08:34:15 -06:00
Jeremy Soller
cf9c0c51ae
Adjust shortcut text style 2025-06-27 11:44:40 -06:00
Ashley Wulber
97f87809b9 feat: responsive menu bar 2025-04-15 18:04:55 -06:00
Vukašin Vojinović
77be96e1c2 update libcosmic 2024-12-03 15:08:56 -07:00
Vukašin Vojinović
a432f714de fix(context menu): use radius from theme 2024-11-05 09:22:59 -07:00
Jeremy Soller
8d4bfb992e
Update libcosmic/iced 2024-10-22 12:31:02 -06:00
Joel Höner
4beabca14d Add "Clear scrollback" action 2024-09-19 17:21:42 -06:00
Jeremy Soller
c0d1ab1fb8
Include builtin cosmic dark and light theme in color schemes list, fixes #206 2024-06-05 08:51:26 -06:00
Ashley Wulber
61a5960c70
fix: update libcosmic and use load configured theme instead of defaults 2024-05-30 13:59:14 -04:00
Jeremy Soller
4cec08875f
Merge branch 'master' of https://github.com/pop-os/cosmic-term 2024-04-26 10:27:52 -06:00
Jeremy Soller
f720e63793
Update libcosmic 2024-04-26 10:24:07 -06:00
Daniel Eades
89174c5e0d use implicit iter loops (clippy::explicit_iter_loop) 2024-04-26 10:12:44 -06:00
Eduardo Flores
0ecbb15de3 refactor(menu): update menu declaration.
- Updated libcosmic.
- Updated menu declaration.
2024-03-18 20:47:58 -06:00
Jeremy Soller
c9f99a3025
Add about page 2024-02-27 21:20:00 -07:00
Jeremy Soller
235ebd6180
Split dark and light color schemes 2024-02-22 11:18:13 -07:00
Jeremy Soller
89e1dcb83a
Color Schemes (#142)
* WIP: Color Schemes

* Import/export using color_schemes config

* Finish color scheme implementation

* Add color scheme rename
2024-02-22 09:55:46 -07:00
Jeremy Soller
3a3e42110c
Add support for profiles (#131) 2024-02-09 15:45:46 -07:00
Ashley Wulber
20beeb608a
chore: update libcosmic
keyboard input has changed a lot in iced, but I think I've made the proper adjustments here. vertical splits don't seem to work, but that didn't seem to work before either. Also, there is a black border on the right and bottom of the first tab of the terminal. I'm not sure why yet, but it seems like it is probably related to the scrollbar
2024-02-08 16:57:14 -05:00
Jeremy Soller
6d519018a0
Show shortcuts in context menu 2024-01-19 11:44:59 -07:00
Jeremy Soller
834a385235
Show bindings in menu, finish #26 2024-01-19 11:03:14 -07:00
Mattias Eriksson
1940f2c056 Support splitting of terminals using a Pane Grid 2024-01-17 16:09:56 +01:00
Jeremy Soller
928269a239
Add find stub 2024-01-11 13:20:16 -07:00
Jeremy Soller
2a679ab96f
Fix warnings 2024-01-11 11:40:22 -07:00
Jeremy Soller
db738371ac
Add menu 2024-01-09 10:16:32 -07:00
Jeremy Soller
ccd507594b
Improve look of context menu checkbox 2023-12-22 16:08:43 -07:00
Jeremy Soller
37acfe186e
Add config for showing header bar 2023-12-22 15:40:10 -07:00
Jeremy Soller
7013067582
Fix context menu remaining open some more 2023-12-22 15:25:01 -07:00
Jeremy Soller
40c871bcf3
Add context menu 2023-12-22 15:00:50 -07:00