Skip to content

Commit

Permalink
update(feat)[#6]: improved table data display
Browse files Browse the repository at this point in the history
  • Loading branch information
Rooyca committed Jan 17, 2025
1 parent 390a6ff commit 0270fc0
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 4 deletions.
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,26 @@ This flag allows you to format the output of the JSON data. The supported values
- `table`: displays the data in a table format
- `img`: displays the data as an image

#### Improved Table Data Display

```markdown
Add column formatting:
> #qj-format: table[<flags>:<field or template>:<link field>=<custom name>,<flags>:<field or template>:<link field>=<custom name>,...]
For example:
> #qj-format: table[h:title=Name,:value,b:test=Value 2]
with a template:
> #qj-format: table[:"Custom {value} of {test}"=Something]

The following flags are implemented:

b: display bold
h: header column/field (only allowed in the first entry)
l: create a link - a second field name must be provided, which contains the link URL
c: if a list of values is the content, use comma separation for the entries
n: if a list of values is the content, use new-line/
separation for the entries
```

## 🛠️ Contribution

If you encounter any issues or have suggestions for improvement, please feel free to contribute to the project. Your feedback is invaluable in enhancing the plugin's functionality and user experience.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "query-json",
"name": "Query JSON",
"version": "0.1.2",
"version": "0.1.3",
"minAppVersion": "0.15.0",
"description": "Read, query and work with JSON.",
"author": "rooyca",
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "query-json",
"version": "0.1.2",
"version": "0.1.3",
"description": "Read, query and work with JSON.",
"main": "main.js",
"scripts": {
Expand Down

0 comments on commit 0270fc0

Please sign in to comment.