Closed MunifTanjim closed 2 years ago
/camelcase
/pascalcase
(.*)
'/upcase' | '/downcase' | '/capitalize' | '/camelcase' | '/pascalcase'
Related to: https://github.com/hrsh7th/vim-vsnip/issues/83#issuecomment-856075164 https://github.com/hrsh7th/vim-vsnip/issues/209
This helps with my React.js snippet;
{ "useState": { "prefix": "us", "body": "const [${1:state}, set${1/(.*)/${1:/capitalize}/}] = useState(${2:initial${1/(.*)/${1:/capitalize}/}})$0", "description": "hook: useState" } }
This approach is good to me. I'll review it.
LGTM! Do you have remaining todo for this?
Do you have remaining todo for this?
Nope, that's it for now.
Thank you for your contribution!
/camelcase
and/pascalcase
from the Grammar.(.*)
(i.e. the whole word)'/upcase' | '/downcase' | '/capitalize' | '/camelcase' | '/pascalcase'
Related to: https://github.com/hrsh7th/vim-vsnip/issues/83#issuecomment-856075164 https://github.com/hrsh7th/vim-vsnip/issues/209
This helps with my React.js snippet;