summaryrefslogtreecommitdiffstats
path: root/pkg/gui/context/remotes_context.go
AgeCommit message (Collapse)Author
2024-04-06Add `SpinnerConfig`Artem Belyakov
This new config section allows to customize frames and rate of thespinner
2024-03-17Get rid of the retain-sort-order-when-filtering logic againStefan Haller
For die-hard fuzzy-searching fans it's probably in the way, so taking it out makes fuzzy filtering work better. For substring filtering it always retains the sort order anyway.
2024-02-16Optionally keep sort order stable when filtering listsStefan Haller
For some lists it is useful to keep the same sort order when filtering (rather than sorting by best match like we usually do). Add an optional function to FilteredList to make this possible, and use it whenever we show lists of things sorted by date (branches, stashes, reflog entries), as well as menu items because this allows us to keep the section headers in the keybindings menu, which is useful for understanding what you are looking at when filtering.
2024-01-26Use inline status for fetching remotesStefan Haller
2024-01-23Set groundwork for better disabled reasons with range selectJesse Duffield
Something dumb that we're currently doing is expecting list items to define an ID method which returns a string. We use that when copying items to clipboard with ctrl+o and when getting a ref name for diffing. This commit gets us a little deeper into that hole by explicitly requiring list items to implement that method so that we can easily use the new helper functions in list_controller_trait.go. In future we need to just remove the whole ID thing entirely but I'm too lazy to do that right now.
2023-10-10Fix crash when trying to filter the list of remotesStefan Haller
This seems to be a left-over from an earlier iteration of the code. Removing it fixes the crash.
2023-09-20Add history for search view (#2877)Jesse Duffield
2023-09-20Add search historyKarim Khaleel
Add search history for filterable and searchable views.
2023-08-28Extract a ListRenderer structStefan Haller
I'm doing this not so much because it's a great abstraction, but just because it will make it much easier to write tests for it.
2023-08-28Change length parameter of getDisplayStrings to endIdxStefan Haller
It's more natural to work with this way, as we will see later in this branch.
2023-07-03Introduce filtered list view modelJesse Duffield
We're going to start supporting filtering of list views
2023-04-30split context common from helper commonJesse Duffield
2023-04-30move getDisplayStrings funcs into contextsJesse Duffield
2023-04-30move getModel functions into contextsJesse Duffield
2023-04-30move views into contextsJesse Duffield
2023-04-30remove context callback optsJesse Duffield
2023-04-30Begin refactoring guiJesse Duffield
This begins a big refactor of moving more code out of the Gui struct into contexts, controllers, and helpers. We also move some code into structs in the gui package purely for the sake of better encapsulation
2022-08-06refactor to only have one context per viewJesse Duffield
2022-03-19use generics to DRY up context codeJesse Duffield
2022-03-17refactor controllersJesse Duffield
2022-03-17refactor contextsJesse Duffield