jesseduffield.lazygit/pkg/gui
Stefan Haller 6114f69ee5 Scroll views up if needed to show all their content
There are many situations where this can arise. Some examples are:
- the terminal window is small, and you are showing a view that shows more
  content than fits into the view port, and the view is scrolled all the way
  down; now you resize the terminal window to a taller size. Previously, the
  scroll position of the view would stay the same, so it would add blank space
  at the bottom; now it will scroll to fill that blank space with content
- expandFocusedSidePanel is on, you go to the bottom of a list view, now switch
  to a different panel, then scroll that (now unfocused) panel all the way down
  with the scroll wheel; now you focus that panel again. It becomes larger
  because of the accordion behavior, but would show blank space at the bottom.

And probably others that I can't remember right now. I only remember that I
always found it confusing to look at a view that had blank space at the bottom
even though it had more content to scroll into view.
2024-08-24 10:47:27 +02:00
..
context Scroll views up if needed to show all their content 2024-08-24 10:47:27 +02:00
controllers Use our new hyperlink support in confirmations 2024-08-24 10:36:01 +02:00
filetree Remove redundant variable dedeclarations 2024-05-19 16:38:21 +10:00
keybindings Add range selection ability on list contexts 2024-01-19 10:47:21 +11:00
mergeconflicts Remove redundant variable dedeclarations 2024-05-19 16:38:21 +10:00
modes rename sha to hash 5 2024-04-12 08:33:47 +02:00
patch_exploring Fix pressing escape after clicking in diff view 2024-08-17 11:30:38 +02:00
popup Allow editing a custom command from the suggestions list by pressing 'e' 2024-05-19 07:06:18 +02:00
presentation Change direct access to Common.UserConfig to a getter 2024-08-18 10:24:52 +02:00
services/custom_commands Make custom commands reload when switching repos 2024-08-18 10:24:52 +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 Scroll views up if needed to show all their content 2024-08-24 10:47:27 +02:00
background.go Change direct access to Common.UserConfig to a getter 2024-08-18 10:24:52 +02:00
command_log_panel.go Change direct access to Common.UserConfig to a getter 2024-08-18 10:24:52 +02:00
context.go Expose SelectedCommit to custom commands, deprecate Selected{Local,Reflog,Sub}Commit 2024-08-17 11:26:31 +02:00
context_config.go move some methods 2023-04-30 13:19:53 +10:00
controllers.go Make it possible to scroll the commit description with the mouse wheel 2024-08-24 10:21:30 +02:00
dummies.go Optimize number of early calls to GetRepoPaths 2024-07-06 12:09:48 -07:00
editors.go Add emacs-keybinds for word navigation 2023-08-15 12:22:17 +02:00
extras_panel.go Replace CurrentSideContext() with Context().CurrentSide() 2024-08-17 11:14:51 +02:00
global_handlers.go Use our new hyperlink support in confirmations 2024-08-24 10:36:01 +02:00
gui.go Set an openHyperlink function on gocui 2024-08-24 10:36:01 +02:00
gui_common.go Remove now unused function handleGenericClick 2024-08-24 10:36:01 +02:00
gui_driver.go Replace CurrentContext() with Context().Current() 2024-08-17 11:14:51 +02:00
information_panel.go Use our new hyperlink support in the information view 2024-08-24 10:36:01 +02:00
keybindings.go Use our new hyperlink support in confirmations 2024-08-24 10:36:01 +02:00
layout.go Scroll views up if needed to show all their content 2024-08-24 10:47:27 +02:00
main_panels.go Run PTY tasks after layout so that they get the correct view size 2024-06-23 12:36:40 +02:00
menu_panel.go Replace PushContext() with Context().Push() 2024-08-17 11:14:50 +02:00
options_map.go Replace CurrentContext() with Context().Current() 2024-08-17 11:14:51 +02:00
pty.go Fix possible off-by-one error wrt PTY size 2024-06-23 12:36:40 +02:00
pty_windows.go Format code to pass lint 2021-09-16 21:38:43 +08:00
recent_repos_panel.go Optimize number of early calls to GetRepoPaths 2024-07-06 12:09:48 -07:00
tasks_adapter.go Use an interface for tasks instead of a concrete struct 2023-07-10 17:12:21 +10: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 Remove now unused function handleGenericClick 2024-08-24 10:36:01 +02:00
views.go Change direct access to Common.UserConfig to a getter 2024-08-18 10:24:52 +02:00