1# SPDX-FileCopyrightText: Amolith <amolith@secluded.site>
2#
3# SPDX-License-Identifier: Unlicense
4
5Output demo.gif
6
7Require echo
8Require fish
9
10Set Shell "fish"
11Set FontSize 40
12Set Width 1100
13Set Height 350
14
15# Set up the plugin with a mock runner
16Hide
17Type@1ms "function mock_runner; echo 'Hello! 👋'; end" Enter
18Type@1ms "set -g __AGENTSH_RUNNER mock_runner" Enter
19Type@1ms "source conf.d/agentsh.fish" Enter
20Type@1ms "clear" Enter
21
22# Show the prefix toggle feature
23Type "# Press Ctrl+X to toggle the prefix" Show
24Sleep 3s Enter
25
26# Toggle prefix on and show it appears
27Type "Say hello" Sleep 750ms
28Ctrl+x Sleep 1s
29
30# Submit the command
31Enter Wait+Screen /hello/
32Sleep 3s
33
34# Show normal command works
35Type "# Back to normal shell" Sleep 3s