-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Would you like to add ssh function to edit remote file? Thanks! #20
Comments
I feel like remote file editing is out of scope for qtextpad, which is designed to be simple and lightweight... But I'll leave this open for discussion |
@zhangfq-chemistry
This allows accessing files over SFTP by entering the following syntax in the file dialog path:
Below is the implementation of the downloadFile, handleFileContent, and decodeContent functions in qtextpadwindow.cpp.
Of course, this solution still requires a lot of work, but as a basic starting point, it’s fine. Alternatively, it might be better to implement a Python server for transferring file content using QWebSocket and this approach will be independent of the operating system because the current solution is unlikely to work on Windows, where support for SFTP is not available in getOpenFileUrls. Using a Python WebSocket server for transferring file content can bypass such platform-specific limitations and ensure cross-platform compatibility. |
No description provided.
The text was updated successfully, but these errors were encountered: