Skip to content

Commit

Permalink
Change default gist type
Browse files Browse the repository at this point in the history
  • Loading branch information
lostintangent committed Nov 19, 2023
1 parent 9217a6a commit 9598693
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 11 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## v0.6.1 (11/19/2023)

- Changed the default gist type to secret, by making the `+` icon in the tree create a new secret gist (as opposed to a public gist)
- Fixed an error when refreshing the gists tree

## v0.6.0 (11/19/2023)

- Added the `New Gist` context menu to tag groups in the tree, which allows quickly creating a gist with the selected tag
Expand Down
18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -318,15 +318,15 @@
},
{
"command": "gistpad.newPublicGist",
"title": "New Gist",
"title": "New Public Gist",
"category": "GistPad",
"icon": "$(add)"
"icon": "$(gist)"
},
{
"command": "gistpad.newSecretGist",
"title": "New Secret Gist",
"category": "GistPad",
"icon": "$(gist-secret)"
"icon": "$(add)"
},
{
"command": "gistpad.newGistFromTag",
Expand Down Expand Up @@ -885,12 +885,12 @@
],
"view/title": [
{
"command": "gistpad.newPublicGist",
"command": "gistpad.newSecretGist",
"when": "view =~ /^gistpad.gists(.explorer)?$/ && gistpad:state == SignedIn",
"group": "navigation@1"
},
{
"command": "gistpad.newSecretGist",
"command": "gistpad.newPublicGist",
"when": "view =~ /^gistpad.gists(.explorer)?$/ && gistpad:state == SignedIn",
"group": "navigation@2"
},
Expand Down Expand Up @@ -942,22 +942,22 @@
],
"view/item/context": [
{
"command": "gistpad.newPublicGist",
"command": "gistpad.newSecretGist",
"when": "viewItem == gists",
"group": "inline@1"
},
{
"command": "gistpad.newSecretGist",
"command": "gistpad.newPublicGist",
"when": "viewItem == gists",
"group": "inline@2"
},
{
"command": "gistpad.newPublicGist",
"command": "gistpad.newSecretGist",
"when": "viewItem == gists",
"group": "new@1"
},
{
"command": "gistpad.newSecretGist",
"command": "gistpad.newPublicGist",
"when": "viewItem == gists",
"group": "new@2"
},
Expand Down
4 changes: 2 additions & 2 deletions src/store/storage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ export async function initializeStorage(context: ExtensionContext) {
followedUsersStorage = {
get followedUsers() {
let followedUsers = context.globalState.get(FOLLOW_KEY, []).sort();
output.appendLine(
output?.appendLine(
`Getting followed users from global state = ${followedUsers}`,
output.messageType.Info
);
return followedUsers;
},
set followedUsers(followedUsers: string[]) {
output.appendLine(
output?.appendLine(
`Setting followed users to ${followedUsers}`,
output.messageType.Info
);
Expand Down

0 comments on commit 9598693

Please sign in to comment.