Search...Search plugins and themes...
⌘K
Sign in
  • Get started
  • Download
  • Pricing
  • Enterprise
  • Account
  • Obsidian
  • Overview
  • Sync
  • Publish
  • Canvas
  • Mobile
  • Web Clipper
  • CLI
  • Learn
  • Help
  • Developers
  • Changelog
  • About
  • Roadmap
  • Blog
  • Resources
  • System status
  • License overview
  • Terms of service
  • Privacy policy
  • Security
  • Community
  • Plugins
  • Themes
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

Rename File to Selection

aavagamesaavagames368 downloads

Rename your file to the current text selection.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates2

Rename your file to the current text selection.

Commands

Rename File to Selection

Uses the current selection / highlighted text in the active document to rename the active file after sanitizing it.

Tips

  • Add a hotkey to the command for ease of use, I use CRTL+ALT+R.
  • Use the Commander community plugin to add a command button near your file title for ease of use on mobile.

Install

Download main.js and manifest.json and add it to a folder called "rename-title-to-selection" in your vaults ".obsidian/plugins"

Using BRAT obsidian plugin

  1. Open BRAT and add to beta plugin
  2. Paste in the github URL (https://github.com/AavaGames/obsidian-rename-file-to-selection/)

Credits

sanitize-filename-ts - to sanitize selection for filenames

Donation

If you'd like to buy me a cup of coffee, buy one of my games on itch.io. Thanks!

77%
HealthGood
ReviewSatisfactory
About
Rename the active file to the current text selection after sanitizing it into a filesystem-safe filename. Trigger the command to quickly rename files from highlighted text without retyping.
FilesCommands
Details
Current version
1.0.1
Last updated
Last year
Created
3 years ago
Updates
2 releases
Downloads
368
Compatible with
Obsidian 0.15.0+
Platforms
Desktop, Mobile
License
MIT
Report bugRequest featureReport plugin
Sponsor
Support
Author
aavagamesaavagames
aavagames.itch.io/
GitHubaavagames
  1. Community
  2. Plugins
  3. Files
  4. Rename File to Selection

Related plugins

Find orphaned files and broken links

Find files that are not linked anywhere and would otherwise be lost in your vault. In other words: files with no backlinks.

Notebook Navigator

A better file browser and calendar inspired by Apple Notes, Bear, Evernote and Day One.

Local REST API & MCP Server

Unlock your automation needs by interacting with your notes over a secure REST API.

QuickAdd

Quickly add new notes or content to your vault.

Recent Files

Display a list of recently opened files.

Omnisearch

Intelligent search for your notes, PDFs, and OCR for images.

Claudian

Embeds Claude Code/Codex as an AI collaborator in your vault. Your vault becomes agent's working directory, giving it full agentic capabilities: file read/write, search, bash commands, and multi-step workflows.

Quick Switcher++

Enhanced Quick Switcher, search open panels, and symbols.

Commander

Customize your workspace by adding commands everywhere, create macros and supercharge your mobile toolbar.

Image Converter

Convert, compress, resize, annotate, markup, draw, crop, rotate, flip, align, drag-resize, rename with variables, and batch process images: WEBP, JPG, PNG, HEIC, TIF