mirror of
https://github.com/h-sphere/sql-seal.git
synced 2026-07-22 10:10:28 +00:00
feat: adding basename and parent SQL variables
This commit is contained in:
parent
96ff64cf49
commit
cfa4e6d4ec
7 changed files with 13 additions and 3 deletions
|
|
@ -1,3 +1,6 @@
|
|||
# 0.30.1 (2025-03-27)
|
||||
- feat: added basename and parent SQL variables
|
||||
|
||||
# 0.30.0 (2025-03-26)
|
||||
- feat: added ability to reference tables from the other files in `table()` functions
|
||||
- feat: added ability to reference tables by their header name
|
||||
|
|
|
|||
|
|
@ -10,6 +10,8 @@ On top of properties current file exposes in the properties, you can also use th
|
|||
| ---------- | ------------------------------------------- | ---------------- |
|
||||
| @path | Full path of the file you're editing | `folder/file.md` |
|
||||
| @fileName | Filename with extension | `file.md` |
|
||||
| @basename | Filename without extension | `file` |
|
||||
| @parent | Path of the parent folder (`/` if none) | `folder` |
|
||||
| @extension | Extension of the file (without leading dot) | `md` |
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"id": "sqlseal",
|
||||
"name": "SQLSeal",
|
||||
"version": "0.30.0",
|
||||
"version": "0.30.1",
|
||||
"minAppVersion": "0.15.0",
|
||||
"description": "Use SQL in your notes to query your vault files and CSV content.",
|
||||
"author": "hypersphere",
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "sqlseal",
|
||||
"version": "0.30.0",
|
||||
"version": "0.30.1",
|
||||
"description": "A plugin for Obsidian that allows you to run SQL queries on your notes.",
|
||||
"main": "main.js",
|
||||
"scripts": {
|
||||
|
|
|
|||
|
|
@ -118,6 +118,8 @@ export class CodeblockProcessor extends MarkdownRenderChild {
|
|||
...fileCache?.frontmatter ?? {},
|
||||
path: file.path,
|
||||
fileName: file.name,
|
||||
basename: file.basename,
|
||||
parent: file.parent?.path,
|
||||
extension: file.extension,
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -61,6 +61,8 @@ export class InlineProcessor extends MarkdownRenderChild {
|
|||
...fileCache?.frontmatter ?? {},
|
||||
path: file.path,
|
||||
fileName: file.name,
|
||||
basename: file.basename,
|
||||
parent: file.parent?.path,
|
||||
extension: file.extension,
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -55,5 +55,6 @@
|
|||
"0.28.3": "0.15.0",
|
||||
"0.28.4": "0.15.0",
|
||||
"0.29.0": "0.15.0",
|
||||
"0.30.0": "0.15.0"
|
||||
"0.30.0": "0.15.0",
|
||||
"0.30.1": "0.15.0"
|
||||
}
|
||||
Loading…
Reference in a new issue