Added kickass_startup_file_root_path #36
Closed
daleicious wants to merge 1 commit intoSwoffa:masterfrom
Closed
Conversation
…l path to the folder containing the Startup.asm file that is built via F5/etc. This allows us to work on a file in a subfolder of a project, and easily test via F5 without needing to select the main startup.asm file or another file in the main directory.
Collaborator
Author
|
Oh one important note: the path provided MUST end with "/" - ie, "c:/projects/mygame/src/". |
Owner
|
Thanks @daleicious! |
Owner
|
@daleicious The setting name is Can you please review and test if it does the same thing that you intended this PR to do. Many thanks again!! |
Owner
|
Closing this. We continue with #38 instead. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I have been working on a project with a large number of asm files, organized into many folders. While working, it became onerous to make a change in a file in a subfolder, then hunt for the Startup.asm file in my main folder (or another file in the same root folder) and activate that file in Sublime, before hitting F5 to test my changes.
With this pull request, I've added a new setting, "kickass_startup_file_root_path", which can be set to a fully qualified path to the folder containing the "Startup.asm" to be compiled and run when F5/Shift-F5 are pressed.
Now we can have a robust file folder structure and have a single Startup.asm that will be built and run whenever we hit F5 from any asm file in our tree.
Note that this is they first time I've coded in Python, so I cannot vouch for the voracity of my code, and I may not have tested all the variations of settings in the Sublime package. I did test F5 vs F7 on Windows and both behaved as I would have expected.
Anyway I figured I'd fork the project and send you a PR in case you wanted to include this for others to use (tho please carefully review my code if you do merge the PR since I'm a n00b with Python and Sublime package development!)