Skip to content

Commit

Permalink
Merge pull request #7 from Ho-Wan/develop
Browse files Browse the repository at this point in the history
v0.0.2
  • Loading branch information
ho-wan authored Jan 19, 2019
2 parents 551d731 + cbb3300 commit 019b226
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 16 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# Change Log

## 0.0.2 (19 Jan 2019)
- Fix for Linux Mint - "command not found" error

## 0.0.1 (06 Jan 2019)
- Initial release
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
# VS Code - Trello Viewer
[![](https://vsmarketplacebadge.apphb.com/version-short/ho-wan.vscode-trello-viewer.svg)](https://marketplace.visualstudio.com/items?itemName=Ho-Wan.vscode-trello-viewer)
<a href="https://marketplace.visualstudio.com/items?itemName=Ho-Wan.vscode-trello-viewer" style="text-decoration : none" title="Go to VS marketplace">
<img src="https://vsmarketplacebadge.apphb.com/version-short/ho-wan.vscode-trello-viewer.svg">
<img src="https://vsmarketplacebadge.apphb.com/installs/ho-wan.vscode-trello-viewer.svg">
</a>

Welcome to Trello Viewer for VS Code! This extension provides the following features:

- Browse Trello boards, lists and cards.
- View selected card using the markdown previewer and open to the side.
- See formatted checklists and cover image for the card.
- Assign a favourite list to easily access cards.
- Saves credentials to use between sessions.
- Saves credentials to use between sessions.>>>
- Shows only starred boards as default.

## Authenication
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "vscode-trello-viewer",
"displayName": "Trello Viewer",
"description": "View Trello cards in VS Code, browse user's boards and lists.",
"version": "0.0.1",
"version": "0.0.2",
"publisher": "Ho-Wan",
"author": {
"name": "Ho-Wan To",
Expand Down
23 changes: 10 additions & 13 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,17 @@ export function activate(context: vscode.ExtensionContext) {
vscode.window.registerTreeDataProvider("trelloTreeView", trelloTreeView);
vscode.window.registerTreeDataProvider("trelloViewFavoriteList", trelloViewFavoriteList);

const commandsToRegister: [string, Function][] = [
["trelloViewer.refresh", () => trelloTreeView.refresh()],
["trelloViewer.refreshFavoriteList", () => trelloViewFavoriteList.refresh()],
["trelloViewer.authenticate", () => trello.authenticate()],
["trelloViewer.setCredentials", () => trello.setCredentials()],
["trelloViewer.resetCredentials", () => trello.resetCredentials()],
["trelloViewer.showTrelloInfo", () => trello.showTrelloInfo()],
["trelloViewer.resetFavoriteList", () => trello.resetFavoriteList()],
["trelloViewer.setFavoriteListByClick", (trelloItem: TrelloItem) => trello.setFavoriteListByClick(trelloItem)],
["trelloViewer.showCard", (card: TrelloCard) => trello.showCard(card)],
];
commandsToRegister.map((command: [string, any]) =>
context.subscriptions.push(vscode.commands.registerCommand(command[0], command[1]))
vscode.commands.registerCommand("trelloViewer.refresh", () => trelloTreeView.refresh());
vscode.commands.registerCommand("trelloViewer.refreshFavoriteList", () => trelloViewFavoriteList.refresh());
vscode.commands.registerCommand("trelloViewer.authenticate", () => trello.authenticate());
vscode.commands.registerCommand("trelloViewer.setCredentials", () => trello.setCredentials());
vscode.commands.registerCommand("trelloViewer.resetCredentials", () => trello.resetCredentials());
vscode.commands.registerCommand("trelloViewer.showTrelloInfo", () => trello.showTrelloInfo());
vscode.commands.registerCommand("trelloViewer.resetFavoriteList", () => trello.resetFavoriteList());
vscode.commands.registerCommand("trelloViewer.setFavoriteListByClick", (trelloItem: TrelloItem) =>
trello.setFavoriteListByClick(trelloItem)
);
vscode.commands.registerCommand("trelloViewer.showCard", (card: TrelloCard) => trello.showCard(card));
}

export function deactivate() {
Expand Down

0 comments on commit 019b226

Please sign in to comment.