cursorless icon indicating copy to clipboard operation
cursorless copied to clipboard

ERB support

Open tonekk opened this issue 6 months ago • 4 comments

Is there any way to enable support for .html.erb The only way that I know of is changing the file type to ERB. I wonder if there is a way, to let cursorless treat erb files like html files.

tonekk avatar Jul 13 '25 13:07 tonekk

Cursorless uses the document language. You don't need to rename the file: you just need to change language to html.

If you want to do this for all erb files there is a setting in vscode for that. Something like:

"files.associations": {
  ".html.erb": "html"
}

AndreasArvidsson avatar Jul 13 '25 13:07 AndreasArvidsson

Unfortunately, this doesn't really solve my problem since I'm using a formatter for ERB files. This means that I would have to switch back and forth between the two file types. Hence, I was wondering if I could tell Cursorless directly to apply the same rules for ERB files.

Thank you for the answer though!

tonekk avatar Jul 16 '25 16:07 tonekk

Got it. There is no functionality like that today.

AndreasArvidsson avatar Jul 16 '25 22:07 AndreasArvidsson

Related to #409

auscompgeek avatar Jul 17 '25 14:07 auscompgeek