Extension Icon

Append Text to File

Append text to markdown and text files quickly from clipboard history or direct input.
Overview

Append to File

Append quick ideas, quotes, and notes to your text files without leaving your current context.

If you read something and want to save a thought immediately, this extension gives you fast, clipboard-first and text-first append workflows right inside Raycast.

What this extension is for

You use text files, Markdown notes, and quick scratchpads. You do not want to switch apps, open a new editor window, and lose your flow.

Append to File is built for that exact moment:

  • Capture something from clipboard in one command.
  • Rewrite or refine text in a tiny form, then append.
  • Append the latest clipboard text directly to the last file you appended to, in one action.
  • Undo the most recent append if needed.

Why this approach

This is intentionally a small workhorse, not a full document editor.

  • Small surface area.
  • Opinionated safe defaults.
  • Strong guardrails around what can be modified.
  • Minimal actions you can trust during fast workflows.

Core commands

CommandWhat it does
Append Text from Clipboard to FilePick text from clipboard history and append it to a file.
Append Text to FileOpen a text input, edit the content, then choose a file and append it.
Quick Append Current Clipboard Text to Last Appended FileAppend the latest clipboard text directly to the last file you appended to.
Undo Last AppendRevert only the most recent append when it is still safe to do so.
Open Last Appended FileOpen the last file you appended to.

Designed for text-first workflows

By default, the extension is limited to:

  • .txt or .text
  • .md or .markdown

You can expand this list in preferences if you want to support other plain-text formats.

This is intentional to keep append operations simple and low risk.

Key behavior

  • File discovery uses macOS Spotlight for speed and falls back to recursive scan only when needed.
  • Search includes only directories and extensions you allow.
  • Text appends are done with newline and separator controls, including quick insert-at-end or insert-at-beginning.
  • File content is written atomically, so extension updates are safer.
  • Unicode encodings are handled with care (including UTF-8/UTF-16 variants).
  • Undo is blocked if the file changed after the last append, to avoid unsafe restores.

Preferences you can tune

PreferencePurpose
Root DirectoriesSearch roots for files.
Allowed ExtensionsAllowed file extensions for safety.
Search ExcludesPaths/patterns to skip (for example .git, node_modules).
Search Max DepthFolder depth limit for search.
Separator RuleControls spacing between existing content and appended content.
Custom SeparatorOptional custom separator value (supports \n and \t).
Ensure Trailing NewlineKeep one trailing newline after append.
Timestamp FormatFormat used when using timestamp mode.
Default Insert PositionAppend at end or beginning by default.
Default Clipboard OffsetPreferred clipboard history item index (0 is latest).

Installation and development

npm install
npm run dev

Raycast should load the extension in development mode.

Development commands

npm run build
npm test
npm run lint

Feedback and philosophy

This extension is intentionally limited and focused. It was built with AI-assisted development as a practical tool, and it is evolving based on real usage feedback.

If you use it daily, you can shape its defaults in preferences and share ideas for what would make it better.

If you run into issues, check the GitHub issues page or open a new issue.