Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ Developers already spend much of their time in the terminal, yet modern terminal
- **Quick Launch for saved commands and SSH targets**
Save frequently used commands or SSH connections and launch them without retyping the same input every time.

- **Interface localization in ten languages**
Follow the system locale or choose a language from **Settings > General > Language**.

- **Block-based terminal UI**
OTTY structures terminal output activity around atomic command blocks, making it easier to control each command and its output.
Expand Down
1 change: 1 addition & 0 deletions app/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ thiserror = { workspace = true }
serde = { workspace = true }
serde_json = { workspace = true }
shell-words = "1.1.0"
sys-locale = "0.3.2"
notify = "8.2.0"

[package.metadata.generate-rpm]
Expand Down
5 changes: 3 additions & 2 deletions app/src/events/quick_launch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ use iced::Task;
use super::AppEvent;
use crate::app::App;
use crate::domain::quick_launch::WizardTabInit;
use crate::i18n::{self, Key};
use crate::widgets::quick_launch::{
QuickLaunchCtx, QuickLaunchEffect, QuickLaunchEvent, QuickLaunchIntent,
};
Expand Down Expand Up @@ -41,13 +42,13 @@ fn handle_effect(effect: QuickLaunchEffect) -> Task<AppEvent> {
match effect {
QuickLaunchEffect::OpenWizardCreateTab { parent_path } => Task::done(
AppEvent::Tabs(TabsEvent::Intent(TabsIntent::OpenWizardTab {
title: String::from("Create Quick Launch"),
title: i18n::t(Key::QuickLaunchCreateTabTitle).to_string(),
init: WizardTabInit::Create { parent_path },
})),
),
QuickLaunchEffect::OpenWizardEditTab { path, command } => Task::done(
AppEvent::Tabs(TabsEvent::Intent(TabsIntent::OpenWizardTab {
title: format!("Edit: {}", command.title()),
title: i18n::edit_tab_title(command.title()),
init: WizardTabInit::Edit { path, command },
})),
),
Expand Down
21 changes: 16 additions & 5 deletions app/src/events/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ use otty_ui_term::settings::{

use super::AppEvent;
use crate::app::App;
use crate::i18n::{self, Key};
use crate::widgets::settings::types::SettingsData;
use crate::widgets::settings::{SettingsEffect, SettingsEvent, SettingsIntent};
use crate::widgets::tabs::{TabsEvent, TabsIntent};
use crate::widgets::terminal_workspace::services::{
fallback_shell_session_with_shell, setup_shell_session_with_shell,
};
Expand Down Expand Up @@ -74,9 +76,18 @@ fn apply_theme(app: &mut App, data: &SettingsData) -> Task<AppEvent> {
let palette = data.to_color_palette();
let terminal_palette: otty_ui_term::ColorPalette = palette.into();

Task::done(AppEvent::TerminalWorkspace(TerminalWorkspaceEvent::Intent(
TerminalWorkspaceIntent::ApplyTheme {
palette: Box::new(terminal_palette),
},
)))
Task::batch(vec![
Task::done(AppEvent::Tabs(TabsEvent::Intent(
TabsIntent::RefreshSettingsTitle {
title: i18n::t(Key::SettingsTabTitle).to_string(),
},
))),
Task::done(AppEvent::TerminalWorkspace(
TerminalWorkspaceEvent::Intent(
TerminalWorkspaceIntent::ApplyTheme {
palette: Box::new(terminal_palette),
},
),
)),
])
}
Loading
Loading