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
| // Cmd+E: Load init.js from Gist | |
| // Cmd+Enter: eval current line or selection | |
| // --- Gist/URL to Buffer Loader --- | |
| async function loadGistToBuffer() { | |
| const url = prompt("Paste GitHub Raw or Gist URL:"); | |
| if (!url) return; | |
| try { | |
| // Ensure we are hitting the 'raw' version if it's a standard Gist link |
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
| // Quick comment toggle with Ctrl+/ | |
| monaco.editor.addKeybindingRule({ | |
| keybinding: monaco.KeyMod.CtrlCmd | monaco.KeyCode.Slash, | |
| command: 'editor.action.commentLine' | |
| }); | |
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
| " ============================================================================= | |
| " line2file.vim - Append current line or visual selection to a target file | |
| " ============================================================================= | |
| " Author: Ömer Kasapoğlu | |
| " Description: | |
| " Primitive Vim plugin to quickly append text to a file. | |
| " Features: | |
| " - Append the current line to a target file | |
| " - Append contents of a register (optional) | |
| " - Yank visual selection to a register for later appending |