-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Adding an introduction to sftp tab, people who switch from SecureCRT to Tabby may want to use similar features of sftp tab. #8719
Conversation
Heya I've just looked at your plugin code - good idea! However I would avoid placing profile templates into defaults since this will lead to confusing behaviour when a user already has existing profiles. A much cleaned solution would be to implement a ProfileProvider and provide your three templates (or automatically select one correct template depending on the platform!) as built-in profiles via |
Thank you for your patient guidance. I will try to modify the plugin code according to your guidance。 |
@Eugeny The profile for the three platforms I provide here is a template. If it is provided as a builtin profile in the form of a ProfileProvider, users also need to copy and create a new profile to modify the sftp path. Once copied, the sftp tab plugin cannot know the profile name and cannot use this profile when creating sftp tab. I see an isTemplate attribute in the profile. If this is set be true, the templates of the three platforms will not appear in the user's selection of "Profiles&Connections". However, the settings can be edited according to the local profile. This is currently the best implementation within my capabilities, and it is the simplest way for the sftp tab plugin to maintain, keep the minimum coupling between sftp-tab and tabby. As a concept, functions of sftp-tab plugin is expected to be implemented by you by default, so that it can be used across the entire platform. |
I think you're just a little confused by |
@Eugeny Actually, ssh2sftp_XXX_template is intended to be used as a template, the main goal is not allow user to create SFTP profiles, the initial idea was let sftp-tab plugin uses this template to create sftp connections of ssh automatic. The ssh2sftp_XXX_template are provided in the form of local profile template, just want to borrow the interface modification function of the localProfile in the tabby-local to let users modify the sftp path and save it in the config file. Is this possible? Do I still need to develop my own pug to make interface modifications sftp path? |
@Eugeny From the perspective of plugin downloads, people still prefer to use the functionality of sftp tab |
LGTM but please make sure you're not making other unrelated changes to the READMEs |
Last time I used VSCode, it automatically modify the error of READES, I have used vim to redo the warranty and modify the sftp-tab introduction. |
Adding an introduction to sftp tab, people who switch from SecureCRT to Tabby may want to use similar features of sftp tab.