Craftcuts - a Shortcuts eXtension for Craft

Overview

Craftcuts

Welcome to the repository of Craftcuts my Shortcuts eXtension for Craft. Please read through the instructions, especially the installation chapter. Also make sure to check out the latest changes in the changelog which will contain the latest feature updates

If you want to follow me for updates or get in touch you can follow me on Twitter or choose anything else to contact on my website. Feel free to create issues in the repository for bugs you notice or features you'd like to see.

If this eXtension is valuable for and you like to thank me you can

Buy Me A Coffee

If you want to have a look to other things I'm working, check out my website at flohgro.com.

Installation

You can simply download the .craftx file from the Assets of the latest Release here and add it to your eXtensions in Craft on macOS.

If you want to built the eXtension by yourself (and e.g. make some custom modifications) use the instructions given by the people at Craft:

Simply run npm install and than npm run build to generate the .craftx file which can be installed.

To learn more about Craft eXtensions visit the Craft X developer portal.

Features

Craftcuts enables Craft to run your Shortcuts from within Craft.

Theoretically this enables endless possibilities for you to export your contents from Craft documents (or just turn on your lights or start playing music from Craft).

Craftcuts uses Apples official URL scheme for Shortcuts.

After installing Craftcuts the first time (or updating it to a new version) you'll see a text field and two buttons. To add your Shortcuts you have to type in the exact name of the Shortcut you want to launch from Craft into the text field and then click the "Add Shortcut" button. If you want to remove a shortcut just click the "Remove Shortcut" button which will open a menu with all currently activated Shortcuts. When you select one of them it will be removed from Craftcuts.

This will create a new button in the "RUN" section of the eXtension with the name of your Shortcut.

Attention: ensure to use the exact name of the Shortcut, otherwise it will not work and you'll get an error in the Shortcuts app.

In theory thats all you need todo - when you click the newly created button Craftcuts will launch the Shortcut you provided.

After the Shortcut was successfully executed Craft will be opened again.

This gets really powerful when you make use of the values passed to the Shortcut.

When you select one or more blocks in Craft the launched Shortcut will receive the markdown deeplinks to the selected blocks as text input.

An example input to the Shortcut could look like this when you selected three blocks:

[reminder 1](craftdocs://open?blockId=E151E8DE-B3C3-44D5-802D-E18AB328A0E9&spaceId=2579f404-e3cd-4s7n-gfe1-6c342199c9g2)
[reminder 2](craftdocs://open?blockId=BF3FA431-BD47-466A-8DF7-C7A6725975AB&spaceId=2579f404-e3cd-4s7n-gfe1-6c342199c9g2)
[reminder 3](craftdocs://open?blockId=3DEDFD80-6902-4460-8062-20F1CD273B7E&spaceId=2579f404-e3cd-4s7n-gfe1-6c342199c9g2)

The input can be used to do anything you like. You can e.g. add each block to Apples Reminders app with links back to the original blocks in Craft, or export just the content to your favorite writing app.

To help you develop your own shortcut and make use of the passed content I created a Template Shortcut which you can get here. This Template parses the provided content into the block content and the block deeplink.

I want to provide as many Craftcuts as possible in this repository in the table below. If you created a Shortcut which can be used with Craftcuts just reach out to me with a description and the link to the Shortcut so I can add it here.

Name Description Creator Download
Craftcuts Template Template Shortcut to use with Craftcuts @FlohGro Download
Craftcuts Reminders Creates Reminders based on the provided blocks @FlohGro Download
Craftcuts Random 2 Daily Note Adds a Random Block of the provided blocks to your Daily Note /u/iBanks3 Download
Craftcuts Open Urls Open Urls from selected blocks in Safari /u/iBanks3 & @FlohGro Download

I plan to add more features and configuration options to this eXtension in the future to pass more / different content to the triggered shortcuts. If you have ideas or use cases which are not yet supported just create a new issue in the repository or reach out to me on the platform of your choice: contactme.

Changelog

v0.1 initial release

  • new RUN Shortcuts from Craft
Comments
  • Craftcuts Import Calendar Events

    Craftcuts Import Calendar Events

    I received this when tried to run the shortcut. Any ideas?

    The URL “&index=9999999&content=%2…” is missing a hostname.

    Thanks, I am a coding novice, but am excited at the uses I can make of Craft.

    Quentin

    opened by pquentinj 4
  • Support cutting tasks from document

    Support cutting tasks from document

    Currently tasks are "cancelled" with the move tasks functionality - this should be extended to allow users to select a "cut" mode where tasks are deleted from the document

    opened by FlohGro-dev 1
  • Reordering of Shortcuts

    Reordering of Shortcuts

    currently users can't reorder the Shortcuts in the eXtension - they are ordered depending on their creation date which can't be changed.

    Options for ordering could be:

    • alphabetical
    • custom (drag & drop)
    • creation date
    • ...?
    opened by FlohGro-dev 1
  • Enable modification of configured shortcuts

    Enable modification of configured shortcuts

    currently the configuration of shortcuts is static. Added once a user can not see what was configured nor change it afterwards. To change the configuration the Shortcut has to be added again with another configuration

    enhancement 
    opened by FlohGro-dev 1
  • support background execution of Shortcuts

    support background execution of Shortcuts

    on macOS shortcuts can be executed in the background using the command line interface of shortcuts. Consider implementing this for macOS platform

    Attention: this is not supported on iOS / web so if shortcuts are executed there (in the future) this can't work so the fallback should always be the x-callback-url

    enhancement 
    opened by FlohGro-dev 0
Releases(0.4)
  • 0.4(Jun 2, 2022)

    • new: tab layout to divide into Shortcuts and Info
    • new: version check in the Info Tab (thanks to @DharamKapila for the support and inspiration)
    • new: configured shortcuts can now be edited with the new edit button on the right of each Craftcut
    • new: configured shortcuts can be reordered in the edit menu (move up / move down buttons)
    • fixed: in some edge cases the validation of the configuration was not done properly
    Source code(tar.gz)
    Source code(zip)
    craftcuts-eXtension.craftx(304.79 KB)
  • 0.3.2(Mar 29, 2022)

  • 0.3.1(Mar 27, 2022)

    v0.3.1 option to delete open tasks in document

    • new: input option delete and move tasks - this will delete any open task in your current document and provide them as input to the shortcut
      • attention this is a destructive action! if you don't add those tasks to another document, they will be lost
      • you can use this to move tasks from the todays note to tomorrows note with this Shortcut
    Source code(tar.gz)
    Source code(zip)
    craftcuts-eXtension.craftx(273.92 KB)
  • 0.3(Mar 23, 2022)

    v0.3 additional inputs with block changes

    • new: input option cancel and move tasks - this will cancel any open task in your current document and provide them as input to the shortcut (you can use this to move tasks from the todays note to tomorrows note with this Shortcut)
    • new: input option done tasks - will provide all done tasks from a document to the Shortcut
    • updated: multiple input template supports done tasks input - download here
    Source code(tar.gz)
    Source code(zip)
    craftcuts-eXtension.craftx(273.83 KB)
  • 0.2(Mar 16, 2022)

    v0.2 a lot more settings and Shortcut input options

    • new: configuration menu for added Shortcuts
    • new: selecting a display name for the Shortcut is now possible
    • new: configuration options to select the inputs provided to the Shortcut:
      • page title
      • selected blocks
      • open tasks
      • url blocks
      • all blocks
    • change: URL Blocks will now be exported as markdown urls and not include a link to the original block in Craft since this makes more sense
    Source code(tar.gz)
    Source code(zip)
    craftcuts-eXtension.craftx(273.58 KB)
Owner
FlohGro
FlohGro
Grupprojekt för kurserna 'Javascript med Ramverk' och 'Agil Utveckling'

JavaScript-med-Ramverk-Laboration-3 Grupprojektet för kurserna Javascript med Ramverk och Agil Utveckling. Utvecklingsguide För information om hur utv

Svante Jonsson IT-Högskolan 3 May 18, 2022
Hemsida för personer i Sverige som kan och vill erbjuda boende till människor på flykt

Getting Started with Create React App This project was bootstrapped with Create React App. Available Scripts In the project directory, you can run: np

null 4 May 3, 2022
Kurs-repo för kursen Webbserver och Databaser

Webbserver och databaser This repository is meant for CME students to access exercises and codealongs that happen throughout the course. I hope you wi

null 14 Jan 3, 2023
Notion + Craft.do + Next.js

Forked from Nobelium Nobelium Plus Demo: https://zuolan.me Quick Start Duplicate Craigary's Notion template, and share it to the public Fork this proj

ZuoLan 42 Dec 22, 2022
Tempo is an easy, intuitive JavaScript rendering engine that enables you to craft data templates in pure HTML.

Tempo 2.0 Tempo is an easy, intuitive JavaScript rendering engine that enables you to craft data templates in pure HTML. Why use Tempo? Clear separati

Twigkit 707 Jan 3, 2023
This is a frontend tool to help you craft valid seed poems.

seed-poem-tool This is a frontend tool to help you craft valid seed poems. A seed poem is a small 12 to 24 word poem that is also a valid BIP-39 mnemo

Matt DesLauriers 21 Sep 18, 2022
A vscode extension to quickly print variable, variable type, tensor shape etc by using shortcuts

Quick Python Print This repo is inspired by "Python Quick Print". "Python Quick Print" can quickly print out variables on the console by using shortcu

weida wang 5 Oct 28, 2022
Browser extension to add more keyboard shortcuts to TweetDeck.

TweetDeck Shortcut Plus Browser extension to add more keyboard shortcuts to TweetDeck. Keyboard shortcuts Browse Browse tweet (default: alt+b) Browse

Ryo Nakamura 5 May 26, 2022
Browser extension to add more keyboard shortcuts to twitter.com.

Twitter Shortcut Plus Browser extension to add more keyboard shortcuts to twitter.com. Keyboard shortcuts Browse Browse links in background (default:

Ryo Nakamura 6 Jun 4, 2022
Wrap selected text in custom tags with shortcuts.

Obsidian Wrap With Shortcuts Wrap the selected text in customized tags with shortcuts. Underline is provided with Ctrl-u(Cmd-u) as default wrappers. P

Manic Chuang 24 Dec 28, 2022
A simple library for handling keyboard shortcuts with Alpine.js.

✨ Help support the maintenance of this package by sponsoring me. Alpine.js Mousetrap A simple library for handling keyboard shortcuts with Alpine.js.

Dan Harrin 102 Nov 14, 2022
Obsidian plugin to support a sequenced of keyboard shortcuts to run commands.

Sequence Shortcuts (Obsidian plugin) This plugin allows you to use a sequences of chords for shortcuts instead of single chords. Creating a hotkey You

Ruan Moolman 23 Dec 17, 2022
Easily create key board shortcuts for your JS functions. Built using JS only with no other dependency. Inspired from MacOS spotlight

floodlightjs Inspired from macOS spotlight, floodlight is simple JS library that will show a search area. How the search is handled is completely on y

Raj Nandan Sharma 6 Aug 12, 2022
Obsidian plugin: Type text shortcuts that expand into javascript generated text.

Obsidian Plugin - Text Expander JS (open beta) This Obsidian plugin allows the user to type text shortcuts that are replaced by (or "expanded into") j

Jon Heard 79 Dec 27, 2022
 Shortcuts → Cloudflare Images → GitHub Action

shortcuts-cfimages-action This repository guides you through setting up a workflow to upload photos from your Apple device to Cloudflare Images, then

Mu-An Chiou 15 Sep 21, 2022
Eth-explorers-extension - Chrome extension to open Ethereum addresses & transaction hash from any page on popular explorers + dashboards

eth-explorers-extension(s) This repository contains two folders with two extensions that work for address and transactions respectively. 1. eth-addres

Apoorv Lathey 71 Jan 6, 2023
Reddit Wherever Chrome Extension

Reddit Wherever Reddit Wherever adds Reddit comments to Youtube Videos and also allows you to view Reddit comments of any webpage. By default YouTube

null 1 Jan 3, 2022
Chrome extension to save and keep track of problems from different platforms(codeforces, codechef, atcoder, leetcode etc.)

Keep Problems A Browser extension which helps to save and keep track of problems from different platforms(codeforces, codechef, atcoder, leetcode etc.

Nirav Jain 4 Aug 13, 2022
A VS Code extension to practice and improve your typing speed right inside your code editor. Practice with simple words or code snippets.

Warm Up ?? ??‍?? A VS Code extension to practice and improve your typing speed right inside your code editor. Practice with simple words or code snipp

Arhun Saday 34 Dec 12, 2022