jesseduffield.lazygit/pkg/gui/services/custom_commands
Stefan Haller 7c126cd2fc Strip leading/trailing whitespace from prompt input
This doesn't really solve a pressing problem, because I guess it's unlikely that
users add spaces at the beginning or end of what they type into a prompt; but it
could happen, and in this case we almost always want to strip it. Just adding
this here for completeness while I was working on this code.

The only exception is the input prompt of custom commands, because who knows
what users want to use that input for in their custom command.
2025-11-15 15:38:24 +01:00
..
client.go Add commandMenu property to custom commands 2025-02-28 10:11:30 +01:00
handler_creator.go Strip leading/trailing whitespace from prompt input 2025-11-15 15:38:24 +01:00
keybinding_creator.go Extract a method CustomCommand.GetDescription 2025-02-28 10:00:59 +01:00
menu_generator.go Modernize all codes 2025-11-15 10:46:23 +01:00
menu_generator_test.go Move NewDummyCommon to pkg/common 2025-05-06 09:43:26 +02:00
models.go Add SelectedSubmodule to SessionState 2025-11-12 08:54:34 +01:00
resolver.go Remove redundant variable dedeclarations 2024-05-19 16:38:21 +10:00
session_state_loader.go Add SelectedSubmodule to SessionState 2025-11-12 08:54:34 +01:00