Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.1.3 #5

Merged
merged 3 commits into from
Jan 15, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 8 additions & 9 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -1168,7 +1168,7 @@ func handleHelp(w http.ResponseWriter, r *http.Request) {

Shortcuts are triggered via a keyword. You also need a destination URL.</p>
<br>
To create and use your shortcuts, you can either:</p>
To use your shortcuts, you can either:</p>

1. use the search box in the GoMarks webpage</p>
2. call the URL <code>https://gomarks.example.com/go/?q=your_keyword</code> directly</p>
Expand All @@ -1179,7 +1179,6 @@ func handleHelp(w http.ResponseWriter, r *http.Request) {
<br>
<h3 id="simple">Simple shortcuts</h3>


A keyword <code>bbc</code> can take you to the destination URL <code>https://www.bbc.com</code>.</p>

Simple shortcuts can't take options (like <code>bbc europe</code>) because they are simple, not smart.
Expand All @@ -1197,7 +1196,7 @@ func handleHelp(w http.ResponseWriter, r *http.Request) {

We can improve <code>bbc</code> further by searching in BBC's articles. Let's search the terms "open source" on their website.</p>

The resulting URL URL <code>https://www.bbc.com/search?q=<span style="background-color:#bf616a;">open+source</span>&edgeauth=eyJhbGciOi...</code> ➡️ Your destination URL <code>https://www.bbc.com/search?q=<span style="background-color:#bf616a;">%s</span></code></p>
The resulting URL <code>https://www.bbc.com/search?q=<span style="background-color:#bf616a;">open+source</span>&edgeauth=eyJhbGciOi...</code> ➡️ Your destination URL <code>https://www.bbc.com/search?q=<span style="background-color:#bf616a;">%s</span></code></p>

⚠️ Queries are traditionally passed behind <code>q=</code>, <code>query=</code> or <code>search=</code> arguments but nothing prevents a website owner to use <code>banana=</code>.</p>

Expand Down Expand Up @@ -1281,31 +1280,31 @@ func handleHelp(w http.ResponseWriter, r *http.Request) {

Action keywords do not appear in the list.</p>

You can <a href="/reserved">reconfigure</a> reserved action keywords in the administration section if they conflict with your workflow.</p>
You can <a href="/reserved">reconfigure</a> reserved action keywords in the administration section if they conflict with your workflows.</p>

<table class="reservedkeywords">
<tr>
<th>Usage</th>
<th>Action</th>
</tr>
<tr>
<td>!add myshortcut https://www.example.com</td>
<td><code>!add myshortcut https://www.example.com</code></td>
<td>adds a simple shortcut</td>
</tr>
<tr>
<td>!add myshortcut https://www.example.com/%s</td>
<td><code>!add myshortcut https://www.example.com/%s</code></td>
<td>adds a placeholder shortcut</td>
</tr>
<tr>
<td>!add myshortcut https://www.example.com/%s 1</td>
<td><code>!add myshortcut https://www.example.com/%s 1</code></td>
<td>adds a single word placeholder shortcut</td>
</tr>
<tr>
<td>!mod myshortcut</td>
<td><code>!mod myshortcut</code></td>
<td>takes you to the edit page for the shortcut</td>
</tr>
<tr>
<td>!del myshortcut</td>
<td><code>!del myshortcut</code></td>
<td>takes you to delete confirmation page</td>
</tr>
</table>
Expand Down
Loading