-
-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FR: log buffer like in conjure #462
Comments
Hello, if I implement this feature would you like to accept it @liquidz ? :) |
@glyh Sorry for late reply 🙇
It depends on the policy of implementation. vim-iced already has a Stdout buffer, and I want to avoid a situation where multiple similar features exist. But, it is currently possible to output evaluation code and evaluation results to the Stdout buffer using the Hook feature, call iced#hook#add('eval_prepared', {
\ 'type': 'function',
\ 'exec': {v -> iced#buffer#stdout#append(printf(";; Eval:\n%s", v['code']))},
\ })
call iced#hook#add('evaluated', {
\ 'type': 'function',
\ 'exec': {v -> iced#buffer#stdout#append(printf(";; Ret:\n%s", v['result']['value']))},
\ }) How did you plan to implement this feature? |
In conjure, all your evaluation goes to a log buffer, it contains the evaluated code, the output, along with stdout. User is free to modify anything in that buffer and it won't be stored as it's a temporary buffer.
This will be really helpful for users to tinker around with their code without being afraid that their codebase is broken.
The text was updated successfully, but these errors were encountered: