-
Notifications
You must be signed in to change notification settings - Fork 35
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
migrate commands to command palette (Closes #389) #391
Merged
dvargas92495
merged 29 commits into
RoamJS:main
from
mdroidian:command-palette-commands-389
Apr 3, 2023
Merged
Changes from 16 commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
d0ccc5a
migrate tutorial commands to command pallete
mdroidian ae8823a
move commands to tutorials.tsx
mdroidian d20b071
pass extensionAPI to toggleFeature
mdroidian 50c04dd
include removeCommand to newAddCommand return
mdroidian 8aa7028
migrate alert commands to command palette
mdroidian ba608a4
update extensionAPI param type
mdroidian 3ccadf2
remove newAddCommand, migrate workBench commands
mdroidian d4d78f7
migrate decorator command to command palette
mdroidian ccf5232
minor updates
mdroidian 3eb2707
decouple toggleFeature and toggleDecorations
mdroidian 3d3ccae
remove file
mdroidian e8fb9ec
migrate 3+ modules addCommands to command palette
mdroidian 31a12e3
migrate DNP Popup commands
mdroidian 5dfb015
minor changes
mdroidian 654a756
fix toggleFocus function error
mdroidian 7451e61
migrate 3 more modules to command palette
mdroidian f1dff63
add getHTMLElementFromUid
mdroidian ed1661a
use activeElement to handle .blur
mdroidian b21a052
migrate jumpNav (Hot Keys) to commandPalette
mdroidian f9bfbe5
add setTimeout to cursor placements + formatting
mdroidian 4629860
update timeout to 300
mdroidian 830cdd8
remove Deep Nav from dropdown
mdroidian 0a42854
0.0.1
mdroidian dadf190
type update
mdroidian 239152e
Merge branch 'main' of https://github.com/mdroidian/roamjs-workbench …
mdroidian dac7911
DRY refactor commands
mdroidian 630cc94
move event listener
mdroidian c1d368c
add previous default hotkeys
mdroidian 73cfcfe
Remove default for DNP Jump Date Forward/Backward
mdroidian File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need to change for this PR, but a note for future reference.
In typescript, when there's more than one parameter I often prefer a single object instead of multiple params. So for example, I probably would have done:
The reason being is life becomes way easier for consumers: