iCrawl / discord-vscode

🖋️ Update your discord status with a rich presence
https://marketplace.visualstudio.com/items?itemName=icrawl.discord-vscode
MIT License
1.19k stars 1.65k forks source link

Add the ability for "file_name_no_ext" #1905

Open SpencerDevv opened 7 months ago

SpencerDevv commented 7 months ago

I needed the ability to do {dir_name}.{file_name_no_ext}, and I saw that you didn't support it, so I decided to implement it.

I decided to do fileName.split('.').slice(0, -1).join('.'), because I also needed the ability to see the first ending.

Example: FileName.lua -> Filename. FileName.server.lua -> Filename.server.

image