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
// Enable the Move block up and down from keyboard on a Chromebook | |
// Use CTRL+ALT+K (move block up) and CTRL+ALT+J (move block down) | |
// This code is dependent on Roam42, thus the 10 second delay to | |
// allow roam and roam42 to initiialize key assignments can easily | |
// be changed. See the Mousetrap documentation for key support: | |
// https://craig.is/killing/mice | |
// ADD TO ROAM | |
// 1) Create new page & name it something you will remember |
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
// roam/js code snippet to add crossing out completed todos | |
// also adds the CSS classname custom-strikethrough for css mods | |
;(()=>{ | |
if( typeof window.roamhacker_checkboxStrikeout != 'undefined') return; | |
window.roamhacker_checkboxStrikeout = {}; | |
const scanCheckboxes = () => { |
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
/* | |
Author:: @CatoMinor3 | |
Version:: 2 | |
Date:: June 14th, 2020 | |
PayPal support: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=6AMGMUDRX29XU&source=url | |
How to use this? Simply write c:COLOR (see supported colors below) and follow it with | |
bold, italics or highlighted text. | |
*/ | |
/* ---------------- Roam colors -----------------*/ |
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
// Roam42 is a prerequisite for this code, as it uses Roam42 libraries | |
// Install & Config: | |
// Add the code in this gist to a roam/js block in your roam graph and enable it | |
// change the text between quotes "" where it says let txt = "....." | |
// You can change the custom keys where it says hotkeys('ctrl+shift+7) | |
// this uses the hotkeys library, so explore more key combinations at: https://wangchujiang.com/hotkeys/ | |
// after changing the text below, you may have to refresh Roam for it to take effect. | |
setTimeout(()=>{ | |
Mousetrap.unbind('ctrl+shift+7') |
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
// Roam42 is a prerequisite for this code, as it uses Roam42 libraries | |
// Install & Config: | |
// Add the code from this gist to a roam/js block in your roam graph and enable it | |
// You can change the custom keys where it says Mousetrap.bind('ctrl+e) | |
// See for more keyboard options: https://craig.is/killing/mice | |
// I am on European SmartKeyboard & assigned §, which is where ESC is on most keyboards | |
setTimeout(()=>{ | |
Mousetrap.bind('ctrl+e', function(event, handler) { | |
event.preventDefault() |
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
<%* | |
/* | |
# Hypothes.idian a templater script for retrieving annotations from Hypothes.is | |
Dev: TfTHacker https://twitter.com/TfTHacker | |
# Prerequisites: | |
+ Templater plugin by https://github.com/SilentVoid13/Templater | |
+ Free Hypothes.is developer token from: https://hypothes.is/account/developer | |
+ This script will prompt you for his token and save it to a file called "hypothesis config.md" | |
+ This file store your configuration and can be located any where in your vault. |
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
```dataviewjs | |
// find dates based on format [[YYYY-MM-DD]] | |
const findDated = (task)=>{ | |
if( !task.completed ) { | |
task.link = " " + "[[" + task.path + "|*]]"; | |
task.date=""; | |
const found = task.text.match(/\[\[([12]\d{3}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01]))\]\]/); | |
if(found) task.date = moment(found[1]); | |
return true; | |
} |
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
<%* | |
/* | |
Updated: 9/20/2022 | |
Author: TfTHacker | |
Gist: https://gist.github.com/TfTHacker | |
Twitter: https://twitter.com/TfTHacker | |
Requirements: Templater Plugin for Obsidian | |
Description: This script performs the following actions: | |
1. Moves current file to the archive folder (defined in the variable archivePath) | |
if archivePath is null, a folders in the vault will be presented for selection |
OlderNewer