From 7c55dd3a0922d9b9b547fd5f50e0edc0fc07c7b5 Mon Sep 17 00:00:00 2001 From: Jorge Manrubia Date: Thu, 15 May 2025 15:21:07 +0200 Subject: [PATCH] Make the input permanent We need to command history to update --- app/views/commands/_form.html.erb | 3 ++- app/views/layouts/application.html.erb | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/views/commands/_form.html.erb b/app/views/commands/_form.html.erb index 8b493dfab..aed7234d8 100644 --- a/app/views/commands/_form.html.erb +++ b/app/views/commands/_form.html.erb @@ -9,16 +9,17 @@ <%= 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" } %> diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index ba86f92e4..995eea4dc 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -47,7 +47,7 @@ <%= yield :footer %> <% if Current.user && !@hide_footer_frames %> -