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

Re: Git Gui - enhancement suggestion - Can a double click on the file name in the “unstaged” area move the item to “staged changes”

From
Pratyush Yadav <me@yadavpratyush.com>
Date
Sep 14, 2019, 19:08 UTC
Message-ID
<20190914190656.r2aogh4dcobay5vn@yadavpratyush.com>
In-Reply-To
<CAMPXz=qWmHGpDrGVpg1gwEBQsg5pujY-Ghg8icyaPoiMNCXssg@mail.gmail.com>
On 15/09/19 02:07AM, David wrote:
Show 21 quoted lines
> On Sat, 14 Sep 2019 at 06:51, Bert Wesarg <bert.wesarg@googlemail.com> wrote:
> > On Fri, Sep 13, 2019 at 4:32 PM Pratyush Yadav <me@yadavpratyush.com> wrote:
> > > On 13/09/19 12:24PM, Allan Ford wrote:
> >
> > I miss a general problem description: Whats wrong with the
> > single-click on the icon to begin with?
> 
> No problem here, but see my other message for further thoughts.
> 
> > I consider adding a second way as not not acceptable. I also consider
> > double-click on a file in a GUI an "open" action.
> 
> Yes!
> 
> In fact, I've often fantasized how useful it would be that if I double
> clicked on that file name in the unstaged pane or the staged pane,
> then that would open the file for editing in my preferred/configured editor.
> 
> Now for me *that* would be a very frequently used improvement!
> 
> I wonder what other readers think about this idea?

Sounds reasonable. I've wanted something similar, but for commit messages.

But one major reason I didn't come up with a patch for editing commit messages in the editor of your choice is terminal based editors. I don't think there is any way of finding out the default terminal emulator in Linux, and I don't think there is a standard way of making terminal emulator launch programs you want.

So your suggestion works only for GUI based editors. We would have to mention that only GUI based editors can open files.

I like the idea, but I thought I'd point a problem I saw with this feature.

Also, the file viewer in git-gui opens the blame viewer, but I suppose that's not what most people want.

-- 
Regards,
Pratyush Yadav
Previous: DavidNext: David
Message 6 of 13 in “Git Gui - enhancement suggestion - Can a double click on the file name in the “unstaged” area move the item to “staged changes””
  1. Allan FordSep 13, 2019
  2. Pratyush YadavSep 13, 2019
  3. Bert WesargSep 13, 2019
  4. Pratyush YadavSep 13, 2019
  5. DavidSep 14, 2019
  6. Pratyush YadavSep 14, 2019
  7. DavidSep 15, 2019
  8. Pratyush YadavSep 16, 2019
  9. Marc BranchaudSep 13, 2019
  10. DavidSep 14, 2019
  11. Pratyush YadavSep 14, 2019
  12. DavidSep 15, 2019
  13. Johannes SixtSep 14, 2019

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.