Description
Eg "replace fine with camel hello world". It would support arbitrary format string ie "replace <target>
with <format_string>
". The actual replaceWith
function would accept a list of strings so that it can operate on compound targets. So talon-side we could support "replace fine and bar with camel hello world and snake hello there".
Could also support things other than format strings after the "with", eg "spell <letters>
" or "word" or "round" / "curly" / "square" that would return eg ["(", ")"]
, to combine with "boundary", allowing commands like "replace border round with square"
It is tempting to support cursorless targets after the "with" as well, eg "replace fine with gust", but this functionality is subsumed by "bring", eg "bring gust to fine", so not sure it's worth the added complexity