aonosota144 downloadsExtract selections or headings into new notes using multiple configurable profiles (template, folder, filename rule, link style).
English | 日本語
Extract selected text or entire heading sections into new notes — using configurable profiles that control filename rules, destination folders, template files, frontmatter, and more.
.obsidian/plugins/note-refactor-plus/).| Command | Description |
|---|---|
| Extract selection (choose profile…) | Opens a profile picker, then extracts the selection |
| Extract selection (default profile) | Extracts the selection using the default profile |
| Extract heading (choose profile…) | Extracts the heading section at the cursor |
| Extract heading (default profile) | Same, using the default profile |
| Split by H1/H2/H3 headings (choose profile…) | Splits the whole note at every heading of the given level |
| Split from cursor (choose profile…) | Moves from the cursor to the end of the note into a new note |
| Split from cursor (default profile) | Same, using the default profile |
| Extract: {profile name} | One command per profile for direct hotkey assignment |
| Undo last extract | Restores the source note and deletes the most recently created file |
Each profile configures the following:
| Setting | Description |
|---|---|
| Name | Displayed in the command palette and profile picker |
| Icon | Lucide icon name (e.g. scissors, file-text) |
| Description | Optional subtitle shown in the picker |
| Setting | Values | Description |
|---|---|---|
| Extract mode | Move / Copy | Move removes the text from the source; Copy keeps it |
| Source replacement | Link / Embed / Nothing / Keep and append link | What replaces the extracted text in the source note |
| Note link template | Template string | Custom replacement for the source note. Overrides Source replacement when set. Variables: {{title}}, {{source_link}}, {{content}}, {{date:YYYYMMDD}} |
| After extract | Open / Open in new pane / Do nothing | What happens to the new note after creation |
| Conflict policy | Append number / Append to existing / Ask | How to handle a filename collision |
| Setting | Values | Description |
|---|---|---|
| Filename rule | First line / Prompt / Pattern | How the new note's filename is determined |
| Pattern | Template string | Used when rule is Pattern. Variables: {{title}}, {{date:YYYYMMDD}}, {{time:HHmm}} |
| Setting | Description |
|---|---|
| Exclude first line | Removes the first line from the extracted content. Useful with the First line filename rule to avoid duplicating the title. |
| Include first line as heading | Prepends the original first line as a Markdown heading (H1, H2, or H3) in the new note. Best combined with Exclude first line. |
| Normalize heading levels | Promotes all heading levels in the extracted content so the shallowest heading becomes H1. |
| Setting | Values | Description |
|---|---|---|
| Destination | Same as source / Fixed folder | Where the new note is saved |
| Folder path | Vault-relative path | Used when Destination is Fixed folder. Empty = vault root. |
| Setting | Values | Description |
|---|---|---|
| Target | New note / Append to existing note | Create a new file or append to one that already exists |
| Target file | Vault-relative path | The file to append to. Empty = prompt at runtime. |
| Append position | End of file / Under heading | Where in the target file the content is appended |
| Heading name | Exact heading text | Required when Append position is Under heading |
| Setting | Description |
|---|---|
| Template file | Path to a .md file used as the body template for the new note. Leave empty for plain content extraction. |
| Run Templater after creation | Passes the new note through the Templater plugin immediately after creation. Requires Templater to be installed and enabled. |
To add frontmatter properties (tags, source reference, custom keys) to extracted notes, include a YAML front matter block in your template file.
The following variables can be used in template files and Note link template:
| Variable | Description |
|---|---|
{{content}} |
The extracted text |
{{title}} / {{new_note_title}} |
The new note's filename (without extension) |
{{source_link}} |
A Markdown link to the source note (respects vault link format) |
{{source_title}} |
The source note's filename without extension |
{{source_path}} |
The source note's full vault-relative path |
{{heading}} |
The nearest heading above the cursor (for selection extractions) |
{{date:FORMAT}} |
Current date. FORMAT uses YYYY, MM, DD tokens. Example: {{date:YYYYMMDD}} |
{{time:FORMAT}} |
Current time. FORMAT uses HH, mm, ss tokens. Example: {{time:HHmm}} |
When Show context menu is enabled in global settings, right-clicking in the editor shows extract options directly. The top N most-used profiles appear as direct items; if you have more profiles than N, a "choose profile…" item appears at the bottom.
The Context menu items slider controls N (default: 3).
If you were using the Note Refactor plugin, you can import its settings as a starting profile:
The importer reads Note Refactor's data.json and creates a new profile with equivalent settings. If Note Refactor had an inline note template (not a template file), the content is shown in a notice so you can create a .md file and assign it as the Template file in the new profile.
All CSS classes used by this plugin are prefixed with nrp-. You can override them with a CSS snippet.
| Class | Element |
|---|---|
.nrp-profile-list |
Container for the profile list in settings |
.nrp-profile-item |
Individual profile row |
.nrp-profile-item.nrp-dragging |
Profile row being dragged |
.nrp-profile-item.nrp-drag-over |
Profile row that is the drop target |
.nrp-drag-handle |
Drag handle icon on the left of each profile row |
.nrp-profile-icon |
Profile icon |
.nrp-profile-info |
Name + description container |
.nrp-profile-name |
Profile name text |
.nrp-profile-desc |
Profile description text |
.nrp-default-badge |
"default" badge shown on the default profile |
.nrp-reorder-btns |
Up/down button container |
.nrp-profile-actions |
Action buttons container (set default, edit, duplicate, delete) |
.nrp-btn-default-active |
"Default" button when the profile is already default |
.nrp-profile-editor-modal |
Profile editor modal |
.nrp-section-heading |
Section headings inside the profile editor |
.nrp-icon-preview |
Live icon preview next to the icon name input |
.nrp-setting-group |
Indented group of related settings (e.g. append-to-existing details) |
.nrp-editor-actions |
Bottom action bar (Preview / Cancel / Save) |
.nrp-preview-modal |
Template preview modal |
.nrp-preview-label |
Section label inside the preview modal |
.nrp-preview-filename |
Filename preview block |
.nrp-preview-body |
Note body preview block |
MIT