Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>DraftsNew to Visual Studio Code? Get it now.
Drafts

Drafts

rioskit

|
18 installs
| (0) | Free
Quickly access, create, and archive txt and dailynote.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Drafts

Manage daily notes and quick files efficiently.
Recommended for workspaces dedicated to note-taking, using a file structure like this:

.
├── .vscode/
├── archive/
│   ├── 2025-02-14.md
│   ├── 2025-02-15.md
│   └── travel_plan_2024.md
├── 2025-03-21.md
├── 2025-03-22.md
├── 2025-03-23.md
├── travel_plan_2025.md
└── todo.txt

Features

1. Open/Create File: drafts.open

  • Shows a list of files in your workspace. Select a file to open it.
  • Today's daily note always appears first in the list.
  • To create a file, enter a filename. If you leave it blank, it uses the current timestamp.
  • Filenames must be unique in the root and archive folders.

2. Archive Files: drafts.archive

  • Archives files older than a specific date.
  • Moves these files to the archive folder (e.g., archive, set in settings).
  • Archived files still show up in search. Opening them moves them back to the root folder.

3. WikiLinks

  • Turns text like [[filename]] into clickable WikiLinks.
  • Finds linked files in the root and archive folders.
  • Hover over a WikiLink to preview the file.
  • Clicking a link to a missing file asks if you want to create it.

Tips

  • Assign a shortcut like Cmd+n to the drafts.open command for easy access.
  • You can use filenames like YYYYMM for monthly notes.

Drafts(ja)

デイリーノートや書き捨てのファイルを効率的に管理するためのVS Code拡張機能です。
メモ管理用のワークスペースに限定して本拡張機能をインストールし、以下に示すようなファイル構造で使用することを想定しています。

.
├── .vscode/
├── archive/
│   ├── 2025-02-14.md
│   ├── 2025-02-15.md
│   └── travel_plan_2024.md
├── 2025-03-21.md
├── 2025-03-22.md
├── 2025-03-23.md
├── travel_plan_2025.md
└── todo.txt

機能

1. ファイルを開く/作成する: drafts.open

  • ワークスペースルートにあるファイルの一覧を表示し、選択してファイルを開きます。
  • ファイル作成時には、ファイル名の入力を求めます。未入力の場合は、現在時刻がファイル名として自動的に設定されます。
  • 今日の日付のデイリーノートは、常にファイル一覧の先頭に表示されます。
  • ルートディレクトリとアーカイブディレクトリ内では、ファイル名は一意である必要があります。

2. ファイルをアーカイブする: drafts.archive

  • 更新日時が古いファイルをアーカイブ対象とします。
  • 対象ファイルを一括でアーカイブディレクトリ (archive など、設定で指定したディレクトリ) に移動します。
  • アーカイブ後もファイルは検索結果に表示され、開くと同時にルートディレクトリに移動します。

3. WikiLinks

  • ファイル内の [[ファイル名]] 形式のテキストをWikiLinkとして認識し、クリック可能なリンクにします。
  • WikiLinkのリンク先ファイルは、ルートディレクトリとアーカイブディレクトリから検索されます。
  • WikiLinkにカーソルを合わせると、リンク先ファイルの内容の一部をプレビュー表示します。
  • 存在しないファイルへのWikiLinkをクリックすると、その名前でファイルを新規作成するか確認します。

ヒント

  • drafts.openコマンドをCmd+nなどのショートカットキーに割り当てて使用すると、快適に利用できます。
  • デイリーノートのファイル名をYYYMMにすると、マンスリーノートとして利用できます
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft