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 Windows support #253

Merged
merged 6 commits into from Jan 18, 2014

Conversation

Projects
None yet
2 participants
@mdlawson
Contributor

mdlawson commented Jan 13, 2014

This patch adds (native, no cygwin/mingw) support for windows to autojump, using clink to hook on directory changes. All the main functions have been ported, but completion has not yet been added. Most installation types are not supported, only user installation, though I could add them. Errors are also not logged, though it can probably be added. I was just looking to get a functional base working.

Not sure if this is something you'd want to merge, but I'm definitely already enjoying having autojump on windows.

Show outdated Hide outdated bin/autojump
Show outdated Hide outdated install.py
icon_dir = os.path.join(args.destdir, args.prefix, 'share/autojump')
etc_dir = os.path.join(args.destdir, 'etc', 'profile.d')
doc_dir = os.path.join(args.destdir, args.prefix, 'share', 'man', 'man1')
icon_dir = os.path.join(args.destdir, args.prefix, 'share', 'autojump')

This comment has been minimized.

@wting

wting Jan 15, 2014

Owner

Thanks for catching that.

@wting

wting Jan 15, 2014

Owner

Thanks for catching that.

Show outdated Hide outdated install.py
Show outdated Hide outdated install.py
@@ -8,6 +8,7 @@
import shutil
import sys
sys.path.append('bin')

This comment has been minimized.

@wting

wting Jan 15, 2014

Owner

Thanks.

@wting

wting Jan 15, 2014

Owner

Thanks.

Show outdated Hide outdated uninstall.py
Show outdated Hide outdated uninstall.py
Show outdated Hide outdated install.py
Show outdated Hide outdated uninstall.py
@wting

This comment has been minimized.

Show comment
Hide comment
@wting

wting Jan 15, 2014

Owner

Also you might want to look into using a linter (autojump has config settings for flake8. It's just some minor stuff like non-multiple of 4 indents and missing spaces.

Owner

wting commented Jan 15, 2014

Also you might want to look into using a linter (autojump has config settings for flake8. It's just some minor stuff like non-multiple of 4 indents and missing spaces.

@wting

This comment has been minimized.

Show comment
Hide comment
@wting

wting Jan 15, 2014

Owner

This is fine if you don't feel like doing it, but your shell wrapper doesn't redirect autojump errors to an errors.log file.

Owner

wting commented Jan 15, 2014

This is fine if you don't feel like doing it, but your shell wrapper doesn't redirect autojump errors to an errors.log file.

@mdlawson

This comment has been minimized.

Show comment
Hide comment
@mdlawson

mdlawson Jan 15, 2014

Contributor

I'll fix everything else up soon. I'll add custom install and error logging back in as well.

Sorry for the errors/sloppy formatting.

Contributor

mdlawson commented Jan 15, 2014

I'll fix everything else up soon. I'll add custom install and error logging back in as well.

Sorry for the errors/sloppy formatting.

@wting

This comment has been minimized.

Show comment
Hide comment
@wting

wting Jan 16, 2014

Owner

Not at all, thanks for all your work so far!

Owner

wting commented Jan 16, 2014

Not at all, thanks for all your work so far!

@mdlawson

This comment has been minimized.

Show comment
Hide comment
@mdlawson

mdlawson Jan 16, 2014

Contributor

Should be OK now. Not sure how strict to be about the 80 char line length limits, but its probably best for someone more familiar with python style to cut things off where appropriate.

Contributor

mdlawson commented Jan 16, 2014

Should be OK now. Not sure how strict to be about the 80 char line length limits, but its probably best for someone more familiar with python style to cut things off where appropriate.

@wting wting merged commit ff9376c into wting:master Jan 18, 2014

@wting

This comment has been minimized.

Show comment
Hide comment
@wting

wting Jan 18, 2014

Owner

Thanks!

Owner

wting commented Jan 18, 2014

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment