Skip to content

Instantly share code, notes, and snippets.

View tayiorbeii's full-sized avatar

Taylor Bell tayiorbeii

View GitHub Profile
import "@johnlindquist/kit"
// Name:
let outdent = await npm('tiny-dedent')
let replaceAll = await npm('just-replace-all')
let chunkArray = await npm('chunk')
import "@johnlindquist/kit"
/*
* Highlight the long video we are taking clips out of in Finder
*/
let longVideoFiles = await drop()
/**
* Tell kit we want to be working in the same directory as the source file
*/
cd(path.dirname(longVideoFiles[0].path))
import "@johnlindquist/kit"
const replaceAll = await npm('just-replace-all')
const leadingZeros = await npm('leading-zeros')
// Name:
/*
* Highlight the long video we are taking clips out of in Finder
*/
let longVideoFile = await getSelectedFile()
import "@johnlindquist/kit"
// Name:
let outdent = await npm('tiny-dedent')
let replaceAll = await npm('just-replace-all')
let chunkArray = await npm('chunk')
// Name: Embed clipboard url in Notion
// Description: Types /embed and pastes the clipboard url into Notion
import "@johnlindquist/kit"
await hide()
let link = await paste()
// parse the link from markdown string
import "@johnlindquist/kit"
const _ = await npm('lodash')
// Name: checklist based on filename
// Description: generate a checklist based on the filename
let files = await drop()
let names = files.map(file => file.name.replace(/\.[^/.]+$/, ""))
import "@johnlindquist/kit"
// Name: stub-total-typescript-drafts
/**
* Copy all transcript .srt and .txt files into local repo directory
* so that .ts, .srt, and .txt files are all together.
* Run the `srt-to-text` script to format the transcript txt files.
*/
import "@johnlindquist/kit"
// Name: Copy path of selected file
// Shortcut: opt+d
// Author: Taylor Bell
let selectedFile = await getSelectedFile()
// remove the filename from the path
let path = selectedFile.replace(/\/[^\/]*$/, '')
import "@johnlindquist/kit"
let replaceAll = await npm('just-replace-all')
// Name: renumber-filenames-by-one
// Author: Taylor Bell
// Description: Add one to the numbered filenames dropped in
let files = await drop()
for (let f of files) {
import "@johnlindquist/kit"
const _ = await npm('lodash')
// Name: transcript-notes-checklist
// Description: Drag srt-transcript.txt files to generate a Roam formatted checklist that includes the transcript
let files = await drop()
let results = []