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 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
// 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
// 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
// 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
<%* | |
window.fileDate = app.plugins.getPlugin('nldates-obsidian').parseDate(tp.file.title).moment; | |
window.fileDate = window.fileDate.isValid() ? window.fileDate : moment(); | |
if ( [1,2,3,4,5].includes(fileDate.day()) ) { %> | |
Weekday | |
<%* } else if( [0,6].includes(fileDate.day())) { %> | |
Weekend | |
<%* } %> |
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
<%* | |
window.fileDate = app.plugins.getPlugin('nldates-obsidian').parseDate(tp.file.title).moment; | |
window.fileDate = window.fileDate.isValid() ? window.fileDate : moment(); | |
if(fileDate.day()==0) { %> | |
Sunday | |
<%* } else if(fileDate.day()==1) { %>- <%'['%> ] | |
Monday | |
<%* } else if(fileDate.day()==2) { %>- <%'['%> ] | |
Tuesday | |
<%* } else if(fileDate.day()==3) { %>- <%'['%> ] |
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
<%* | |
/* | |
Templater script to add commands to the command palette to quickly launch web resources | |
Brought to you by TfT Hacker (https://twitter.com/TfTHacker) | |
Last update: 2022-04-17 | |
Instructions: | |
To add a site: | |
Add a new line with the title of the site and the url to the web page. |
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
<%* | |
// | |
// Script adds a ribbon button and command in the Command palette to open the current document in VS CODE | |
// | |
// Install: | |
// 1. Add this text to a markdown file in your Templater "templates" folder | |
// 2. In templater settings, add the file you created in step 1 to the Startup section of Templater Settings | |
// 4. Restart Obisidan. Now the command should be available in the command palette | |
// |
OlderNewer