da-h / AirLatex.vim

Overleaf / ShareLatex in Vim
MIT License
79 stars 8 forks source link

Cookie instructions are unclear #38

Open NickHu opened 3 years ago

NickHu commented 3 years ago

It took me a while to realise that the input when you set username to 'cookies' is expecting:

overleaf_session2=s%REDACTED (url encoded)

Perhaps the README could be updated with better instructions

llinfeng commented 2 years ago

@NickHu Thanks for your pointer. It took me awhile to figure out how to make use of your clarification. The following one-liner in init.vim file got me logged in properly.

let g:AirLatexUsername="cookies:overleaf_session2=<long-long-string>"

And, where to get the cookie?

From Chrome, one can fetch the <long-long-string> as the following: image

In Firefox, the cookies is under the Storage tab in the "Web Developer Tools", which can be summoned by pressing the F12 key. image