add copy remote url and id commands

Freax13
Aug 5, 2021, 12:07 PM
YPGOGP7ZW7BROOBBWPH7IY3LFQACDVJN5LPSUPLTWVAX6LE6IPAAC

Dependencies

  • [2] MO3G3S2V Cleanup commands available in the command palette
  • [3] XVYOJLZ4 add Delete Remote command
  • [*] ILH3GIVT Add command centre and refresh/init commands
  • [*] 6H4B4UJQ Add commands to open repo and global pijul configuration files
  • [*] NCBEWRYE Initialize Repository
  • [*] 7DXA53YQ Add command to delete channel
  • [*] 5ZDRHVXD Add command to fork a new channel
  • [*] HVVRC2GN Add command to apply all outstanding changes from one channel to another

Change contents

  • edit in src/commands.ts at line 377
    [3.1381]
    [3.1381]
    }
    /**
    * Copy the url of a remote to the clipboard
    * @param remote The remote to copy the url of
    */
    @command('pijul.copyRemoteUrl')
    async copyRemoteUrl (remote: PijulRemote): Promise<void> {
    env.clipboard.writeText(remote.url);
  • edit in src/commands.ts at line 389
    [3.1392]
    [6.258]
    * Copy the id of a remote to the clipboard
    * @param remote The remote to copy the id of
    */
    @command('pijul.copyRemoteId')
    async copyRemoteId (remote: PijulRemote): Promise<void> {
    env.clipboard.writeText(remote.remoteid);
    }
    /**
  • edit in package.json at line 143
    [8.1008]
    [9.1127]
    "command": "pijul.copyRemoteUrl",
    "title": "Copy Remote Url",
    "category": "Pijul"
    },
    {
    "command": "pijul.copyRemoteId",
    "title": "Copy Remote Id",
    "category": "Pijul"
    },
    {
  • edit in package.json at line 288
    [2.2014]
    [2.2014]
    "when": "false"
    },
    {
    "command": "pijul.copyRemoteUrl",
  • edit in package.json at line 295
    [2.2048]
    [2.2048]
    "command": "pijul.copyRemoteId",
    "when": "false"
    },
    {
  • edit in package.json at line 506
    [10.1356]
    [3.1521]
    },
    {
    "command": "pijul.deleteRemote",
    "when": "view == pijul.views.remotes && viewItem == pijulRemote",
    "group": "changeFirst"
    },
    {
    "command": "pijul.copyRemoteUrl",
    "when": "view == pijul.views.remotes && viewItem == pijulRemote",
    "group": "changeSecond"
    },
    {
    "command": "pijul.copyRemoteId",
    "when": "view == pijul.views.remotes && viewItem == pijulRemote",
    "group": "changeSecond"