Closed doronbehar closed 6 years ago
Fixed in c19a89d97d8d43d14a01cc8304c13cc957bb2ece
examples:
C:\Users\RAGHUR~1\AppData\Local\Temp\ghost-github.com-use-filenames-in-coherence-with-urls-instead-of-ju8i5tkep_.txt
C:\Users\RAGHUR~1\AppData\Local\Temp\ghost-www.reddit.com-til-that-one-of-the-main-engineers-behind-nasa-s-cp1y9s78r.txt
Looks good!
Wouldn't it have been easier and less dependent to just replace the /
with _
in the URLs? It would enable more customization for similar stuff like file-type detection because it could enable you to check the path after the domain of the URL and customize the autocmd
's accordingly.
There's considerations of path length.. Windows barfs if it exceeds 256 chars. Also, paths can have Unicode.. Seems safer to restrict to ascii and limit length
Seems fair enough to me, thanks a lot!
Hello,
First of all thanks for creating this wonderful plugin. It seems much more professional than falstro/ghost-text-vim and it's working with Neovim without the "6 windows bug" (1, 2).
Continuing from https://github.com/GhostText/GhostText/issues/119#issuecomment-348050358, I understand that I need to address my request to you and not the developers of GhostText.
Quoting my request at https://github.com/GhostText/GhostText/issues/119:
I read ghost.py a little bit, and I noticed that line 176 is the line responsible for creating the temporary file. I would have loved to make the PR my self although I am not very experienced with Python, It's just that I couldn't find an API documentation for GhostText that would tell how to get the URL as a variable to use in line 176. I'm sure it won't be hard for you though!
Thanks in advance.