Add ClojureSublimedEval command wrap_fstr optional arg
This satisfies the #101 requirements.
The implementation adds optional argument `wrap_fstr` to the `ClojureSublimedEval` command. `wrap_fstr` should be a format string for the `%` operator
Example usage:
```
{"keys": ["ctrl+shift+enter"],
"command": "clojure_sublimed_eval",
"args": {"wrap_fstr": "(doto %s clojure.pprint/pprint)"}
"context": [{"key": "selector", "operator": "equal", "operand": "source.clojure"}]}
```
I have tested this update with the socket repl connection and the raw nREPL. All other ones should reuse the same logic as the raw nREPL. The original behavior of the `ClojureSublimedEval` is left as is by default, the update is backwards compatible
合并状态:未合并 关闭于 2024-03-04 1 条评论