Skip to content
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

Add Create a new Block on a Daily page Roam Shortcut extension #964

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Stvad
Copy link
Contributor

@Stvad Stvad commented Dec 23, 2024

This PR adds a new extension Create a new Block on a Daily page Roam Shortcut.

Copy link

Here’s your link to the diff:

Added Stvad/roam-new-daypage-block 04f787d (PR-shorthand: Stvad+roam-new-daypage-block+964)

Copy link

Here’s your link to the diff:

Added Stvad/roam-new-daypage-block 04f787d (PR-shorthand: Stvad+roam-new-daypage-block+964)

Copy link

Here’s your link to the diff:

Added Stvad/roam-new-daypage-block 0732e72 (PR-shorthand: Stvad+roam-new-daypage-block+964)

Copy link

Here’s your link to the diff:

Added Stvad/roam-new-daypage-block 1b50b3d (PR-shorthand: Stvad+roam-new-daypage-block+964)

@baibhavbista
Copy link
Contributor

Hey @Stvad some comments:

  1. the README.md for the extension is visible to users (in the help menu or when installing the extension in Roam Depot Marketplace), could you make the readme clearer considering that? For example, starting with "Roam Research Extension:" is not required)
image
  1. I really like this extension, feels like such a simple solution to a common problem! But named as it is right now (i.e. "Create a new Block on a Daily page Roam Shortcut"), I would not be able to find it. Have you considered other names? Some names ChatGPT suggested "Capture on the Fly", "Jot in the Sidebar", "Quick thoughts", "Quick random thoughts", "Capture random thought"

  2. More on 2, I would add some tags like "quick capture", "new note" in the extension json file. I would also change the "short_description" to be something like "Allows a quick-capture experience without having to change context of whatever you're working on. Just press a hotkey and start typing!"

  3. Instead of your bespoke solution for hotkeys, can you use extensionAPI.ui.commandPalette.addCommand? That way, users can also change the hotkey if they want a different one. (you want to be sure to pass the default-hotkey prop)

  4. More re: hotkeys, I see that the hotkey is ctrl-shift-n. This is fine for mac, but pretty sure it tries to open new private window on Windows/Linux. Can you have a different one for windows/linux?
    i. I think alt-n might be a good one (corresponds to "Open daily notes" which is ctrl-shift-d in Mac and alt-d in windows/linux)
    ii. you probably want to do window.roamAlphaAPI.platform.isPC ? "alt-n" : "ctrl-shift-n" as the value to default-hotkey

@baibhavbista baibhavbista self-requested a review January 2, 2025 10:03
Copy link
Contributor

@baibhavbista baibhavbista left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hey @Stvad I have a bunch of suggestions:
#964 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants