Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
46.92k
stars
2.69k
forks
source link
Add more string conversion commands (base64, URL, HTML entities, JSON, sha1, etc.) #14172
Open
matthieusieben opened 2 months ago
Check for existing issues
Describe the feature
Add the following commands for UTF8 string conversion (NodeJS encoding implementation equivalent in parenthesis):
encodeURIComponent('selected text')
)Buffer.from('selected text').toString('base64')
)Buffer.from('selected text').toString('base64url')
)Buffer.from('selected text').toString('hex')
)JSON.stringify('selected text')
)Optional:
new Uint8Array(Buffer.from('selected text'))
)new Uint8Array(Buffer.from('73656c65637465642074657874', 'hex'))
)new Uint8Array(Buffer.from('c2VsZWN0ZWQgdGV4dA==', 'base64'))
)new Uint8Array(Buffer.from('c2VsZWN0ZWQgdGV4dA', 'base64url'))
)If applicable, add mockups / screenshots to help present your vision of the feature
No response