You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@kevintraver This is because a hard reset cannot be performed on files. I guess what you are looking for is an action to perform git restore -s HEAD <file>. But I don't think there is an action defined for it yet in telescope.
What I want is a default keybind (e.g. <C-r>) in the git_status picker, which performs a file restore. I am thinking of implementing it myself, though I can't find time to do that right now.
Is there a way to reset the selected file while inside the git status picker?
I tried using this action:
map({ "i", "n" }, "r", actions.git_reset_hard)
But it returns the following error:
The text was updated successfully, but these errors were encountered: