Haselnussbomber / HaselTweaks

A collection of quality of life tweaks and more.
GNU Affero General Public License v3.0
83 stars 12 forks source link

Trim text from WS Crafting query #105

Closed CallumCarmicheal closed 4 months ago

CallumCarmicheal commented 4 months ago

Trim the text query when doing the fuzzy search so that copying and pasting text like "Eggs " returns results from "eggs".

A small QoL feature that was bugging the hell out of me when copying from a workshop discord bot is that it always copied with a extra space. Trimming the surrounding whitespace from the user input should yield the same results.

CallumCarmicheal commented 4 months ago

For example double clicking a word in Discord will return "Word " instead of just the "Word". This works fine for stuff like "Wooden Chair" when you click on "Wooden " but will not return anything for "Chair ". Just something slowly driving me insane is all.

Haselnussbomber commented 4 months ago

Thanks for the PR! Because I was working on restructuring the plugin on the dev branch, I cherry-picked your commit (b7fd9d369d170792427379b4437996ef1ac47bd6) to avoid rebasing and all that. It's included in v24.0.0. Out now! :)