Skip to content

Commit 1acc360

Browse files
committed
Add non-printable key to footer snapshot
1 parent 114d028 commit 1acc360

File tree

2 files changed

+59
-58
lines changed

2 files changed

+59
-58
lines changed

docs/examples/widgets/footer.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ class FooterApp(App):
1212
description="Show help screen",
1313
key_display="?",
1414
),
15+
Binding(key="delete", action="delete", description="Delete the thing"),
1516
Binding(key="j", action="down", description="Scroll down", show=False),
1617
]
1718

tests/snapshot_tests/__snapshots__/test_snapshots.ambr

Lines changed: 58 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -5104,134 +5104,134 @@
51045104
font-weight: 700;
51055105
}
51065106

5107-
.terminal-1908614482-matrix {
5107+
.terminal-870899994-matrix {
51085108
font-family: Fira Code, monospace;
51095109
font-size: 20px;
51105110
line-height: 24.4px;
51115111
font-variant-east-asian: full-width;
51125112
}
51135113

5114-
.terminal-1908614482-title {
5114+
.terminal-870899994-title {
51155115
font-size: 18px;
51165116
font-weight: bold;
51175117
font-family: arial;
51185118
}
51195119

5120-
.terminal-1908614482-r1 { fill: #e1e1e1 }
5121-
.terminal-1908614482-r2 { fill: #c5c8c6 }
5122-
.terminal-1908614482-r3 { fill: #dde8f3;font-weight: bold }
5123-
.terminal-1908614482-r4 { fill: #ddedf9 }
5120+
.terminal-870899994-r1 { fill: #e1e1e1 }
5121+
.terminal-870899994-r2 { fill: #c5c8c6 }
5122+
.terminal-870899994-r3 { fill: #dde8f3;font-weight: bold }
5123+
.terminal-870899994-r4 { fill: #ddedf9 }
51245124
</style>
51255125

51265126
<defs>
5127-
<clipPath id="terminal-1908614482-clip-terminal">
5127+
<clipPath id="terminal-870899994-clip-terminal">
51285128
<rect x="0" y="0" width="975.0" height="584.5999999999999" />
51295129
</clipPath>
5130-
<clipPath id="terminal-1908614482-line-0">
5130+
<clipPath id="terminal-870899994-line-0">
51315131
<rect x="0" y="1.5" width="976" height="24.65"/>
51325132
</clipPath>
5133-
<clipPath id="terminal-1908614482-line-1">
5133+
<clipPath id="terminal-870899994-line-1">
51345134
<rect x="0" y="25.9" width="976" height="24.65"/>
51355135
</clipPath>
5136-
<clipPath id="terminal-1908614482-line-2">
5136+
<clipPath id="terminal-870899994-line-2">
51375137
<rect x="0" y="50.3" width="976" height="24.65"/>
51385138
</clipPath>
5139-
<clipPath id="terminal-1908614482-line-3">
5139+
<clipPath id="terminal-870899994-line-3">
51405140
<rect x="0" y="74.7" width="976" height="24.65"/>
51415141
</clipPath>
5142-
<clipPath id="terminal-1908614482-line-4">
5142+
<clipPath id="terminal-870899994-line-4">
51435143
<rect x="0" y="99.1" width="976" height="24.65"/>
51445144
</clipPath>
5145-
<clipPath id="terminal-1908614482-line-5">
5145+
<clipPath id="terminal-870899994-line-5">
51465146
<rect x="0" y="123.5" width="976" height="24.65"/>
51475147
</clipPath>
5148-
<clipPath id="terminal-1908614482-line-6">
5148+
<clipPath id="terminal-870899994-line-6">
51495149
<rect x="0" y="147.9" width="976" height="24.65"/>
51505150
</clipPath>
5151-
<clipPath id="terminal-1908614482-line-7">
5151+
<clipPath id="terminal-870899994-line-7">
51525152
<rect x="0" y="172.3" width="976" height="24.65"/>
51535153
</clipPath>
5154-
<clipPath id="terminal-1908614482-line-8">
5154+
<clipPath id="terminal-870899994-line-8">
51555155
<rect x="0" y="196.7" width="976" height="24.65"/>
51565156
</clipPath>
5157-
<clipPath id="terminal-1908614482-line-9">
5157+
<clipPath id="terminal-870899994-line-9">
51585158
<rect x="0" y="221.1" width="976" height="24.65"/>
51595159
</clipPath>
5160-
<clipPath id="terminal-1908614482-line-10">
5160+
<clipPath id="terminal-870899994-line-10">
51615161
<rect x="0" y="245.5" width="976" height="24.65"/>
51625162
</clipPath>
5163-
<clipPath id="terminal-1908614482-line-11">
5163+
<clipPath id="terminal-870899994-line-11">
51645164
<rect x="0" y="269.9" width="976" height="24.65"/>
51655165
</clipPath>
5166-
<clipPath id="terminal-1908614482-line-12">
5166+
<clipPath id="terminal-870899994-line-12">
51675167
<rect x="0" y="294.3" width="976" height="24.65"/>
51685168
</clipPath>
5169-
<clipPath id="terminal-1908614482-line-13">
5169+
<clipPath id="terminal-870899994-line-13">
51705170
<rect x="0" y="318.7" width="976" height="24.65"/>
51715171
</clipPath>
5172-
<clipPath id="terminal-1908614482-line-14">
5172+
<clipPath id="terminal-870899994-line-14">
51735173
<rect x="0" y="343.1" width="976" height="24.65"/>
51745174
</clipPath>
5175-
<clipPath id="terminal-1908614482-line-15">
5175+
<clipPath id="terminal-870899994-line-15">
51765176
<rect x="0" y="367.5" width="976" height="24.65"/>
51775177
</clipPath>
5178-
<clipPath id="terminal-1908614482-line-16">
5178+
<clipPath id="terminal-870899994-line-16">
51795179
<rect x="0" y="391.9" width="976" height="24.65"/>
51805180
</clipPath>
5181-
<clipPath id="terminal-1908614482-line-17">
5181+
<clipPath id="terminal-870899994-line-17">
51825182
<rect x="0" y="416.3" width="976" height="24.65"/>
51835183
</clipPath>
5184-
<clipPath id="terminal-1908614482-line-18">
5184+
<clipPath id="terminal-870899994-line-18">
51855185
<rect x="0" y="440.7" width="976" height="24.65"/>
51865186
</clipPath>
5187-
<clipPath id="terminal-1908614482-line-19">
5187+
<clipPath id="terminal-870899994-line-19">
51885188
<rect x="0" y="465.1" width="976" height="24.65"/>
51895189
</clipPath>
5190-
<clipPath id="terminal-1908614482-line-20">
5190+
<clipPath id="terminal-870899994-line-20">
51915191
<rect x="0" y="489.5" width="976" height="24.65"/>
51925192
</clipPath>
5193-
<clipPath id="terminal-1908614482-line-21">
5193+
<clipPath id="terminal-870899994-line-21">
51945194
<rect x="0" y="513.9" width="976" height="24.65"/>
51955195
</clipPath>
5196-
<clipPath id="terminal-1908614482-line-22">
5196+
<clipPath id="terminal-870899994-line-22">
51975197
<rect x="0" y="538.3" width="976" height="24.65"/>
51985198
</clipPath>
51995199
</defs>
52005200

5201-
<rect fill="#292929" stroke="rgba(255,255,255,0.35)" stroke-width="1" x="1" y="1" width="992" height="633.6" rx="8"/><text class="terminal-1908614482-title" fill="#c5c8c6" text-anchor="middle" x="496" y="27">FooterApp</text>
5201+
<rect fill="#292929" stroke="rgba(255,255,255,0.35)" stroke-width="1" x="1" y="1" width="992" height="633.6" rx="8"/><text class="terminal-870899994-title" fill="#c5c8c6" text-anchor="middle" x="496" y="27">FooterApp</text>
52025202
<g transform="translate(26,22)">
52035203
<circle cx="0" cy="0" r="7" fill="#ff5f57"/>
52045204
<circle cx="22" cy="0" r="7" fill="#febc2e"/>
52055205
<circle cx="44" cy="0" r="7" fill="#28c840"/>
52065206
</g>
52075207

5208-
<g transform="translate(9, 41)" clip-path="url(#terminal-1908614482-clip-terminal)">
5209-
<rect fill="#1e1e1e" x="0" y="1.5" width="976" height="24.65" shape-rendering="crispEdges"/><rect fill="#1e1e1e" x="0" y="25.9" width="976" height="24.65" shape-rendering="crispEdges"/><rect fill="#1e1e1e" x="0" y="50.3" width="976" height="24.65" shape-rendering="crispEdges"/><rect fill="#1e1e1e" x="0" y="74.7" width="976" height="24.65" shape-rendering="crispEdges"/><rect fill="#1e1e1e" x="0" y="99.1" width="976" height="24.65" shape-rendering="crispEdges"/><rect fill="#1e1e1e" x="0" y="123.5" width="976" height="24.65" shape-rendering="crispEdges"/><rect fill="#1e1e1e" x="0" y="147.9" width="976" height="24.65" shape-rendering="crispEdges"/><rect fill="#1e1e1e" x="0" y="172.3" width="976" height="24.65" shape-rendering="crispEdges"/><rect fill="#1e1e1e" x="0" y="196.7" width="976" height="24.65" shape-rendering="crispEdges"/><rect fill="#1e1e1e" x="0" y="221.1" width="976" height="24.65" shape-rendering="crispEdges"/><rect fill="#1e1e1e" x="0" y="245.5" width="976" height="24.65" shape-rendering="crispEdges"/><rect fill="#1e1e1e" x="0" y="269.9" width="976" height="24.65" shape-rendering="crispEdges"/><rect fill="#1e1e1e" x="0" y="294.3" width="976" height="24.65" shape-rendering="crispEdges"/><rect fill="#1e1e1e" x="0" y="318.7" width="976" height="24.65" shape-rendering="crispEdges"/><rect fill="#1e1e1e" x="0" y="343.1" width="976" height="24.65" shape-rendering="crispEdges"/><rect fill="#1e1e1e" x="0" y="367.5" width="976" height="24.65" shape-rendering="crispEdges"/><rect fill="#1e1e1e" x="0" y="391.9" width="976" height="24.65" shape-rendering="crispEdges"/><rect fill="#1e1e1e" x="0" y="416.3" width="976" height="24.65" shape-rendering="crispEdges"/><rect fill="#1e1e1e" x="0" y="440.7" width="976" height="24.65" shape-rendering="crispEdges"/><rect fill="#1e1e1e" x="0" y="465.1" width="976" height="24.65" shape-rendering="crispEdges"/><rect fill="#1e1e1e" x="0" y="489.5" width="976" height="24.65" shape-rendering="crispEdges"/><rect fill="#1e1e1e" x="0" y="513.9" width="976" height="24.65" shape-rendering="crispEdges"/><rect fill="#1e1e1e" x="0" y="538.3" width="976" height="24.65" shape-rendering="crispEdges"/><rect fill="#0053aa" x="0" y="562.7" width="36.6" height="24.65" shape-rendering="crispEdges"/><rect fill="#0178d4" x="36.6" y="562.7" width="170.8" height="24.65" shape-rendering="crispEdges"/><rect fill="#0053aa" x="207.4" y="562.7" width="36.6" height="24.65" shape-rendering="crispEdges"/><rect fill="#0178d4" x="244" y="562.7" width="219.6" height="24.65" shape-rendering="crispEdges"/><rect fill="#0178d4" x="463.6" y="562.7" width="512.4" height="24.65" shape-rendering="crispEdges"/>
5210-
<g class="terminal-1908614482-matrix">
5211-
<text class="terminal-1908614482-r2" x="976" y="20" textLength="12.2" clip-path="url(#terminal-1908614482-line-0)">
5212-
</text><text class="terminal-1908614482-r2" x="976" y="44.4" textLength="12.2" clip-path="url(#terminal-1908614482-line-1)">
5213-
</text><text class="terminal-1908614482-r2" x="976" y="68.8" textLength="12.2" clip-path="url(#terminal-1908614482-line-2)">
5214-
</text><text class="terminal-1908614482-r2" x="976" y="93.2" textLength="12.2" clip-path="url(#terminal-1908614482-line-3)">
5215-
</text><text class="terminal-1908614482-r2" x="976" y="117.6" textLength="12.2" clip-path="url(#terminal-1908614482-line-4)">
5216-
</text><text class="terminal-1908614482-r2" x="976" y="142" textLength="12.2" clip-path="url(#terminal-1908614482-line-5)">
5217-
</text><text class="terminal-1908614482-r2" x="976" y="166.4" textLength="12.2" clip-path="url(#terminal-1908614482-line-6)">
5218-
</text><text class="terminal-1908614482-r2" x="976" y="190.8" textLength="12.2" clip-path="url(#terminal-1908614482-line-7)">
5219-
</text><text class="terminal-1908614482-r2" x="976" y="215.2" textLength="12.2" clip-path="url(#terminal-1908614482-line-8)">
5220-
</text><text class="terminal-1908614482-r2" x="976" y="239.6" textLength="12.2" clip-path="url(#terminal-1908614482-line-9)">
5221-
</text><text class="terminal-1908614482-r2" x="976" y="264" textLength="12.2" clip-path="url(#terminal-1908614482-line-10)">
5222-
</text><text class="terminal-1908614482-r2" x="976" y="288.4" textLength="12.2" clip-path="url(#terminal-1908614482-line-11)">
5223-
</text><text class="terminal-1908614482-r2" x="976" y="312.8" textLength="12.2" clip-path="url(#terminal-1908614482-line-12)">
5224-
</text><text class="terminal-1908614482-r2" x="976" y="337.2" textLength="12.2" clip-path="url(#terminal-1908614482-line-13)">
5225-
</text><text class="terminal-1908614482-r2" x="976" y="361.6" textLength="12.2" clip-path="url(#terminal-1908614482-line-14)">
5226-
</text><text class="terminal-1908614482-r2" x="976" y="386" textLength="12.2" clip-path="url(#terminal-1908614482-line-15)">
5227-
</text><text class="terminal-1908614482-r2" x="976" y="410.4" textLength="12.2" clip-path="url(#terminal-1908614482-line-16)">
5228-
</text><text class="terminal-1908614482-r2" x="976" y="434.8" textLength="12.2" clip-path="url(#terminal-1908614482-line-17)">
5229-
</text><text class="terminal-1908614482-r2" x="976" y="459.2" textLength="12.2" clip-path="url(#terminal-1908614482-line-18)">
5230-
</text><text class="terminal-1908614482-r2" x="976" y="483.6" textLength="12.2" clip-path="url(#terminal-1908614482-line-19)">
5231-
</text><text class="terminal-1908614482-r2" x="976" y="508" textLength="12.2" clip-path="url(#terminal-1908614482-line-20)">
5232-
</text><text class="terminal-1908614482-r2" x="976" y="532.4" textLength="12.2" clip-path="url(#terminal-1908614482-line-21)">
5233-
</text><text class="terminal-1908614482-r2" x="976" y="556.8" textLength="12.2" clip-path="url(#terminal-1908614482-line-22)">
5234-
</text><text class="terminal-1908614482-r3" x="0" y="581.2" textLength="36.6" clip-path="url(#terminal-1908614482-line-23)">&#160;Q&#160;</text><text class="terminal-1908614482-r4" x="36.6" y="581.2" textLength="170.8" clip-path="url(#terminal-1908614482-line-23)">&#160;Quit&#160;the&#160;app&#160;</text><text class="terminal-1908614482-r3" x="207.4" y="581.2" textLength="36.6" clip-path="url(#terminal-1908614482-line-23)">&#160;?&#160;</text><text class="terminal-1908614482-r4" x="244" y="581.2" textLength="219.6" clip-path="url(#terminal-1908614482-line-23)">&#160;Show&#160;help&#160;screen&#160;</text>
5208+
<g transform="translate(9, 41)" clip-path="url(#terminal-870899994-clip-terminal)">
5209+
<rect fill="#1e1e1e" x="0" y="1.5" width="976" height="24.65" shape-rendering="crispEdges"/><rect fill="#1e1e1e" x="0" y="25.9" width="976" height="24.65" shape-rendering="crispEdges"/><rect fill="#1e1e1e" x="0" y="50.3" width="976" height="24.65" shape-rendering="crispEdges"/><rect fill="#1e1e1e" x="0" y="74.7" width="976" height="24.65" shape-rendering="crispEdges"/><rect fill="#1e1e1e" x="0" y="99.1" width="976" height="24.65" shape-rendering="crispEdges"/><rect fill="#1e1e1e" x="0" y="123.5" width="976" height="24.65" shape-rendering="crispEdges"/><rect fill="#1e1e1e" x="0" y="147.9" width="976" height="24.65" shape-rendering="crispEdges"/><rect fill="#1e1e1e" x="0" y="172.3" width="976" height="24.65" shape-rendering="crispEdges"/><rect fill="#1e1e1e" x="0" y="196.7" width="976" height="24.65" shape-rendering="crispEdges"/><rect fill="#1e1e1e" x="0" y="221.1" width="976" height="24.65" shape-rendering="crispEdges"/><rect fill="#1e1e1e" x="0" y="245.5" width="976" height="24.65" shape-rendering="crispEdges"/><rect fill="#1e1e1e" x="0" y="269.9" width="976" height="24.65" shape-rendering="crispEdges"/><rect fill="#1e1e1e" x="0" y="294.3" width="976" height="24.65" shape-rendering="crispEdges"/><rect fill="#1e1e1e" x="0" y="318.7" width="976" height="24.65" shape-rendering="crispEdges"/><rect fill="#1e1e1e" x="0" y="343.1" width="976" height="24.65" shape-rendering="crispEdges"/><rect fill="#1e1e1e" x="0" y="367.5" width="976" height="24.65" shape-rendering="crispEdges"/><rect fill="#1e1e1e" x="0" y="391.9" width="976" height="24.65" shape-rendering="crispEdges"/><rect fill="#1e1e1e" x="0" y="416.3" width="976" height="24.65" shape-rendering="crispEdges"/><rect fill="#1e1e1e" x="0" y="440.7" width="976" height="24.65" shape-rendering="crispEdges"/><rect fill="#1e1e1e" x="0" y="465.1" width="976" height="24.65" shape-rendering="crispEdges"/><rect fill="#1e1e1e" x="0" y="489.5" width="976" height="24.65" shape-rendering="crispEdges"/><rect fill="#1e1e1e" x="0" y="513.9" width="976" height="24.65" shape-rendering="crispEdges"/><rect fill="#1e1e1e" x="0" y="538.3" width="976" height="24.65" shape-rendering="crispEdges"/><rect fill="#0053aa" x="0" y="562.7" width="36.6" height="24.65" shape-rendering="crispEdges"/><rect fill="#0178d4" x="36.6" y="562.7" width="170.8" height="24.65" shape-rendering="crispEdges"/><rect fill="#0053aa" x="207.4" y="562.7" width="36.6" height="24.65" shape-rendering="crispEdges"/><rect fill="#0178d4" x="244" y="562.7" width="219.6" height="24.65" shape-rendering="crispEdges"/><rect fill="#0053aa" x="463.6" y="562.7" width="24.4" height="24.65" shape-rendering="crispEdges"/><rect fill="#0178d4" x="488" y="562.7" width="219.6" height="24.65" shape-rendering="crispEdges"/><rect fill="#0178d4" x="707.6" y="562.7" width="268.4" height="24.65" shape-rendering="crispEdges"/>
5210+
<g class="terminal-870899994-matrix">
5211+
<text class="terminal-870899994-r2" x="976" y="20" textLength="12.2" clip-path="url(#terminal-870899994-line-0)">
5212+
</text><text class="terminal-870899994-r2" x="976" y="44.4" textLength="12.2" clip-path="url(#terminal-870899994-line-1)">
5213+
</text><text class="terminal-870899994-r2" x="976" y="68.8" textLength="12.2" clip-path="url(#terminal-870899994-line-2)">
5214+
</text><text class="terminal-870899994-r2" x="976" y="93.2" textLength="12.2" clip-path="url(#terminal-870899994-line-3)">
5215+
</text><text class="terminal-870899994-r2" x="976" y="117.6" textLength="12.2" clip-path="url(#terminal-870899994-line-4)">
5216+
</text><text class="terminal-870899994-r2" x="976" y="142" textLength="12.2" clip-path="url(#terminal-870899994-line-5)">
5217+
</text><text class="terminal-870899994-r2" x="976" y="166.4" textLength="12.2" clip-path="url(#terminal-870899994-line-6)">
5218+
</text><text class="terminal-870899994-r2" x="976" y="190.8" textLength="12.2" clip-path="url(#terminal-870899994-line-7)">
5219+
</text><text class="terminal-870899994-r2" x="976" y="215.2" textLength="12.2" clip-path="url(#terminal-870899994-line-8)">
5220+
</text><text class="terminal-870899994-r2" x="976" y="239.6" textLength="12.2" clip-path="url(#terminal-870899994-line-9)">
5221+
</text><text class="terminal-870899994-r2" x="976" y="264" textLength="12.2" clip-path="url(#terminal-870899994-line-10)">
5222+
</text><text class="terminal-870899994-r2" x="976" y="288.4" textLength="12.2" clip-path="url(#terminal-870899994-line-11)">
5223+
</text><text class="terminal-870899994-r2" x="976" y="312.8" textLength="12.2" clip-path="url(#terminal-870899994-line-12)">
5224+
</text><text class="terminal-870899994-r2" x="976" y="337.2" textLength="12.2" clip-path="url(#terminal-870899994-line-13)">
5225+
</text><text class="terminal-870899994-r2" x="976" y="361.6" textLength="12.2" clip-path="url(#terminal-870899994-line-14)">
5226+
</text><text class="terminal-870899994-r2" x="976" y="386" textLength="12.2" clip-path="url(#terminal-870899994-line-15)">
5227+
</text><text class="terminal-870899994-r2" x="976" y="410.4" textLength="12.2" clip-path="url(#terminal-870899994-line-16)">
5228+
</text><text class="terminal-870899994-r2" x="976" y="434.8" textLength="12.2" clip-path="url(#terminal-870899994-line-17)">
5229+
</text><text class="terminal-870899994-r2" x="976" y="459.2" textLength="12.2" clip-path="url(#terminal-870899994-line-18)">
5230+
</text><text class="terminal-870899994-r2" x="976" y="483.6" textLength="12.2" clip-path="url(#terminal-870899994-line-19)">
5231+
</text><text class="terminal-870899994-r2" x="976" y="508" textLength="12.2" clip-path="url(#terminal-870899994-line-20)">
5232+
</text><text class="terminal-870899994-r2" x="976" y="532.4" textLength="12.2" clip-path="url(#terminal-870899994-line-21)">
5233+
</text><text class="terminal-870899994-r2" x="976" y="556.8" textLength="12.2" clip-path="url(#terminal-870899994-line-22)">
5234+
</text><text class="terminal-870899994-r3" x="0" y="581.2" textLength="36.6" clip-path="url(#terminal-870899994-line-23)">&#160;Q&#160;</text><text class="terminal-870899994-r4" x="36.6" y="581.2" textLength="170.8" clip-path="url(#terminal-870899994-line-23)">&#160;Quit&#160;the&#160;app&#160;</text><text class="terminal-870899994-r3" x="207.4" y="581.2" textLength="36.6" clip-path="url(#terminal-870899994-line-23)">&#160;?&#160;</text><text class="terminal-870899994-r4" x="244" y="581.2" textLength="219.6" clip-path="url(#terminal-870899994-line-23)">&#160;Show&#160;help&#160;screen&#160;</text><text class="terminal-870899994-r3" x="463.6" y="581.2" textLength="36.6" clip-path="url(#terminal-870899994-line-23)">&#160;&#160;</text><text class="terminal-870899994-r4" x="488" y="581.2" textLength="219.6" clip-path="url(#terminal-870899994-line-23)">&#160;Delete&#160;the&#160;thing&#160;</text>
52355235
</g>
52365236
</g>
52375237
</svg>

0 commit comments

Comments
 (0)