Skip to content

Commit f7540b5

Browse files
committed
responsive mobile website
1 parent 0216aec commit f7540b5

4 files changed

Lines changed: 103 additions & 6 deletions

File tree

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,16 @@
22

33
All notable changes to the "pointblank" extension will be documented in this file.
44

5+
## [6.1.0] - 2025-06-15
6+
7+
### Added
8+
- **Powerful Inline Query Language**: A major new feature that allows you to search for and display information directly within your notes.
9+
- Supports `LIST` (wiki-style links) and `TRANSCLUDE` (embedded content) actions.
10+
- Query from `FILES` (metadata) or `BLOCKS` (inline content).
11+
- Filter results with a `WHERE` clause supporting `AND`/`OR` and multiple operators (`=`, `!=`, `>`, `<`, `::`).
12+
- Sort results with `SORT BY`.
13+
- Define search scope with `IN` clause, supporting `this.file`, `this.folder`, `workspace`, and now **relative paths** (e.g., `IN "./notes/"`).
14+
515
## [0.6.0] - 2025-06-15
616
### Changed
717
- Major refactor of the template system. Templates are now defined by a `Type::` property and stored in `.vscode/templates`.

docs/assets/css/style.scss

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ header {
2727
padding: 1.5em 20px; /* Added horizontal padding */
2828
text-align: center;
2929
border-bottom: 1px solid var(--border-color);
30+
/* For mobile, allow flex items to wrap */
31+
display: flex;
32+
flex-direction: column;
33+
align-items: center;
3034
}
3135

3236
header h1 {
@@ -38,6 +42,7 @@ nav ul {
3842
padding: 0;
3943
list-style: none;
4044
display: flex;
45+
flex-wrap: wrap; /* Allow items to wrap to the next line */
4146
justify-content: center;
4247
margin-top: 1.5em; /* Increased margin to prevent overlap */
4348
}
@@ -52,6 +57,7 @@ main {
5257
background-color: #2d333b; /* Slightly lighter dark for content area */
5358
border-radius: 6px;
5459
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
60+
margin: 20px; /* Add margin to main content for smaller screens */
5561
}
5662

5763
section {
@@ -116,4 +122,49 @@ footer {
116122
.container {
117123
max-width: 1000px;
118124
margin: 0 auto;
125+
padding: 0 15px; /* Add horizontal padding for smaller screens */
126+
}
127+
128+
/* Media queries for responsiveness */
129+
@media (max-width: 768px) {
130+
header {
131+
padding: 1em 15px; /* Adjust header padding for smaller screens */
132+
}
133+
134+
header h1 {
135+
font-size: 1.8em;
136+
}
137+
138+
nav ul {
139+
flex-direction: column; /* Stack navigation items vertically */
140+
margin-top: 1em;
141+
}
142+
143+
nav ul li {
144+
margin: 10px 0; /* Adjust margin for stacked items */
145+
}
146+
147+
main {
148+
padding: 20px 15px; /* Adjust main content padding for smaller screens */
149+
margin: 15px;
150+
}
151+
152+
.container {
153+
padding: 0 10px; /* Further reduce container padding on very small screens */
154+
}
155+
}
156+
157+
@media (max-width: 480px) {
158+
header h1 {
159+
font-size: 1.5em;
160+
}
161+
162+
nav ul li {
163+
margin: 8px 0;
164+
}
165+
166+
main {
167+
padding: 15px 10px;
168+
margin: 10px;
169+
}
119170
}

docs/index.html

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,14 @@ <h2>Welcome to Point Blank Documentation</h2>
1010
</section>
1111

1212
<section id="whats-new">
13-
<h2>What's New in 0.6.0</h2>
13+
<h2>What's New in 6.1.0</h2>
1414
<p>
15-
Point Blank has undergone a significant refactor of its template system!
16-
We've introduced new syntax for defining file-based templates and for
17-
inline node insertion. Learn more about these powerful new features on the
18-
<a href="features.html">Features page</a>.
15+
Point Blank now includes a powerful new inline query language! You can now
16+
dynamically pull information from across your workspace directly into your notes.
17+
Use `LIST` to create lists of links to files or content blocks, or use the new
18+
`TRANSCLUDE` keyword to embed content directly.
19+
Learn more about this powerful new feature on the
20+
<a href="queries.html">Queries page</a>.
1921
</p>
2022
</section>
2123

docs/queries.md

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,4 +116,38 @@ Here are several examples demonstrating the use of the query language:
116116
117117
11. **List all high-priority, incomplete "Task" blocks in the current folder, sorted by `DueDate`:**
118118
```
119-
LIST FROM BLOCKS IN this.folder WHERE Type = "Task" AND Priority = "High" AND Status != "Done" SORT BY DueDate ASC
119+
LIST FROM BLOCKS IN this.folder WHERE Type = "Task" AND Priority = "High" AND Status != "Done" SORT BY DueDate ASC
120+
121+
## Running Queries
122+
123+
There are two primary ways to execute queries in Point Blank: manually writing query blocks or using commands from the Command Palette.
124+
125+
### Manual Workflow
126+
127+
You can write queries directly in your markdown files. The query engine identifies queries by a special HTML comment.
128+
129+
1. **Write the Query:** Type your query inside a comment block like this:
130+
```markdown
131+
<!-- pointblank:query LIST FROM BLOCKS WHERE Type = "Task" AND Status = "Pending" -->
132+
```
133+
2. **Execute the Query:** Place your cursor anywhere in the file and run the **`Point Blank: Update Query`** command from the VS Code Command Palette (`Ctrl+Shift+P`). The extension will find the nearest query block (searching down from the cursor), execute it, and insert the results directly above the comment block.
134+
135+
### Using Commands
136+
137+
Point Blank provides commands to simplify the process of creating and updating queries.
138+
139+
* **`Point Blank: Insert Query by Type`** (`pointblank.insertTypeQuery`)
140+
* This command will prompt you to enter a `Type` name (e.g., "Task", "Note").
141+
* It will then insert a complete query block into the editor, ready to be executed.
142+
* Example Query Inserted: `LIST FROM BLOCKS WHERE Type::Task`
143+
144+
* **`Point Blank: Update Query`** (`pointblank.updateTypeQuery`)
145+
* This command searches for the nearest query block below your cursor's current position.
146+
* It re-runs the query and replaces the old results with the new ones. This is useful for refreshing a list after you've made changes to your notes.
147+
148+
## Command Reference
149+
150+
| Command | ID | Description |
151+
| :--- | :--- | :--- |
152+
| Insert Query by Type | `pointblank.insertTypeQuery` | Prompts for a type and inserts a new query block. |
153+
| Update Query | `pointblank.updateTypeQuery` | Updates the results of the nearest query block. |

0 commit comments

Comments
 (0)