Skip to content

Subcommand alias feature like 'git config alias.foo bar' #232

Description

@AvianY

I think the volt commands would be more consistent with following ideas:

Instead of $volt get -u for updating, there could be a separate command like $volt update

The $volt get command as of now, downloads and enables the plugins. So basically it does the same as the command $volt enable, but it also downloads the plugin if it doesn't exist. Instead of that, the $volt get command could just download the plugin without enabling it. But if the user wants to enable it at the same time, he could just write something like $volt get -e <repo> (-e for enable).

what do you think?

Activity

  1. tyru commented on Apr 8, 2018

    @tyru
    Member

    Instead of $volt get -u for updating, there could be a separate command like $volt update

    volt get -u guarantees given plugins exist and are updated to the latest with no error.
    It installs if it's not installed, or updates to the latest if it's installed.

    Isn't it enough to add command alias feature like git config alias.update get -u?

    The $volt get command as of now, downloads and enables the plugins.

    hmm, if I try to add enable/disable control option, I'll add -no-enable option (don't add specified plugins to current profile).
    Because profile feature is optional, user can use it but also can choose not to use it.
    If volt get foo/bar does not enable (does not add to current profile) given plugins by default, the user is confused if he/she does not know profile feature.

  2. AvianY commented on Apr 8, 2018

    @AvianY
    ContributorAuthor
  3. changed the title [-]More consistent volt commands?[/-] [+]Subcommand alias feature like 'git config alias.foo bar'[/+] on Apr 8, 2018
  4. tyru commented on Apr 8, 2018

    @tyru
    Member

    Okay, I edited the title :)

  5. added a commit that references this issue on Apr 9, 2018
    ed88689
  6. tyru commented on Apr 9, 2018

    @tyru
    Member

    I have implemented this feature in devel branch.
    You can write the following to config.toml:

    [alias]
    update = ["get", "-u"]

    And

    $ volt update foo/bar.vim
    
  7. added a commit that references this issue on Apr 9, 2018
    a777640
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions