Rename File to Selection
approvedby Aava
Rename your file to the current text selection.
★ 2 stars↓ 322 downloadsUpdated 1y agoMIT
rename-file-to-selection
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
- Open BRAT and add to beta plugin
- 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!
For plugin developers
Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.