An open API service indexing awesome lists of open source software.

https://github.com/AavaGames/obsidian-rename-file-to-selection

Rename your file to the current text selection.
https://github.com/AavaGames/obsidian-rename-file-to-selection

Last synced: about 7 hours ago
JSON representation

Rename your file to the current text selection.

Awesome Lists containing this project

README

        

# 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
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](https://github.com/hfour/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](https://aavagames.itch.io/). Thanks!