Skip to content

Commit

Permalink
v0.16.0 For edit action, move cursor to beginning
Browse files Browse the repository at this point in the history
of snippet
  • Loading branch information
robole committed Apr 23, 2021
1 parent 0581786 commit 6bd9d44
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project are documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.16.0] - 2021-04-22

### Changed

- For edit action, move the cursor to the specified position, as well as reveal the range.

## [0.15.1] - 2021-04-22

### Changed
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ To gather and render approx 6000 snippets sourced from 18 different files, it ta
1. From the Command-line: Run the command `code --install-extension robole.snippets-ranger`.
1. From the [VS Marketplace](https://marketplace.visualstudio.com/items?itemName=robole.snippets-ranger): Click the _Install_ button.

## Learn more about Snippets
## Learn more about snippets

You can read my comprehensive guide on FreeCodeCamp: [Visual Studio Code Snippets – the Definitive VS Code Snippet Guide for Beginners](https://www.freecodecamp.org/news/definitive-guide-to-snippets-visual-studio-code/).
You can read my comprehensive guide on Snippets on FreeCodeCamp: [Visual Studio Code Snippets – the Definitive VS Code Snippet Guide for Beginners](https://www.freecodecamp.org/news/definitive-guide-to-snippets-visual-studio-code/).

## Contribute

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
},
"description": "View all your snippets in one purty place. Yee-haw!",
"icon": "img/logo.png",
"version": "0.15.1",
"version": "0.16.0",
"engines": {
"vscode": "^1.4.0",
"node": ">=12.0.0"
Expand Down
1 change: 1 addition & 0 deletions src/window.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ class Window {
let position = textEditor.document.positionAt(index);
let range = new vscode.Range(position, position);
textEditor.revealRange(range, vscode.TextEditorRevealType.AtTop);
textEditor.selection = new vscode.Selection(position, position);
return textEditor;
}
}
Expand Down
1 change: 1 addition & 0 deletions todo.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# To Do

1. Delete action?
1. Filter?
1. Search?
1. Show the shortcuts assigned to any snippets (via command 'insert snippet')?

0 comments on commit 6bd9d44

Please sign in to comment.