mnaoumov / obsidian-smart-rename

Obsidian Plugin that helps to rename notes keeping previous title in existing links
MIT License
26 stars 2 forks source link

Auto rename all created notes from "new note" to "DDMMYYYYhhmmss", exept daily notes #4

Open rapatar opened 1 year ago

rapatar commented 1 year ago
Medullitus commented 5 months ago

Is this a request or bug??

rapatar commented 5 months ago

This is request of function like Unique note creator, but applied to all notes.

For example, when you [[click]] on link for note that wasn't created yet, the new note will be created with "click" added to aliase, YYYYMMDDhhmmss.md format file name, and [[click]] in original note will be replaced with [[YYYYMMDDhhmmss|click]]. сб, 8 июн. 2024 г., 12:49 Medullitus @.***>:

Is this a request or bug??

— Reply to this email directly, view it on GitHub https://github.com/mnaoumov/obsidian-smart-rename/issues/4#issuecomment-2155878711, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAGGGB436EKMLNAXJSMQHBLZGLARLAVCNFSM6AAAAABI72CYP6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJVHA3TQNZRGE . You are receiving this because you authored the thread.Message ID: @.***>

Medullitus commented 5 months ago

I have a issue maybe it's a similar issue like yours. What can you say about this? My issue is that I have lots of notes with title that consist unvalid characters. I need to have an option to convert all of them at once

Medullitus commented 5 months ago

I mean this

1 2 3

rapatar commented 5 months ago

I think it can be done by batch renaming by regular expression. Search the way for batch renaming with regex, and ask ChatGPT to give you a regex command form. If I understand you correctly, you want to rename markdown file names, not the title. The regex command will replace "!" with "." symbols for example. Iyi günlər :)

сб, 8 июн. 2024 г., 22:22 Medullitus @.***>:

I mean this

1.png (view on web) https://github.com/mnaoumov/obsidian-smart-rename/assets/52373851/57076932-ee63-4e32-b50d-c49e10a9096f 2.png (view on web) https://github.com/mnaoumov/obsidian-smart-rename/assets/52373851/d84f652d-dbb8-4aac-9a7d-10c8c8e8399b 3.png (view on web) https://github.com/mnaoumov/obsidian-smart-rename/assets/52373851/3f90e90b-7cb8-430a-906d-4dba5d73af78

— Reply to this email directly, view it on GitHub https://github.com/mnaoumov/obsidian-smart-rename/issues/4#issuecomment-2156129784, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAGGGBYQ3JLWOANWJTFOT6DZGNDVTAVCNFSM6AAAAABI72CYP6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJWGEZDSNZYGQ . You are receiving this because you authored the thread.Message ID: @.***>

rapatar commented 5 months ago

Basicly it can be done by python script, ChatGPT will guide you. But don't forget to make a BACKUP of your vault first!

вс, 9 июн. 2024 г., 01:17 Dadash Mukhtarov @.***>:

I think it can be done by batch renaming by regular expression. Search the way for batch renaming with regex, and ask ChatGPT to give you a regex command form. If I understand you correctly, you want to rename markdown file names, not the title. The regex command will replace "!" with "." symbols for example. Iyi günlər :)

сб, 8 июн. 2024 г., 22:22 Medullitus @.***>:

I mean this

1.png (view on web) https://github.com/mnaoumov/obsidian-smart-rename/assets/52373851/57076932-ee63-4e32-b50d-c49e10a9096f 2.png (view on web) https://github.com/mnaoumov/obsidian-smart-rename/assets/52373851/d84f652d-dbb8-4aac-9a7d-10c8c8e8399b 3.png (view on web) https://github.com/mnaoumov/obsidian-smart-rename/assets/52373851/3f90e90b-7cb8-430a-906d-4dba5d73af78

— Reply to this email directly, view it on GitHub https://github.com/mnaoumov/obsidian-smart-rename/issues/4#issuecomment-2156129784, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAGGGBYQ3JLWOANWJTFOT6DZGNDVTAVCNFSM6AAAAABI72CYP6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJWGEZDSNZYGQ . You are receiving this because you authored the thread.Message ID: @.***>

Medullitus commented 5 months ago

This is a great suggestion! Thank you. But I have a question. If I understood you correctly, can I apply the full name from the title to the file name? Are you sure ChatGPT can show how to do this? By the way, how nice to meet an Azerbaijani Turk! Merhaba, gardaşım!

rapatar commented 5 months ago

Merhaba qardaş. I think to avoid problems with invalud characters in titles and file names, better to use "aliases" in front matter. Aliases can containt any character and will not cause a problem. There is a plugin in obsidian to show data from aliases as a file name. So your note file name can be whatever you want. That's why I did that feature request to this plugin. In my obsidian workflow all notes have filename like: 20240609141156.md And content is like:

aliases: Actual note title

Content of note.

Below plugin will display value from frontmatter (alias) as note name in file manager and graph https://github.com/Snezhig/obsidian-front-matter-title

вс, 9 июн. 2024 г., 04:53 Medullitus @.***>:

This is a great suggestion! Thank you. But I have a question. If I understood you correctly, can I apply the full name from the title to the file name? Are you sure ChatGPT can show how to do this? By the way, how nice to meet an Azerbaijani Turk! Merhaba, gardaşım!

— Reply to this email directly, view it on GitHub https://github.com/mnaoumov/obsidian-smart-rename/issues/4#issuecomment-2156248918, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAGGGBZIQYYVM7GBWKK6GLDZGORO7AVCNFSM6AAAAABI72CYP6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJWGI2DQOJRHA . You are receiving this because you authored the thread.Message ID: @.***>