Skip to content

Commit 547d384

Browse files
open data file implementation, pic and docs update
1 parent e2f43cf commit 547d384

4 files changed

Lines changed: 8 additions & 3 deletions

File tree

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,15 @@ Data Preview 🈸 example using `dark` UI theme with `d3fc` Charts 📊 Data Vie
7171

7272
1. Run `View -> Command Palette...>Data: Preview Data 🈸` command or `Ctrl+Shift+D` in an open
7373
`.json` `.config` `.env` `.properties` `.ini` `.yml` or `.csv/.tsv` text data file document to launch Data Preview panel.
74-
2. `File -> Save` (`Ctrl+S`) your text data file for immediate updates in an open Data Preview panel.
74+
2. `File -> Save` (`Ctrl+S`) your text data file for immediate updates in an open Data Preview 🈸 panel.
7575
3. Right-click on a Binary `.xlsx/.xlsb`, `.arrow` or `.avro` data file in VSCode File Explorer to launch Data Preview panel.
7676
4. Use exposed `explorer/context`, `editor/title` or `editor/title/context` Preview Data 🈸 or Preview Data on Side context menu options to preview your data files.
7777
5. Click on the Data View Filename toolbar link to Load saved Data View Grid || Chart 📊 `.config`.
7878
6. Click on the Data View 🈸 icon to Launch new Data Preview Panel for new view config changes.
79+
7. Use Open Data File 📤 option from Data View toolbar to launch new Data Preview 🈸.
80+
81+
![Data Preview Open Data File](https://github.com/RandomFractals/vscode-data-preview/blob/master/images/vscode-data-preview-open-file.png?raw=true
82+
"Data Preview Open Data File")
7983

8084
## Data Grid/Filter/Columns UX Tips
8185

@@ -145,6 +149,7 @@ for more info.
145149

146150
**See** [Data Manager API](https://github.com/RandomFractals/vscode-data-preview/blob/master/src/data.manager.ts) & [src/data.providers](https://github.com/RandomFractals/vscode-data-preview/tree/master/src/data.providers) folder for data loading and saving imlementation details.
147151

152+
148153
## Provided Chart 📊 Types
149154

150155
- Area Chart
295 KB
Loading

src/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export const supportedFilesFilters: any = {
1515
'Avro': ['avro'],
1616
'Config': ['config'],
1717
'Markdown': ['md'],
18-
'Properties': ['env', 'properties', 'ini'],
18+
'Properties': ['env', 'ini', 'properties'],
1919
'YAML': ['yml']
2020
};
2121

src/data.preview.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ export class DataPreview {
374374
});
375375
if (selectedFiles && selectedFiles.length >= 1) {
376376
// launch new data preview for the selected data file
377-
this.loadView('data.preview', selectedFiles[0].fsPath);
377+
this.loadView('data.preview', selectedFiles[0].toString(true)); // skip encoding
378378
}
379379
}
380380

0 commit comments

Comments
 (0)