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.
This PR:
These are enabling changes for the shortcut preview dialog, but they're useful even without it.
Since making this PR I have expanded it, it now contains some bugfixes and new features.
Save-shortcut fixes:
file1.c
andfile2.c
, and then switch back tofile1.c
and then switch to the compilation pane and use the save shortcut,file2.c
would save.I've made it so cmd-s will save the last source file you have/had open, or the current resource you had open, or do nothing
Small Error handling fixes
There are certainly many more changes like this needed, but this goes a small way to helping. In various places, errors are swallowed by error handlers when they are not rethrown in catches and not displayed anywhere, which makes user feedback and development tricker. I added two
throw
statements, and added the ability for the main cloudpebble loading bar to show an error state.FuzzyPrompt command subsections
I added a subsection system to the FuzzyPrompt and added the capability to show keyboard shortcut hints, which should make it easier for users to discern what does what and discover keyboard functionality. I added a few file editing commands to this prompt to show off a few of the more obscure functions (e.g. auto-indent, save all, auto-comment); it wouldn't be too hard to add more.
When searching, the first section which is shown is the section corresponding to the first search result, the second section which is shown is the section corresponding to the first search result which is not in the first section, and so on. Within each section, items are ordered by search score first and then alphabetically.