Skip to content

Commit 17a935a

Browse files
committed
feat: update gif, update README
1 parent e028beb commit 17a935a

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,27 @@ Az-TUI is a **terminal-based user interface (TUI)** for managing Azure Container
2323
- `Esc` – Go back (in nested views)
2424
- `Enter` – Select/drill down
2525
- `?` – Toggle help
26+
- `:` – Context switching (VIM/k9s-like navigation)
2627
- `Shift+←` / `Shift+→` – Scroll table left/right
2728

29+
### Context Switching
30+
31+
Az-TUI now supports **VIM/k9s-like context switching** for quick navigation between different views:
32+
33+
- Press `:` to open the context selection menu
34+
- Use ``/`k` and ``/`j` to navigate between available contexts
35+
- Press `Enter` to switch to the selected context
36+
- Press `Esc` to cancel context switching
37+
38+
**Context behavior:**
39+
- **From Resource Groups**: Switch to Container Apps or Jobs (preserves or clears resource group selection)
40+
- **From Container Apps**: Switch between Apps and Jobs (preserves current resource group)
41+
- **From Revisions**: Stay in Revisions view (preserves resource group and app selection)
42+
- **From Containers**: Stay in Containers view (preserves all current selections)
43+
- **From Environment Variables**: Stay in Env Vars view (preserves all selections)
44+
45+
The context menu shows only relevant navigation options for your current mode and automatically preserves your selection state when switching contexts.
46+
2847
### Resource Groups Mode
2948

3049
- `r` – Refresh resource groups
@@ -122,12 +141,14 @@ Navigate with arrow keys or `j`/`k`, drill down with `Enter`, and use the key bi
122141
Az-TUI uses the [Bubble Tea](https://github.com/charmbracelet/bubbletea) framework:
123142

124143
- **Modes:** `resource groups``apps``revisions``containers``environment variables`
144+
- **Context switching:** VIM/k9s-like navigation system with `:` key for quick mode switching
125145
- **Data providers:** Pluggable architecture supporting both Azure CLI and mock data sources
126146
- **Azure CLI integration:** Fetches data using `az containerapp` and `az group` commands
127147
- **Mock data system:** JSON-based mock data for development and testing
128148
- **UI Components:** Bubble Table for data display with filtering and navigation
129149
- **Asynchronous updates:** Commands run in background and update the model via messages
130150
- **Help system:** Built-in help with `?` key showing context-sensitive keybindings
151+
- **State preservation:** Context switching maintains current selections across mode changes
131152

132153
## Roadmap
133154

demo.gif

25.9 KB
Loading

0 commit comments

Comments
 (0)