pocco81 / high-str.nvim

🦎 A NeoVim plugin for highlighting visual selections like in a normal document editor!
GNU General Public License v3.0
306 stars 2 forks source link

Would it be possible to save Highlights? #1

Closed danielnehrig closed 3 years ago

danielnehrig commented 3 years ago

Title. on adding highlight maybe adding some entries in a file and the file is read on plugin load to get a save state of markers

pocco81 commented 3 years ago

Yes it's possible, but not at the moment. I was actually discussing it with a guy under my reddit post. For now, I'll go and it to the TO-DO list and leave this issue open...

siduck commented 3 years ago

I need this feature too! I want to make a file having some mappings written in it and then viewing that file in a floating window, so basically a mappings cheatsheet thingy. something like this image

it would be great to save the highlights too so I could replicate this cheatsheet thing without using whichkey.nvim

siduck commented 3 years ago

@Pocco81 Let me know when this gets implemented.

pocco81 commented 3 years ago

@siduck76 of course, I will. If you want you could also subscribe to the issue.

siduck commented 3 years ago

@siduck76 of course, I will. If you want you could also subscribe to the issue.

When is this feature gonna be added :(

pocco81 commented 3 years ago

Oops! Sorry for taking so long to implement this! Here it is:

https://user-images.githubusercontent.com/58336662/127716570-9c11cbb8-505d-4a23-af8c-fc463f2ee2df.mp4

I'll merge it with main as soon as possible.

pocco81 commented 3 years ago

You're welcome :)

danielnehrig commented 2 years ago

if i do HSExport following errors occurs

...Str.nvim/lua/high-str/tools/tool-exportimport/export.lua:96: bad argument #1 to 'next' (table expected, got string)
stack traceback:
^I[C]: in function 'next'
^I...Str.nvim/lua/high-str/tools/tool-exportimport/export.lua:96: in function 'export'
^I.../site/pack/packer/opt/HighStr.nvim/lua/high-str/main.lua:19: in function <.../site/pack/packer/opt/HighStr.nvim/lua/high-str/main.lua:7> function: builtin#18 ...Str.nvim/lua/high-str/tool
s/tool-exportimport/export.lua:96: bad argument #1 to 'next' (table expected, got string)
stack traceback:
^I[C]: in function 'next'
^I...Str.nvim/lua/high-str/tools/tool-exportimport/export.lua:96: in function 'export'
^I.../site/pack/packer/opt/HighStr.nvim/lua/high-str/main.lua:19: in function <.../site/pack/packer/opt/HighStr.nvim/lua/high-str/main.lua:7> function: builtin#18 ...Str.nvim/lua/high-str/tool
s/tool-exportimport/export.lua:96: bad argument #1 to 'next' (table expected, got string)
stack traceback:
^I[C]: in function 'next'
^I...Str.nvim/lua/high-str/tools/tool-exportimport/export.lua:96: in function 'export'
^I.../site/pack/packer/opt/HighStr.nvim/lua/high-str/main.lua:19: in function <.../site/pack/packer/opt/HighStr.nvim/lua/high-str/main.lua:7>

https://user-images.githubusercontent.com/4050749/147414158-a748f67a-6f16-45a5-aadd-6aa6a60b5165.mp4

pocco81 commented 2 years ago

Github says that I can't play the video because it's corrupt:

image

Could you re-upload it?

danielnehrig commented 2 years ago

https://user-images.githubusercontent.com/4050749/147572306-32a15ffb-339b-4bc3-829a-769418ea3484.mp4

danielnehrig commented 2 years ago

looks like was a issue with the encoding which was supported by my browser but probably not yours

smsossah commented 7 months ago

Hey @danielnehrig I had this working just fine and then started getting the error you received. It's a bit late so you may have already figured out a way around - I'm using packer so I managed to fix it by manually removing the plugin in the .local/share/nvim/site/pack/packer/start/start/HighStr (Removing/uninstalling via the packer plugin manager didn't work) and deleting my packer_compiled file. Then I attempted to reinstall which worked. But this appears to be a persistent issue..

danielnehrig commented 7 months ago

Hey @danielnehrig I had this working just fine and then started getting the error you received. It's a bit late so you may have already figured out a way around - I'm using packer so I managed to fix it by manually removing the plugin in the .local/share/nvim/site/pack/packer/start/start/HighStr (Removing/uninstalling via the packer plugin manager didn't work) and deleting my packer_compiled file. Then I attempted to reinstall which worked. But this appears to be a persistent issue..

i decided not to care anymore and removed the plugin from my plugin list sorry i couldn't help you