Skip to content

wzy1935/spellpaste

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example spells:

[
  {
    "id": "format",
    "type": "safe-script",
    "description": "Reformat contents into one paragraph",
    "content": "let formatted = content.replace(/\\s+/g, ' '); formatted = formatted.replace(/\\n{2,}/g, ' '); formatted;",
    "shortcut": "Alt+F"
  },
  {
    "id": "date",
    "type": "unsafe-script",
    "description": "Output date of today",
    "content": "const now = new Date(); now.toLocaleDateString('zh-CN');",
    "shortcut": "Alt+D"
  },
  {
    "id": "hello",
    "type": "text",
    "description": "output simple hello world",
    "content": "Hello world!",
    "shortcut": "Alt+H"
  },
  {
    "id": "uuid",
    "type": "unsafe-script",
    "description": "Generate a random UUID",
    "content": "crypto.randomUUID();",
    "shortcut": "Alt+U"
  }
]

About

Text automation through clipboard

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •