8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
Save file with custom extension, other than ".py"
Double click on file tab to perform a "save file as".
Mu forces ".py" extension on the file, even if file pattern/filter is "Others (.)"
macOS 12.6.2
1.2.1
Follow
There are several snippets in both main.py and logic.py related to managing save filenames and managing/forcing extensions.
main.py
logic.py
main.py : Windows.get_save_path():
# The file is not a . (dot) file and there's no extension, so add # .py as default. path += ".py"
logic.py: Editor.rename_tab():
if not self.has_python_extension(os.path.basename(new_path)): # No extension given, default to . new_path += ".pyl"
logic.py: Editor --> python_extensions defined in several places
self.python_extensions = [".py", ".pyw"]
and
pyextensions = [".pyw", ".PYW", ".py", ".PY"]
for mode_name, mode in self.modes.items(): if mode.file_extensions: extensions += mode.file_extensions
No response
The text was updated successfully, but these errors were encountered:
Add MOTD #1
60cfc5b
Merge pull request mu-editor#2436 from prochazka-jan/master
8ad3853
64beda4
No branches or pull requests
What were you trying to do?
Save file with custom extension, other than ".py"
What steps did you take to trigger the issue?
Double click on file tab to perform a "save file as".
What did you expect to happen?
Save file with custom extension, other than ".py"
What actually happened?
Mu forces ".py" extension on the file, even if file pattern/filter is "Others (.)"
Operating System Version
macOS 12.6.2
Mu Version
1.2.1
Other Info
Follow
Related to
There are several snippets in both
main.py
andlogic.py
related to managing save filenames and managing/forcing extensions.and
and
Editor Log
No response
The text was updated successfully, but these errors were encountered: