Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add git difftool support (keybinding <c-t>) #1846

Closed
wants to merge 1 commit into from

Conversation

zeevro
Copy link

@zeevro zeevro commented Mar 27, 2022

I've added the ability to launch git difftool for what's currently in the diff screen.


cmdStr := "git difftool --submodule "

file := gui.currentlySelectedFilename()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
file := gui.currentlySelectedFilename()
file := gui.currentlySelectedFilename()
if file == "" {
file = gui.getSelectedPath()
}

for Staged/Unstaged Changes panel

}

if file != "" {
cmdStr += " -- " + file
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
cmdStr += " -- " + file
cmdStr += " -- " + gui.os.Quote(file)

@@ -953,6 +954,7 @@ func EnglishTranslationSet() TranslationSet {
DiffingMenuTitle: "Diffing",
LcSwapDiff: "reverse diff direction",
LcOpenDiffingMenu: "open diff menu",
LcLaunchDiffTool: "Launch git difftool",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lc in LcSomeTitle actually denotes lowercase, could you change it to launch git difftool then?

@zeevro zeevro force-pushed the git-difftool-support branch from 5db6b6d to 4686571 Compare August 1, 2022 09:19
@barreiroleo
Copy link

Hello there! Any updates with this PR?

Copy link
Owner

@jesseduffield jesseduffield left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Marking as changes requested for my own bookkeeping. Let me know if you need any guidance with this @zeevro

@jesseduffield
Copy link
Owner

jesseduffield commented Jan 10, 2024

This is superseded by #3156. Closing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants