Adds a warning when opening an SSHFS remote file lead to local edition#56
Adds a warning when opening an SSHFS remote file lead to local edition#56HorlogeSkynet merged 2 commits intomasterfrom
Conversation
|
There's an oddity if preview_on_click is true (the default). If I do just click once on a file so that it opens as a preview:
However, in cases where I'm really just intending to open a file, I never just single click on it. Instead I immediately double-click on it. If I double-click:
When I get into that latter state, I have to hunt up the dialog window and bring it to the front (after recognizing what the problem actually is), to click either Cancel or Yes there. A little confusing/nonideal, although I'm not sure how to improve it. |
|
Many thanks for your feedback Joel 🙏 So I tried playing with I guess the behavior also depends on the Window Manager (e.g. in my case, when ST dialog pops up, it always stays above the other ST windows, so I haven't to hunt it). I also tried to leverage As Thanks ! Bye 👋 |
|
Hello @neogeographica, any recent thoughts on the matter before we actually merge this ? Thanks 🙏 |
|
Since it has some potentially bad/confusing behaviors with the default setting for preview_on_click, personally I guess I would lean toward not doing it. |
5d59a23 to
561627c
Compare
|
Hello @neogeographica, and thanks for your inputs on this. Could you tell us what do you think about this approach when you have a chance to give it a try ? EDIT : |
561627c to
c151dba
Compare
|
Looks like a better approach yeah. Ideally it could be possible to dismiss the warning for the duration of a session? In case you're intentionally working with a lot of such files. But that could just be bikeshedding at this point. |
c151dba to
9481f2a
Compare
Thanks for your feedback 🙏
I'd vote against that at this time :
We'll merge this soon, and publish a new SSHubl release. Thanks, bye 👋 |
@neogeographica so this is a pretty naive approach dealing with SSHFS remote files resolving locally.
A warning dialog is displayed, and the file will be closed if one clicks on the
Cancelbutton. This can be considered as a "guardrail" for users running SSHubl withfollow_symlinksdisabled and a remote fs containing absolute/relative symlinks leading to outside of remote mounted folder.