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

aavagamesaavagames451 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!

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
451
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.

Claudian

Embeds Claude Code/Codex and other local Agents as AI collaborators in your vault.

Advanced URI

Control everything with URI.

Local REST API with MCP

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

Quick Switcher++

Enhanced Quick Switcher, search open panels, and symbols.

Omnisearch

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

Recent Files

Display a list of recently opened files.

Commander

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

Note Toolbar

Add customizable toolbars to your notes.