Skip to content

filecraft v0.1.0

Choose a tag to compare

@Emagjby Emagjby released this 24 Jan 20:50
· 13 commits to main since this release

filecraft.nvim turns file creation into a semantic, one-keypress operation: prompt once, then create the file, write the export, insert the import at cursor, jump to the new file, and refresh LSP.

Highlights

  • <leader>if workflow: path → export type → export name
  • Root resolution: nearest .git parent, fallback to cwd
  • JS/TS only (.js, .ts), blocking and synchronous by design
  • Locked templates: export default function Name() / export function Name()
  • Import insertion at cursor (insert line above cursor), relative path without extension
  • Minimal atomicity: on failure, remove inserted import and delete created file
  • Brute-force LSP sync via :LspRestart (guarded)