Skip to content
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

PR: Set Python as default file extension for the "Save As" dialog #3765

Merged
merged 4 commits into from
Nov 30, 2016

Conversation

malliwi88
Copy link
Contributor

@malliwi88 malliwi88 commented Nov 29, 2016

Fixes #3764


Take a look to this @ccordoba12 and @goanpeca.

This PR can solve your problems @rlaverde with save_as feature.

any suggestions and comments are welcome. 👍

favorite_exts = ['.py', '.R', '.jl', '.pyw', '.pyx', '.C', '.CPP']
other_exts = ['.ipynb', '.md'] + [ext for ext in pygments_exts if ext not in favorite_exts]
all_exts = tuple(favorite_exts + other_exts)
print(all_exts)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove this print

other_exts = ['.ipynb', '.md']
all_exts = tuple(pygments_exts + other_exts)
favorite_exts = ['.py', '.R', '.jl', '.pyw', '.pyx', '.C', '.CPP']
other_exts = ['.ipynb', '.md'] + [ext for ext in pygments_exts if ext not in favorite_exts]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please move .ipynb and .md to favorite_exts (after .jl)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, great!!!

@ccordoba12 ccordoba12 added this to the v3.1 milestone Nov 30, 2016
@ccordoba12
Copy link
Member

I think this is ready. Let's merge it and see how it goes :-)

Thanks @malliwi88!

@ccordoba12 ccordoba12 changed the title PR: Repair default file extension for saveas feature in spyder editor PR: Set Python as default file extension for the "Save As" dialog Nov 30, 2016
@ccordoba12 ccordoba12 merged commit 4dd2a7c into spyder-ide:3.x Nov 30, 2016
ccordoba12 added a commit that referenced this pull request Nov 30, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants