sv-ochis / discoveries

0 stars 0 forks source link

fig plugins #2

Closed sv-ochis closed 1 year ago

sv-ochis commented 1 year ago

fig.io - terminal suggestions

image

to create a plugin:

  1. go to ~/.fig/autocomplete
  2. npm run dev
const ourCustomGenerator: Fig.Generator = {
  script: "cat filename",
  postProcess: (out) => {
    return [{
      name: "...",
      description: "...."
    }]
  }
}
const completionSpec: Fig.Spec = {
  name: "command name",
  args:{
    generators: ourCustomGenerator
  },
  subcommands: []
}
sv-ochis commented 1 year ago

findings: • priority 76+ plus to be on top, 49 and below to be at the bottom

investigating • doesnt work to add suggestions to existing suggested apps - use an alias and create suggestions for it (kinda works)

sv-ochis commented 1 year ago

investigation stopped - closed sourced app