lazygit/pkg/gui
Stefan Haller 2b22ad1651 Add an alternate keybinding (default <c-s>) for ConfirmInEditor
The default binding for ConfirmInEditor is <a-enter>, which has two problems:
- some terminal emulators don't support it, including the default terminal on
  Mac (Terminal.app)
- on Windows it is bound to toggling full-screen

Ideally we would use <c-enter> instead (and Command-Enter on Mac), but neither
is possible without https://github.com/gdamore/tcell/issues/671, so for the time
being add an alternate keybinding which works everywhere.

Show both bindings in the footer of the commit description panel if they are
both non-null. While we're at it, fix the footer for the case where either or
both of the keybindings are set to <disabled>.

And finally, change "commit" to "submit" in that footer; we use the same panel
also for creating tags, in which case "commit" is not quite right.
2025-05-03 17:37:10 +02:00
..
context Store fromHash/toHash in Pipe struct as pointers 2025-04-29 14:57:15 +02:00
controllers Add an alternate keybinding (default <c-s>) for ConfirmInEditor 2025-05-03 17:37:10 +02:00
filetree Fix discarding submodule changes in nested folders 2025-04-07 09:42:19 +02:00
keybindings Move labelByKey to config package 2025-02-21 13:20:33 +01:00
mergeconflicts Remove utils.Clamp, use lo.Clamp instead 2025-04-21 18:03:18 +02:00
modes Make Commit.Hash a getter for an unexported hash field 2025-04-29 14:57:15 +02:00
patch_exploring Fix crash when dragging from below the end of the diff upwards and then staging the range 2025-04-11 10:14:46 +02:00
popup Remove return value of Alert/Confirm/Prompt 2024-09-06 08:45:48 +02:00
presentation Store fromPos/toPos as 16-bit ints, and reorder fields for better packing 2025-04-29 14:57:15 +02:00
services/custom_commands Make Commit.Parents a getter for an unexported parents field 2025-04-29 14:57:15 +02:00
status Clean up error handling of WithWaitingStatus and WithWaitingStatusSync 2024-04-18 10:10:30 +02:00
style Add function to render a hyperlink 2024-08-24 10:36:01 +02:00
types Store Commit.Hash by pointer (kept in a pool of hashes) 2025-04-29 14:57:15 +02:00
background.go Add config for auto-forwarding branches after fetching 2025-04-21 18:06:09 +02:00
command_log_panel.go fix wording of random tip 2025-04-29 14:13:55 +02:00
context.go Cleanup: get rid of the variadic parameter of ContextMgr.Push 2025-04-08 16:08:25 +02:00
context_config.go
controllers.go Add new command "Move commits to new branch" 2025-04-21 18:12:50 +02:00
dummies.go Optimize number of early calls to GetRepoPaths 2024-07-06 12:09:48 -07:00
editors.go Show "hooks disabled" in title bar of commit message editor 2025-04-10 08:57:32 +02:00
extras_panel.go Add pageUp/pageDown/top/bottom keybindings to focused command log panel 2025-04-08 16:11:15 +02:00
global_handlers.go Add IGuiCommon.GetViewBufferManagerForView 2025-04-21 18:03:18 +02:00
gui.go Store Commit.Hash by pointer (kept in a pool of hashes) 2025-04-29 14:57:15 +02:00
gui_common.go Add IGuiCommon.GetViewBufferManagerForView 2025-04-21 18:03:18 +02:00
gui_driver.go Fix clicking multiple times in an integration test 2024-10-18 10:06:52 +02:00
information_panel.go Bump gocui and adapt lazygit code 2024-12-01 10:40:08 +01:00
keybindings.go Add pageUp/pageDown/top/bottom keybindings to focused command log panel 2025-04-08 16:11:15 +02:00
layout.go Add IGuiCommon.GetViewBufferManagerForView 2025-04-21 18:03:18 +02:00
main_panels.go Fix race with PTYs in integration tests 2025-03-28 11:16:04 +01:00
menu_panel.go Cleanup: get rid of the variadic parameter of ContextMgr.Push 2025-04-08 16:08:25 +02:00
options_map.go Make WorkingTreeState a struct, and add cherry-picking and reverting states 2025-04-20 15:53:17 +02:00
pty.go Fix race with PTYs in integration tests 2025-03-28 11:16:04 +01:00
pty_windows.go
recent_repos_panel.go Remove unused field gui.IsNewRepo 2024-12-01 10:44:26 +01:00
tasks_adapter.go Change NewRenderStringWith{out}ScrollTask to reuse the task key of the existing task 2024-10-18 22:46:47 +02:00
test_mode.go Don't wait in integration tests when running in headless mode 2024-06-05 14:44:02 +02:00
view_helpers.go Re-render focused main view on refresh if needed 2025-04-21 18:03:24 +02:00
views.go Enable AutoRenderHyperLinks for the tooltip view 2025-04-08 16:05:34 +02:00