logseq-plugin-lock icon indicating copy to clipboard operation
logseq-plugin-lock copied to clipboard

Use case for viewing, not just copy to clipboard

Open astubbs opened this issue 2 years ago • 3 comments

What about the situation where you have "private" notes, as opposed to passwords? In which case, you want the original text to display. Maybe until a timeout, or until the window losses focus? I get that the plugin seems to have been developed for passwords - but private notes is also I think a big use case for something like this. Thoughts?

Seems from this issue, you want to keep the plugin use case quite narrow, fair enough. Maybe rename it to plugin-passwords-lock?

https://github.com/vipzhicheng/logseq-plugin-lock/issues/3#issuecomment-1048405529

astubbs avatar Jan 12 '23 11:01 astubbs

@vipzhicheng +1 on this, I would also enjoy a version of the plugin which features a viewing experience, especially if it was your vim-editor ;) I think this would combine greatly

lukas-mertens avatar Feb 13 '23 20:02 lukas-mertens

It's hard to render block in a plugin as Logseq did, so if you want original text, it can only show in a text area in pure text. Is that OK?

vipzhicheng avatar Feb 15 '23 06:02 vipzhicheng

I think that would already be sufficient for most usecases. I think it would be great if you could just show it in the vim-editor from your other plugin, it includes syntax highlighting for markdown for example so that would be ideal for me. Maybe you could for example do it, that when you press the same keyboard combination (I think it was cmd+shift+e) it just shows the password-prompt first and the opens the editor. For non-vim-users, if they don't have your vim-plugin installed, just show it in the same editor, but without vim keybindings and a "close"-button or something like that, which saves changes as well. I don't know if it is possible to cross-communicate between plugins like that but I would actually put a bounty of at least 20$ on this feature, if you would implement it using the vim-editor

lukas-mertens avatar Feb 15 '23 09:02 lukas-mertens