mlverse / chattr

https://mlverse.github.io/chattr/
Other
197 stars 19 forks source link

How can I use the highlighting interface? #105

Open pawelqs opened 6 months ago

pawelqs commented 6 months ago

Hi!

Thanks for a great package! I am experimenting with it now, and I noticed the section "Other interfaces", which says that chattr can send as a promt the highlighted fragments of the script. What do you mean by "highlighting"? I tried to select the code, and run the Sent Prompt via a shortcut, but the error says that

Error in `ide_build_prompt()` at chattr-main/R/chattr.R:27:3:
! No 'prompt' provided, and no prompt cannot be infered from the current document
Run `rlang::last_trace()` to see where the error occurred.

How can I use this option?