Commit graph

16 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
f9f329d85f feat: align terminal with local cosmic stack 2026-07-04 11:21:51 +02:00
Hojjat
3d8ca65b75 chore: support more named keys for keyboard shortcuts 2026-05-28 21:18:28 +02:00
Levi Portenier
77114d0320
Merge branch 'master' into jellywx/fix-pageup-pagedown-binds 2026-05-14 14:32:25 -06:00
Chris Glass
27e2d682a5 Cargo fmt 2026-04-10 19:06:54 +02:00
Chris Glass
f50ece41eb Fix all auto-fix from clippy 2026-04-10 18:09:25 +02:00
Hojjat
c8b18c2827 chore: update to the latest libcosmic
applies iced re-export changes
2026-04-09 12:47:22 -04:00
Jude Southworth
24fb50083e Fix binding to the pageup/pagedown keys 2026-04-07 10:53:54 +01:00
Jeremy Soller
f6f8772f5d Change Unbind action to Disable to match cosmic-settings 2026-02-05 13:49:05 -07:00
Jeremy Soller
b9b2153230 Adjust to design and hard-code Copy and Paste special keys 2026-02-05 13:17:18 -07:00
Jeremy Soller
1b980df309 Implement key bind reset 2026-02-05 12:57:56 -07:00
nludwig
70e0f5a5f2 add dialog box when replacing existing keybind 2026-02-03 22:08:34 -08:00
nludwig
cc27b6ab30 fix localization 2026-02-02 15:20:28 -08:00
nludwig
d5f1ac4e91 place shortcuts in existing config 2026-01-29 20:10:25 -08:00
nludwig
e520b7b0e3 use code fallbacks (now in shortcuts.rs), not default config file 2026-01-12 21:40:07 -08:00
nludwig
bf71e1a774 make hotkeys configurable 2025-12-29 20:42:52 -08:00