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
Binary file added docs/images/test-diff-after-tab.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/test-diff-after-tab2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/test-diff-before-tab.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/test-diff.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
37 changes: 37 additions & 0 deletions docs/tapes/test-diff.tape
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
Output docs/images/test-diff.gif

Set Shell "bash"
Set FontSize 16
Set Width 800
Set Height 400
Set Padding 10

Type "./claws"
Enter
Sleep 2s

# Navigate to ec2 instances (has demo data)
Type ":ec2/instances"
Enter
Sleep 2s

# Open command mode and type diff with space
Type ":diff "
Sleep 500ms

Screenshot docs/images/test-diff-before-tab.png

# Press Tab to complete
Tab
Sleep 500ms

Screenshot docs/images/test-diff-after-tab.png

# Press Tab again
Tab
Sleep 500ms

Screenshot docs/images/test-diff-after-tab2.png

Type "q"
Sleep 500ms
1 change: 0 additions & 1 deletion internal/app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,6 @@ func (a *App) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
a.width = msg.Width
a.height = msg.Height
a.help.SetWidth(msg.Width)
a.commandInput.SetWidth(msg.Width)
// Update cached styles with new width
a.styles = newAppStyles(msg.Width)
// Mark warnings ready after first WindowSizeMsg (terminal initialized).
Expand Down
Loading