Created
August 13, 2025 15:51
-
-
Save rochacbruno/688e57dcce74e78a7d954cdfc3303126 to your computer and use it in GitHub Desktop.
VSCode, Codium, Cursor snippets for presenterm commands.
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
{ | |
"Presenterm Intro Slide": { | |
"prefix": "ptitle", | |
"body": [ | |
"---", | |
"title: \"${1:Your Title}\"", | |
"sub_title: \"${2:Your Subtitle (optional)}\"", | |
"author: ${3:Your Name}", | |
"---" | |
], | |
"description": "Front-matter for Presenterm intro slide" | |
}, | |
"Presenterm Slide Title": { | |
"prefix": "pslide", | |
"body": [ | |
"${1:Slide Title}", | |
"===========" | |
], | |
"description": "Setext-style slide title" | |
}, | |
"Presenterm End Slide": { | |
"prefix": "peos", | |
"body": [ | |
"<!-- end_slide -->" | |
], | |
"description": "Presenterm end of slide marker" | |
}, | |
"Presenterm Column Layout": { | |
"prefix": "pcolayout", | |
"body": [ | |
"<!-- column_layout: [${1:3}, ${2:2}] -->" | |
], | |
"description": "Define column layout ratios" | |
}, | |
"Presenterm Column": { | |
"prefix": "pcolumn", | |
"body": [ | |
"<!-- column: ${1:0} -->" | |
], | |
"description": "Enter column number" | |
}, | |
"Presenterm Reset Layout": { | |
"prefix": "presetlayout", | |
"body": [ | |
"<!-- reset_layout -->" | |
], | |
"description": "Reset column layout" | |
}, | |
"Presenterm Pause": { | |
"prefix": "ppause", | |
"body": ["<!-- pause -->"], | |
"description": "Pause reveal until next key press" | |
}, | |
"Presenterm Font Size": { | |
"prefix": "pfont", | |
"body": ["<!-- font_size: ${1:2} -->"], | |
"description": "Change font size (kitty terminal only)" | |
}, | |
"Presenterm Jump to Middle": { | |
"prefix": "pjump", | |
"body": ["<!-- jump_to_middle -->"], | |
"description": "Vertically center content" | |
}, | |
"Presenterm New Lines (multiple)": { | |
"prefix": "pnewlines", | |
"body": ["<!-- new_lines: ${1:10} -->"], | |
"description": "Insert multiple explicit new lines" | |
}, | |
"Presenterm New Line (single)": { | |
"prefix": "pnewline", | |
"body": ["<!-- new_line -->"], | |
"description": "Insert a single explicit new line" | |
}, | |
"Presenterm Incremental Lists ON": { | |
"prefix": "pinc", | |
"body": ["<!-- incremental_lists: true -->"], | |
"description": "Enable incremental bullet lists" | |
}, | |
"Presenterm Incremental Lists OFF": { | |
"prefix": "pincoff", | |
"body": ["<!-- incremental_lists: false -->"], | |
"description": "Disable incremental bullet lists" | |
}, | |
"Presenterm List Item Newlines": { | |
"prefix": "plistnl", | |
"body": ["<!-- list_item_newlines: ${1:2} -->"], | |
"description": "Set spacing between list items" | |
}, | |
"Presenterm Include File": { | |
"prefix": "pincfile", | |
"body": ["<!-- include: ${1:file.md} -->"], | |
"description": "Include external markdown file" | |
}, | |
"Presenterm No Footer": { | |
"prefix": "pnof", | |
"body": ["<!-- no_footer -->"], | |
"description": "Remove footer from slide" | |
}, | |
"Presenterm Skip Slide": { | |
"prefix": "pskip", | |
"body": ["<!-- skip_slide -->"], | |
"description": "Skip current slide in presentation" | |
}, | |
"Presenterm Align Left": { | |
"prefix": "palignl", | |
"body": ["<!-- alignment: left -->"], | |
"description": "Left-align the slide content" | |
}, | |
"Presenterm Align Center": { | |
"prefix": "palignc", | |
"body": ["<!-- alignment: center -->"], | |
"description": "Center-align the slide content" | |
}, | |
"Presenterm Align Right": { | |
"prefix": "palignr", | |
"body": ["<!-- alignment: right -->"], | |
"description": "Right-align the slide content" | |
}, | |
"Presenterm End of Slide": { | |
"prefix": "peos", | |
"body": ["<!-- end_slide -->"], | |
"description": "Explicit slide delimiter" | |
}, | |
"Presenterm Image": { | |
"prefix": "pimg", | |
"body": [""], | |
"description": "Insert image with width specification" | |
}, | |
"Presenterm Code Block": { | |
"prefix": "pcode", | |
"body": [ | |
"```${1:rust}", | |
"${2:// Your code here}", | |
"```" | |
], | |
"description": "Code block with syntax highlighting" | |
}, | |
"Presenterm Code Block with Line Numbers": { | |
"prefix": "pcodeln", | |
"body": [ | |
"```${1:rust} +line_numbers", | |
"${2:// Your code here}", | |
"```" | |
], | |
"description": "Code block with line numbers" | |
}, | |
"Presenterm Code Block with Highlighting": { | |
"prefix": "pcodehl", | |
"body": [ | |
"```${1:rust} {${2:1,3,5-7}}", | |
"${3:// Your code here}", | |
"```" | |
], | |
"description": "Code block with specific line highlighting" | |
}, | |
"Presenterm Code Block with Progressive Highlighting": { | |
"prefix": "pcodeprog", | |
"body": [ | |
"```${1:rust} {${2:1-3|5-7|all}}", | |
"${3:// Your code here}", | |
"```" | |
], | |
"description": "Code block with progressive line highlighting" | |
}, | |
"Presenterm Executable Code": { | |
"prefix": "pexec", | |
"body": [ | |
"```${1:bash} +exec", | |
"${2:echo \"Hello, World!\"}", | |
"```" | |
], | |
"description": "Executable code block (press Ctrl+E to run)" | |
}, | |
"Presenterm Execute and Replace": { | |
"prefix": "pexecreplace", | |
"body": [ | |
"```${1:bash} +exec_replace", | |
"${2:date}", | |
"```" | |
], | |
"description": "Execute code and replace with output" | |
}, | |
"Presenterm Code with Custom Output Location": { | |
"prefix": "pexecid", | |
"body": [ | |
"```${1:python} +exec +id:${2:my_code}", | |
"${3:print(\"Output will appear at snippet_output location\")}", | |
"```", | |
"", | |
"<!-- snippet_output: ${2:my_code} -->" | |
], | |
"description": "Code with custom output placement" | |
}, | |
"Presenterm Snippet Output Location": { | |
"prefix": "psnippetout", | |
"body": ["<!-- snippet_output: ${1:identifier} -->"], | |
"description": "Place output of code snippet with matching id" | |
}, | |
"Presenterm Mermaid Diagram": { | |
"prefix": "pmermaid", | |
"body": [ | |
"```mermaid +render", | |
"${1|graph TD,graph LR,sequenceDiagram,classDiagram,stateDiagram,gantt,pie,gitGraph|}", | |
" ${2:A[Start] --> B[End]}", | |
"```" | |
], | |
"description": "Mermaid diagram that renders as image" | |
}, | |
"Presenterm Mermaid with Width": { | |
"prefix": "pmermaidw", | |
"body": [ | |
"```mermaid +render +width:${1:50}%", | |
"${2|graph TD,graph LR,sequenceDiagram|}", | |
" ${3:A[Start] --> B[End]}", | |
"```" | |
], | |
"description": "Mermaid diagram with custom width" | |
}, | |
"Presenterm LaTeX Math": { | |
"prefix": "platex", | |
"body": [ | |
"```latex +render", | |
"${1:\\begin{equation}}", | |
"${2:E = mc^2}", | |
"${3:\\end{equation}}", | |
"```" | |
], | |
"description": "LaTeX math expression" | |
}, | |
"Presenterm Typst": { | |
"prefix": "ptypst", | |
"body": [ | |
"```typst +render", | |
"${1:$ sum_(i=0)^n i = (n(n+1))/2 $}", | |
"```" | |
], | |
"description": "Typst mathematical typesetting" | |
}, | |
"Presenterm Code No Background": { | |
"prefix": "pcodenobg", | |
"body": [ | |
"```${1:rust} +no_background", | |
"${2:// Your code here}", | |
"```" | |
], | |
"description": "Code block without background" | |
}, | |
"Presenterm Validate Code": { | |
"prefix": "pvalidate", | |
"body": [ | |
"```${1:bash} +validate", | |
"${2:echo \"This will be validated\"}", | |
"```" | |
], | |
"description": "Code block that gets validated" | |
}, | |
"Presenterm Expect Failure": { | |
"prefix": "pexpectfail", | |
"body": [ | |
"```${1:bash} +exec +expect:failure", | |
"${2:exit 1}", | |
"```" | |
], | |
"description": "Code expected to fail (non-zero exit)" | |
}, | |
"Presenterm Acquire Terminal": { | |
"prefix": "pacquireterm", | |
"body": [ | |
"```${1:bash} +exec +acquire_terminal", | |
"${2:vim}", | |
"```" | |
], | |
"description": "Code that needs TTY access" | |
}, | |
"Presenterm Hide Lines": { | |
"prefix": "phidelines", | |
"body": [ | |
"```${1:rust}", | |
"${2:fn main() {}", | |
"# ${3:// This line is hidden}", | |
"${4: println!(\"Visible\");}", | |
"# ${5:// This line is also hidden}", | |
"${6:}}", | |
"```" | |
], | |
"description": "Code with hidden lines (prefix with #)" | |
}, | |
"Presenterm External Code File": { | |
"prefix": "pcodefile", | |
"body": ["```${1:rust} file:${2:src/main.rs}"], | |
"description": "Include code from external file" | |
}, | |
"Presenterm External Code File Range": { | |
"prefix": "pcodefilerange", | |
"body": ["```${1:rust} file:${2:src/main.rs}:${3:10}:${4:20}"], | |
"description": "Include specific lines from external file" | |
}, | |
"Presenterm Colored Text": { | |
"prefix": "pcolor", | |
"body": ["<span style=\"color: ${1:#ff0000}; background-color: ${2:transparent}\">${3:colored text}</span>"], | |
"description": "Colored text with span tag" | |
}, | |
"Presenterm Theme Colored Text": { | |
"prefix": "pcolortheme", | |
"body": ["<span style=\"color: palette:${1:primary}; background-color: palette:${2:background}\">${3:themed text}</span>"], | |
"description": "Text with theme palette colors" | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment