glacambre / firenvim

Embed Neovim in Chrome, Firefox & others.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

using in note-taking App

lbgws2 opened this issue · comments

I would like to use firenvim in Notion or Evernote

So that I can write anytime, anywhere

Notion, evernote limits each line of content to a DIV

Is there a way to load all the content

Or other note taking apps can achieve this

Is there a way to read all the content

Possibly. Have you tried changing what element Firenvim should use ? I can't give you exact instructions because Notion and Evernote are proprietary applications that require an account.

Or other note taking apps can achieve this

Have you tried using a regular neovim + syncthing to synchronize your notes across devices?

@glacambre

i'm using neovim and syncthing synchronize notes now

I'm just looking for a possibility

Is there a way to read all the content

Possibly. Have you tried changing what element Firenvim should use ? I can't give you exact instructions because Notion and Evernote are proprietary applications that require an account.

Or other note taking apps can achieve this

Have you tried using a regular neovim + syncthing to synchronize your notes across devices?

Would you mind explaining this process a bit more? I'm new to Firenvim and I can not figure out where to do these changes, so I could get Firenvim running on Evernote.
Cheers!

@dwolf42 I can't unfortunately. You need to figure out what HTML element Firenvim should take over - I can't give you any pointers because I don't use evernote. It's truly a guessing game, there is no heuristic you can go by in order to figure this out.

Once you've chosen an element, you need to find a uniquely-identifying CSS selector for it (again, no way for me to tell you how to do this - selectors can change across page reloads) and tell firenvim to use it as described here.

@glacambre My bad, I'm sorry! I meant how, or where, do I have to alter Firenvim? I'm aware of your link, but I seem to be unable to figure out where to make those changes on Windows.

@dwolf42 Firenvim configuration options should go in your init.lua :)

@glacambre Thank you very much!

@glacambre Thanks to your very kind help and those of the Evernote forums user mackid1993, I was able to write this script here:

vim.g.firenvim_config = {
    localSettings ={
        ['https://www.evernote.com/'] = { 
            selector = "en-note",
            takeover = "always"
        }
    }
}

Maybe this is also of help for @lbgws2 in case they haven't figured it out on their own anyway.

Thank you for sharing your solution! :)
I think this indeed answer's @lbgws2's query, so I'll close this issue, but don't hesitate to ask more questions if you still have some.