4 ms·
What about an application like vim? It should be able to access any file I pass that is explicitly opened, but not much more. That is hard to express with curre
by ximm 4y ago
What about an application like vim? It should be able to access any file I pass that is explicitly opened, but not much more. That is hard to express with current tooling.
- tinco 4y agoYou shouldn't run an application like vim in Docker. Unless your server is running Vim as some sort of service, in which case it should only open files in a volume you bound to it. Vim is exactly the kind of application you would run in a virtual machine.
- legalcorrection 4y agoYou could do it with a file picker API that opened an out-of-process file picker. I'm pretty sure this is how WinRT works. Would be tricky for a purely command line workflow, but very doable with a GUI.
- iggldiggl 4y agoEven file picker APIs are severely lacking with regards to any multi-file filetypes, where opening one file means having to subsequently access further additional files, too (but which files exactly cannot necessarily defined in advance because it depends on the contents of the initially opened file).
- tadfisher 4y agoYou are describing the Flatpak security model. Flatpak was invented for interactive applications like this.