From 8aa33a15004ac38f3a6560f5a23605b176e47083 Mon Sep 17 00:00:00 2001 From: Alessandro Fragnani Date: Tue, 28 Nov 2023 22:51:27 -0300 Subject: [PATCH 1/3] Adds revealLocation support --- package.json | 13 +++++++++++++ package.nls.json | 3 +++ vscode-numbered-bookmarks-core | 2 +- 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 126f455..c710479 100644 --- a/package.json +++ b/package.json @@ -232,6 +232,19 @@ "type": "string", "default": "#000", "description": "%numberedBookmarks.configuration.gutterIconNumberColor.description%" + }, + "numberedBookmarks.revealLocation": { + "type": "string", + "default": "center", + "description": "%numberedBookmarks.configuration.revealLocation.description%", + "enum": [ + "top", + "center" + ], + "enumDescriptions": [ + "%numberedBookmarks.configuration.revealLocation.enumDescriptions.top%", + "%numberedBookmarks.configuration.revealLocation.enumDescriptions.center%" + ] } } }, diff --git a/package.nls.json b/package.nls.json index 8a9f1a2..55b53ee 100644 --- a/package.nls.json +++ b/package.nls.json @@ -35,6 +35,9 @@ "numberedBookmarks.configuration.navigateThroughAllFiles.description": "Allow navigation look for bookmarks in all files in the project, instead of only the current", "numberedBookmarks.configuration.gutterIconFillColor.description": "Specify the color to use on gutter icon (fill color)", "numberedBookmarks.configuration.gutterIconNumberColor.description": "Specify the color to use on gutter icon (number color)", + "numberedBookmarks.configuration.revealLocation.description": "Specifies the location where the bookmarked line will be revealed", + "numberedBookmarks.configuration.revealLocation.enumDescriptions.top": "Reveals the bookmarked line at the top of the editor", + "numberedBookmarks.configuration.revealLocation.enumDescriptions.center": "Reveals the bookmarked line in the center of the editor", "numberedBookmarks.colors.lineBackground.description": "Background color for the bookmarked line", "numberedBookmarks.colors.lineBorder.description": "Background color for the border around the bookmarked line", "numberedBookmarks.colors.overviewRuler.description": "Overview ruler marker color for bookmarks", diff --git a/vscode-numbered-bookmarks-core b/vscode-numbered-bookmarks-core index 87b99d9..0a9bcb4 160000 --- a/vscode-numbered-bookmarks-core +++ b/vscode-numbered-bookmarks-core @@ -1 +1 @@ -Subproject commit 87b99d9ef6959693ca3c37c19ed87cba55b9e1f2 +Subproject commit 0a9bcb45daf6841e40db893ca8623d6f2b3217d9 From c34ad6d65e2159c8cd784e183a912ff94a874907 Mon Sep 17 00:00:00 2001 From: Alessandro Fragnani Date: Tue, 28 Nov 2023 22:54:17 -0300 Subject: [PATCH 2/3] Add translations --- package.nls.pt-br.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/package.nls.pt-br.json b/package.nls.pt-br.json index 05bbc6c..906b9fe 100644 --- a/package.nls.pt-br.json +++ b/package.nls.pt-br.json @@ -35,6 +35,9 @@ "numberedBookmarks.configuration.navigateThroughAllFiles.description": "Permite que a navegação apresente Bookmarks em todos os arquivos do projeto, ao invés de apenas no arquivo corrente", "numberedBookmarks.configuration.gutterIconFillColor.description": "Cor de fundo do ícone de Bookmark", "numberedBookmarks.configuration.gutterIconNumberColor.description": "Cor do número no ícone de Bookmark", + "numberedBookmarks.configuration.revealLocation.description": "Especifica o local onde a linha com bookmark será exibida", + "numberedBookmarks.configuration.revealLocation.enumDescriptions.top": "Exibe a linha com bookmark no topo do editor", + "numberedBookmarks.configuration.revealLocation.enumDescriptions.center": "Exibe a linha com bookmark no centro do editor", "numberedBookmarks.colors.lineBackground.description": "Cor de fundo para linha com Bookmark", "numberedBookmarks.colors.lineBorder.description": "Cor de fundo da borda ao redor da linha com Bookmark", "numberedBookmarks.colors.overviewRuler.description": "Cor do marcador de régua com Bookmarks" From c1b1304c5c373ec7a3f94c959067cb87d812c0aa Mon Sep 17 00:00:00 2001 From: Alessandro Fragnani Date: Tue, 28 Nov 2023 22:58:59 -0300 Subject: [PATCH 3/3] Update documentation --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 0c27234..aad893a 100644 --- a/README.md +++ b/README.md @@ -147,6 +147,15 @@ Value | Explanation "numberedBookmarks.gutterIconNumberColor" ``` +* Choose the location where the bookmarked line will be revealed _(`center` by default)_ + + * `top`: Reveals the bookmarked line at the top of the editor + * `center`: Reveals the bookmarked line in the center of the editor + +```json + "numberedBookmarks.revealPosition": "center" +``` + ## Available Colors * Choose the background color to use on a bookmarked line