diff --git a/CHANGELOG.md b/CHANGELOG.md index 7fdcd00..5a041aa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/README.md b/README.md index 571339f..72555ab 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/package.json b/package.json index 1651274..f6e7ca1 100644 --- a/package.json +++ b/package.json @@ -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" diff --git a/src/window.js b/src/window.js index f571272..79382ef 100644 --- a/src/window.js +++ b/src/window.js @@ -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; } } diff --git a/todo.md b/todo.md index 67ba865..5e0e198 100644 --- a/todo.md +++ b/todo.md @@ -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')?