firenvim icon indicating copy to clipboard operation
firenvim copied to clipboard

FireNvim and Github Gist (CodeMirror) compatibility

Open MostHated opened this issue 1 year ago • 1 comments

Hey there. I am having an issue with gist.github.com and it's selectors for the editor and making it fire.

There is a textarea object on the page, but upon loading the page, it becomes disabled via 'display: none' and then a CodeMirror editor takes it's place, but I can't seem to get FireNvim to trigger on it.

The actual input seems to be line by line, so I am no quite sure how that would work with FireNvim, or if it would?

You can see in the image below where the textarea is, and the CodeMirror that takes it's place. If I right click and inspect element of the cursor, it takes you down to lower 'CodeMirror-Line'. The question is, what would the selector end up needing to be for this to work properly, or would it end up needing to be that the CodeMirror is disabled, and the textarea re-enabled?

Thanks, -MH

MostHated avatar Mar 04 '23 21:03 MostHated

Sorry, I got it figured out, actually. Incase anyone else is looking for a quickway to enable this, I created a gist of it here: https://gist.github.com/instance-id/a23f1e001bbc0c8744c9cf7627db805d

MostHated avatar Mar 05 '23 00:03 MostHated