fman icon indicating copy to clipboard operation
fman copied to clipboard

fman should (be able to) auto-update plugins

Open mherrmann opened this issue 8 years ago • 11 comments

This was also pointed out by @raguay. Somebody (was it you @kek91?) asked to be able to disable this functionality.

mherrmann avatar Apr 18 '17 10:04 mherrmann

Yeah, or what I really want is to be asked first. When opening fman I'd like it to show me a dialog prompt to ask if I would like to update the plugins (only show if any plugins are out-dated of course).

If I'm the only who is interested in this optional update feature, then I'd appreciate a variable in Core settings.json to disable it manually :)

Sorry if I'm being a PITA :) But if you support my request, I would also like an option to update single plugins. For example, GoTo -> Update plugin -> select plugin from list.

Otherwise it's a bit tedious to uninstall and then reinstall the plugin

I guess it goes without saying this shouldn't be top priority, it's rather a quality of life improvement for some of us I suppose

kek91 avatar Apr 18 '17 12:04 kek91

Got it :-). Just one thing, fman will never show a prompt about updates because I personally find such popups too obtrusive. The config option + "Update plugin" command will let you get the same effect.

mherrmann avatar Apr 18 '17 12:04 mherrmann

Yeah that wasn't well thought out. Definitely avoid pop-ups :)

At best, you could show a notification on the status bar. When opening fman it would look like v0.4.1 Ready. X plugins are out-dated not sure if even that's needed though.

kek91 avatar Apr 18 '17 12:04 kek91

The way I'd like to do it is for fman to update plugins by default. When it does, it should say Plugin X was updated. When you disable this, I think fman will simply not do anything. You can then for instance manually use the "Update plugins" command to update whenever you're ready.

mherrmann avatar Apr 18 '17 16:04 mherrmann

Why not do it like npm: have a file in the User directory that is Plugins.json and have each plugin with a version number and a auto update flag. That gives both flexibility and control to the user. When a new plugin is installed, then add the version number (or a version date which ever works easiier) to the file with the flag set to auto update. Then the savey user can flip this flag to not update that plugin.

raguay avatar Apr 19 '17 02:04 raguay

That sounds like a great solution! I'm pretty certain I'll do it exactly like that. Thanks Richard.

mherrmann avatar Apr 19 '17 04:04 mherrmann

Such a file would also make it easy to move your configuration to another system. Just copy the Plugins.json file mentioned above to the new setup and fman will install those versions of the plugins. But, that means the plugins would need older versions.

raguay avatar Apr 19 '17 06:04 raguay

Yes, that would be useful.

What do you mean the plugins would need older versions? Do you mean that it should be possible to also install an old version of a plugin, even if a newer one already exists?

mherrmann avatar Apr 19 '17 06:04 mherrmann

If I understand Richard correctly then yes In Cargo and many other dependancy/package managers you can choose which version to install. Don't have too much experience with npm but I guess the version number stated in Plugins.json is the version that will be installed by fman (unless it has enabled auto-updating (which is default), then it will take the latest version).

kek91 avatar Apr 19 '17 07:04 kek91

Plugins.json could look as follows:

{
    "kek91/StatusBarExtended": {
        "version": ">=0.1.1"
    }
}

This would auto-update. The following would not and keep it at version 0.1.1:

{
    "kek91/StatusBarExtended": {
        "version": "0.1.1"
    }
}

mherrmann avatar Apr 19 '17 08:04 mherrmann

I would also like an option to update single plugins. For example, GoTo -> Update plugin -> select plugin from list.

Or in the same way as Sublime Text does (well, PackageControl plugin):

Upgrade Package -> list of outdated plugins Upgrade/Override All Packages

pravic avatar Nov 21 '18 12:11 pravic