Windows support for Git widget #1422
ibrahim-13
started this conversation in
Show and tell
Replies: 1 comment 1 reply
-
I'd be open to a PR with a fix. The one item I would change is that since you use os.PathSeperator in both variables files, it isn't really needed as a variable. os.PathSeperator should do the right thing on the right OS. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm running wtfutil on Windows (compiled from source).
In the official repository,
git
command and/
as path separator is hard-codded, which does not work in Windows.I updated my fork where hard-coded strings are replaced by constants. These constants are defined in different files where variables_windows.go contains the declaration for Windows and variables.go contains the declaration for all Operating system other then Windows.
This fix is working for me at the moment. You can see diff here.
Here is a screenshot of the widget:
Now, my queries are:
Beta Was this translation helpful? Give feedback.
All reactions