Make the input permanent

We need to command history to update
This commit is contained in:
Jorge Manrubia
2025-05-15 15:21:07 +02:00
parent d49f503af8
commit 7c55dd3a09
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -9,16 +9,17 @@
<label class="terminal__label txt-nowrap" for="fizzy_do">Fizzy do &gt;</label>
<%= text_field_tag "command", nil,
id: "terminal_input",
autocomplete: "off",
autocorrect: "off",
autocapitalize: "off",
class: "terminal__input input fill-transparent unpad",
data: {
terminal_target: "input",
turbo_permanent: true,
action: "keydown.up->toggle-class#add:prevent keydown.up->navigable-list#selectCurrentOrLast terminal#hideError"
},
placeholder: "Press ⌘+K to search or type /commands…",
turbo_permanent: true,
spellcheck: "false" %>
<%= hidden_field_tag "confirmed", nil, data: { terminal_target: "confirmation" } %>
+1 -1
View File
@@ -47,7 +47,7 @@
<%= yield :footer %>
<% if Current.user && !@hide_footer_frames %>
<div id="footer_frames" data-turbo-permanent="true" >
<div id="footer_frames">
<%= render "notifications/tray" %>
<%= render "my/pins/tray" %>
<%= render "commands/terminal" %>