This file contains hidden or 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
| import "@johnlindquist/kit" | |
| // Name: | |
| let outdent = await npm('tiny-dedent') | |
| let replaceAll = await npm('just-replace-all') | |
| let chunkArray = await npm('chunk') | |
This file contains hidden or 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
| 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)) |
This file contains hidden or 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
| 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() |
This file contains hidden or 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
| import "@johnlindquist/kit" | |
| // Name: | |
| let outdent = await npm('tiny-dedent') | |
| let replaceAll = await npm('just-replace-all') | |
| let chunkArray = await npm('chunk') | |
This file contains hidden or 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
| // 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 |
This file contains hidden or 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
| 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(/\.[^/.]+$/, "")) |
This file contains hidden or 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
| 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. | |
| */ |
This file contains hidden or 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
| 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(/\/[^\/]*$/, '') |
This file contains hidden or 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
| 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) { |
This file contains hidden or 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
| 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 = [] |