When editing a shell script I don't see an "Apply" option, only "execute"

Hi,
When I am editing a bash shell script, I would like to use the Apply button to make code changes however the UI only shows me “Copy” or “Execute” - how do I tell it to apply the code changes?

Hey @baronne Thank you reporting this issue. Cody assumes that this is a shell command to execute because shell scripts and shell commands have the same language signature in the markdown.

Sorry for the inconvenience.

ok, understood, but is there a way around this ?

You can try to nudge the model not to append the ‘bash’ or ‘shell’ language meta after the triple backticks in a code block. But might be confusing for Cody see the .sh language extension on that file. Maybe renaming to another language extension and renounce the highlighting.

thanks, not ideal. Cursor handles it just fine, perhaps something you guys can look into resolving?

1 Like