-
Notifications
You must be signed in to change notification settings - Fork 1
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
ExplorerCreateFile: open with app after creation. #66
Comments
It would be perfect to convert the picked path to a relativ path if possible. Relative paths don't have a root dir and are relative to a2 / A_ScriptDir. Since you made a2 working as a portable application, it would be fantastic to do so with external sources as well. In general this would mean: Let's say I have the following folders: Case A
=> If the root changes "D:" to "F:" running notepad++ would still work. Case B
=> If the root changes "C:" to "F:" running notepad++ would fail.
Here are two functions you need: `GetRelativePath(BaseDirectory, AbsolutePath, s="") { GetFullPathName(RelativePath) { |
AAhhh alright! ☝😅 Now I get what you mean. I just didn't know relative to what. This would all be in the UI. So we don't need any AHK code for that. In Python there is
Additionally as this is a rather advanced feature anyway I'd say one should be able to just "write" any path into the field. This can nicely be configured in our path widgets already (for most cases, I'd keep users from hacking in anything and have them point to a dedicated location by browsing) The ui could notify you if the path is invalid tho. But if things are breaking anyway in the AHK runtime. The user needs to fix their paths. |
Good solution! The UI seems to be quite powerful 😅. |
From @Cyberklabauter #60
Possible 👍. But whats with the relative paths?
I'd add a path-field among the settings to pick an app to be run with the new file.
Or should it pick the default app for the file type?! 🤔
The text was updated successfully, but these errors were encountered: