git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: gitk next/prev buttons

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Oct 8, 2013, 19:36 UTC
Message-ID
<20131008193618.GE9464@google.com>
In-Reply-To
<525445FB.6000806@xiplink.com>
Hi,
Marc Branchaud wrote:
> On 13-09-30 10:31 PM, Lucas Sandery [three am design] wrote:
Show 18 quoted lines
>> The "next" and "prev" buttons are lacking consistency and logic. For LTR
>> languages previous is almost always on the left, and next on the right. The
>> words are contradictory, "next" actually goes to backwards chronologically,
>> and "prev" goes forward. Could the positions of the buttons be switched and
>> the text be replaced with "earlier" and "later"? This would make the
>> reference time not just order, and would mean the updated UI would not be
>> confused with the previous one.
>
> I agree with you here (I like "older" and "newer" myself).
>
> In theory gitk accepts the same arguments as "git rev-list", and in theory
> you should be able to use things like --reverse to get the commits in a
> different order.
>
> However, in practice I don't think anyone futzes with the ordering much with
> gitk.  gitk even ignores the --reverse and --timestamp options, and I've had
> a hard time getting gitk to display commits in an order where "older" and
> "newer" would not make sense.

In a branchy history, it is possible for the next matching commit to actually be newer. I think the intent of the buttons is "find the next result, looking down or up in the list of commits in the upper pane". Is there some other wording that would convey this better?

Show 7 quoted lines
>> Also, the arrow-only next/previous buttons (beside the commit ID) should
>> really point up and down. Horizontal directions are ambiguous for navigation
>> of a vertical list.
>
> Here I don't agree.  These arrows are purely about history navigation.  They
> don't have anything to do with "up" or "down" in the list.  In that sense
> they're more like the arrows in your web browser.

True. It might make sense to make the analogy to a web browser clearer by using thicker arrows or triangles --- care to mock up icons to replace the current ones?

The icons are in the gitk source file (search for "bm_left_data") in xpm format.

Hope that helps, Jonathan

Previous: Marc BranchaudNext: Marc Branchaud
Message 4 of 12 in “gitk next/prev buttons”
  1. Lucas Sandery [three am design]Oct 1, 2013
  2. Lucas SanderyOct 2, 2013
  3. Marc BranchaudOct 8, 2013
  4. Jonathan NiederOct 8, 2013
  5. Marc BranchaudOct 8, 2013
  6. [PATCHv2] gitk: Replace "next" and "prev" buttons with down and up arrows.Marc Branchaud, Dec 18, 2013
  7. Marc BranchaudJan 21, 2014
  8. Paul MackerrasJan 22, 2014
  9. Junio C HamanoJan 22, 2014
  10. Paul MackerrasJan 23, 2014
  11. Junio C HamanoJan 23, 2014
  12. gitk: Rename "next" and "prev" buttons to "older" and "newer".Marc Branchaud, Oct 8, 2013

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.