gitHistoryVSCode icon indicating copy to clipboard operation
gitHistoryVSCode copied to clipboard

Vim key remap Issue

Open sunliangqin opened this issue 4 years ago • 1 comments

I have the Vim extension installed and am trying to remap \f to show file history and \l to show line history with the following settings.

        {
            "before": [
                "leader",
                "f"
            ],
            "commands": [
                "git.viewFileHistory"
            ]
        },
        {
            "before": [
                "leader",
                "l"
            ],
            "commands": [
                "git.viewLineHistory"
            ]
        }

git.viewLineHistory works as expected. However git.viewFileHisotry shows the history of the current repo instead of the current file.

sunliangqin avatar Oct 25 '20 05:10 sunliangqin

It looks the info parameter is an empty array in this case. image

And this fix works for me. But I am not sure if this is the right fix. image

sunliangqin avatar Oct 25 '20 05:10 sunliangqin