Skip to content

Stvad/roam-date

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Roam Date UX enhancements


The development is supported by - a service that allows you to publish your Roam notes as a beautiful static website (digital garden)


This plugin adds a few enhancements to the experience of interacting with dates in Roam.

Features

Date control widget (including SRS support)

SRS behaviour is compatible with Roam Toolkit

The extension will add the calendar icon close to each date link. Clicking on the icon will invoke the widget & allow you to edit the selected date

Navigation Shortcuts

  • Ctrl + Shift + ` - go to today's page
  • Ctrl + Shift + 1 - open today's page in the right sidebar

Date Manipulation

You can create dates using natural language:

Replace mode:

Installation

This should be available in Roam Depot now, but if you want to install it manually, you can do so by following these steps:

  1. Install Roam plugin via the following code-block
/** roam-date-widget - date manipulation widget
 *  Author: Vlad Sitalo
 *  Docs: https://github.com/Stvad/roam-date
 */


const roamDateId = "roam-date-script"
const oldRoamDate = document.getElementById(roamDateId)
if (oldRoamDate) oldRoamDate.remove()
var roamDate = document.createElement('script')
roamDate.type = "text/javascript"
roamDate.id = roamDateId
roamDate.src = "https://roam-date.roam.garden/main.js"
roamDate.async = true
document.getElementsByTagName('head')[0].appendChild(roamDate)

Known issues

  • Currently, date widget, works only for blocks with 1 date in them

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages