- 程序用 OSC 9 或 OSC 777 notify 请求通知,终端响铃时也提醒;OSC 9 里 ConEmu 的进度条、当前目录等命令不算。 - ShellRS 不在前台时发系统通知,点了回到那个终端;在前台但终端在别的标签 时弹应用内通知,点一下切过去。响铃在终端就在眼前时不提醒。 - 标题是标签名,同一终端程序通知 2 秒、响铃 10 秒内只提醒一次;设置 › 终端 › 通知可分别关掉。 - 启动时设置应用标识 com.shellrs.ShellRS,Windows 安装程序的快捷方式用 同一个 AppUserModelID。 - 不做 OSC 133 长命令通知:要每台服务器装 shell 集成,收益不抵成本。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
47 lines
1.5 KiB
Rust
47 lines
1.5 KiB
Rust
//! ShellRS: an SSH host manager with real SSH and local terminals.
|
|
//!
|
|
//! Modules are organized by capability so they can become crates later:
|
|
//! `host` (主机管理), `terminal` (终端), `ssh` (SSH 连接), `sftp` (SFTP
|
|
//! 传输), `explorer` (SFTP 文件浏览), `forward` (端口转发), `credential`
|
|
//! (凭据), `docker` (Docker), `monitor` (系统监控), `services` (系统服务), `processes` (进程管理),
|
|
//! `netstat` (网络连接), `history` (历史命令), `snippets` (命令片段), `editor` (内置编辑器),
|
|
//! `secrets` (系统钥匙串), `settings` (设置), `cli` (外部 CLI), `update` (在线升级), `connection` 与
|
|
//! `shared` (跨模块共用), `workspace` (窗口壳), `app` (动作、快捷键、资源).
|
|
|
|
pub mod app;
|
|
pub mod cli;
|
|
pub mod connection;
|
|
pub mod credential;
|
|
pub mod docker;
|
|
pub mod editor;
|
|
pub mod explorer;
|
|
pub mod forward;
|
|
pub mod history;
|
|
pub mod host;
|
|
pub mod monitor;
|
|
pub mod netstat;
|
|
pub mod processes;
|
|
pub mod secrets;
|
|
pub mod services;
|
|
pub mod settings;
|
|
pub mod sftp;
|
|
pub mod shared;
|
|
pub mod snippets;
|
|
pub mod ssh;
|
|
pub mod terminal;
|
|
pub mod update;
|
|
pub mod workspace;
|
|
|
|
#[cfg(test)]
|
|
mod testing;
|
|
|
|
/// Initialize GPUI Kit, locale, key bindings and global actions. Call once
|
|
/// inside `Application::run` before creating any view.
|
|
pub fn init(cx: &mut gpui_kit::App) {
|
|
// The identity the system shows notifications under, set before any
|
|
// window opens: on Windows the AppUserModelID, the same as the macOS
|
|
// bundle's.
|
|
cx.set_app_identity("com.shellrs.ShellRS", "ShellRS");
|
|
app::init(cx);
|
|
}
|