misode / vscode-nbt

NBT extension for VSCode
https://marketplace.visualstudio.com/items?itemName=Misodee.vscode-nbt
MIT License
167 stars 12 forks source link

NBT Data Type Hotkey Additions #36

Closed catter1 closed 1 year ago

catter1 commented 2 years ago

You can add a new tag via a button (blue arrow in image). When you do so, it creates the tag below (red arrow in image). Now, currently, before you type anything, you can pre-select the data type by hot keys. For example, push i and it swaps to int, or push l and it swaps to long. Then you can immediately start typing without having to click on the text box.

There are a couple data types that don't have this capability - mainly list and string, probably because l and s already map to long and short, respectively. My suggestion: add some hotkeys for those data types. I use those two a lot, and just the added convenience is helpful. Maybe g for string, and t for list.

No idea if there are others missing. Thanks!

image

misode commented 2 years ago

I think you can type li and st for those. This is the built-in behavior of dropdowns so I'm not sure how easy it will be to customize this.

catter1 commented 2 years ago

At least on my client, li and st do not work

https://user-images.githubusercontent.com/63272345/197809755-c314b796-a643-41b3-be5e-8b29542d0cbf.mp4

misode commented 1 year ago

I made S and L default to string and list respectively because I figured those are used more often. This is the full list: image

catter1 commented 1 year ago

Looks excellent! Thank you!