xpodev / local-history

Visual Studio Code extension for maintaining files versions
https://marketplace.visualstudio.com/items?itemName=xpo.local-history
12 stars 2 forks source link

Auto select current file #6

Closed niktor76 closed 2 years ago

niktor76 commented 2 years ago

Hi, I love your extension. It is very helpful. I wish the extension would automatically switch to the history of the current file.

neriyaco commented 2 years ago

Hi, thank you! You can use CTRL+SHIFT+ALT+D to open the diff tab for the current file

niktor76 commented 2 years ago

Hi, I am using MacOS. Which command is this exactly? I have always go to the local history browser to select the file.

neriyaco commented 2 years ago

Hi, I checked and I didn't add the shortcut from MacOS. Will add it in the next version. Until then you can set the shortcut for yourself under Preferences > Keyboard Shortcuts the command name is Local History: Open Diff (local-history.open-diff)

tgaochn commented 2 years ago

Hi, I checked and I didn't add the shortcut from MacOS. Will add it in the next version. Until then you can set the shortcut for yourself under Preferences > Keyboard Shortcuts the command name is Local History: Open Diff (local-history.open-diff)

but this command will only open Local History tab without selecting the current file.

niktor76 commented 2 years ago

Hi, I checked and I didn't add the shortcut from MacOS. Will add it in the next version. Until then you can set the shortcut for yourself under Preferences > Keyboard Shortcuts the command name is Local History: Open Diff (local-history.open-diff)

This works also an MacOS. Thanks, that's very helpful. It would be great if this would be happening automatically. Then it will be perfect!