Skip to content

Commit daafea5

Browse files
authored
Merge pull request #6 from papitz/fix/capital_t_not_working
Changed theme selection shortcut from shift+t to ctrl+t
2 parents 8fc3586 + 2277db4 commit daafea5

3 files changed

Lines changed: 7 additions & 5 deletions

File tree

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,8 @@ TUI-Kanban supports multiple color themes to match your terminal preferences and
161161

162162
### Changing Your Theme
163163

164+
The theme can be changed from the UI by pressing `ctrl+p`.
165+
164166
Edit your configuration file at `~/.config/tui-kanban/config.json` (Linux/macOS) or `%APPDATA%\tui-kanban\config.json` (Windows):
165167

166168
```json

src/main.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,16 +52,16 @@ fn run_app<B: ratatui::backend::Backend>(
5252

5353
// handle input
5454
if let Event::Key(key) = event::read()? {
55-
// Handle Ctrl+P globally to open project list
55+
// Handle Ctrl+p globally to open project list
5656
if key.code == KeyCode::Char('p') && key.modifiers.contains(KeyModifiers::CONTROL) {
5757
if app.input_mode == InputMode::Normal {
5858
app.open_project_list();
5959
}
6060
continue;
6161
}
6262

63-
// Handle Shift+T globally to open theme selector
64-
if key.code == KeyCode::Char('T') && key.modifiers.contains(KeyModifiers::SHIFT) {
63+
// Handle Ctrl+t globally to open theme selector
64+
if key.code == KeyCode::Char('t') && key.modifiers.contains(KeyModifiers::CONTROL) {
6565
if app.input_mode == InputMode::Normal {
6666
app.open_theme_selector();
6767
}

src/ui.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -680,7 +680,7 @@ fn draw_help(f: &mut Frame, app: &mut App) {
680680
.fg(app.theme.accent)
681681
.add_modifier(Modifier::BOLD),
682682
)]),
683-
Line::from(" Ctrl+P : Open project list"),
683+
Line::from(" Ctrl+p : Open project list"),
684684
Line::from(" a : Add new project (in project list)"),
685685
Line::from(" d : Delete project (in project list)"),
686686
Line::from(" s : Set selected project as default (in project list)"),
@@ -691,7 +691,7 @@ fn draw_help(f: &mut Frame, app: &mut App) {
691691
.fg(app.theme.accent)
692692
.add_modifier(Modifier::BOLD),
693693
)]),
694-
Line::from(" Shift+T : Change theme"),
694+
Line::from(" Ctrl+t : Change theme"),
695695
Line::from(" ? : Show this help"),
696696
Line::from(" q : Quit application"),
697697
];

0 commit comments

Comments
 (0)