QOwnNotesQOwnNotes
Loslegen
Installation
  • Ask question
  • Ask for feature
  • Report bug
  • Telegram Channel
  • Matrix/Element.io Room
  • Gitter Chat
  • IRC Channel
  • Mastodon
  • Twitter
  • Facebook
Spenden
  • English
  • Deutsch
  • Italiano
  • Français
  • Español
  • فارسی
  • Nederlands
  • Magyar
  • العربية
  • Polski
  • 한국어
GitHub
Loslegen
Installation
  • Ask question
  • Ask for feature
  • Report bug
  • Telegram Channel
  • Matrix/Element.io Room
  • Gitter Chat
  • IRC Channel
  • Mastodon
  • Twitter
  • Facebook
Spenden
  • English
  • Deutsch
  • Italiano
  • Français
  • Español
  • فارسی
  • Nederlands
  • Magyar
  • العربية
  • Polski
  • 한국어
GitHub
  • Loslegen

    • Übersicht
    • Konzept
    • QOwnNotes Demo
    • Markdown Cheatsheet
    • Notizen importieren
    • Parameter der Kommandozeilenschnittstelle
    • QOwnNotes Web Companion-Browsererweiterung
    • Befehlszeilen-Snippet-Manager
    • QOwnNotes Web App
    • QOwnNotesAPI Nextcloud App
    • Note relations panel
    • Nach Notizen suchen
    • Tastaturbefehle
    • Git Versionierung
  • Installation

    • Installation
    • Installieren unter Ubuntu Linux, Elementary OS und Linux Mint
    • Installieren unter Microsoft Windows™
    • Installieren unter macOS™
    • Installieren unter Debian Linux
    • Installieren unter openSUSE Linux
    • Installieren unter Fedora Linux
    • Als Snap installieren
    • Als Flatpak installieren
    • Als AppImage installieren
    • Installation mit Nix
    • Installieren unter Arch Linux
    • Installieren unter Solus
    • Installieren unter KaOS Linux
    • Installieren unter CentOS Linux
    • Installieren unter Raspberry Pi OS
    • Installieren unter Gentoo Linux
    • Installieren unter Funtoo Linux
    • Installieren unter Void Linux
    • Installieren unter Slackware Linux
    • Auf FreeBSD installieren
    • QOwnNotes erstellen
  • Editor

    • Rechtschreibprüfung
    • KI Unterstützung
    • Zeitformate
  • Skripten

    • QOwnNotes Scripting
    • Methoden und Objekte, die QOwnNotes bereitstellt
    • Hooks
    • Exponierte Klassen
  • Beitragen

    • Werde Teil von QOwnNotes
    • Verhaltenskodex
    • Betreiber
    • Übersetzung
    • Spenden
    • Sponsoren
  • FAQ

    • Wie kann ich nur das Vorschaufenster ohne Notizbearbeitungsfeld anzeigen?
    • Wo finde ich, was andere über QOwnNotes gesagt haben?
    • Warum Metriken?
  • Blog (auf Englisch)

    • Overview
    • QOwnNotes Webpage Relaunch with VuePress 2, Vue.js 3, and Vuetify 3
    • Universal binary for macOS
    • Note relations panel
    • AI support was added to QOwnNotes
    • Source Archive switched from TuxFamily to GitHub Releases
    • Nextcloud Deck integration in QOwnNotes
    • QOwnNotes UI End2End Tests with the help of NixOS
    • Please test Qt6 version of QOwnNotes from a new PPA for Ubuntu Linux
    • Evernote import for huge files
    • Happy 1000th release of QOwnNotes
    • Polish website translation
    • Working with multiple notes
    • QOwnNotes command-line snippet manager
    • Nextcloud note versions
    • Manage orphaned image files and attachments
    • Linking of note headings
    • Tor Hidden Service Webpage
    • Use workspaces to manage different layouts of the user interface
    • Auto-complete text in note editor
    • Open links in the note editor
    • Solve simple equations in the note editor
    • Auto-format Markdown tables
    • QOwnNotes Mastodon page
    • Repository for Debian 11
    • Joplin import
    • Send photos from your mobile phone to QOwnNotes on the desktop
    • Four new languages added to the website
    • QOwnNotes Demo
    • Markdown explanation
    • Webpage translation
    • QOwnNotes for Ubuntu 21.04 Hirsute Hippo
    • QOwnNotes for Fedora 33
    • Release and blog posting automation
    • Legacy update service up again
    • RSS Feeds are back in place
    • Time Flies Podcast episode with interview about QOwnNotes
    • Bookmark management with QOwnNotes and Web Companion browser extension
    • Firefox extension on Firefox Add-ons page
    • Chrome extension in Chrome Web Store
    • QOwnNotes Web Companion Chrome extension
    • 500th release of QOwnNotes
    • QOwnNotes Telegram Group
    • Vim mode
    • QOwnNotes for openSUSE Leap 15, SUSE Linux Enterprise 15 and SUSE Linux Enterprise 12 SP3
    • QOwnNotes featured on LINUX Unplugged podcast and by Ubuntu
    • Interview for ownCloud
    • QOwnNotes for Fedora 27
    • QOwnNotes reviewed in German magazine c't
    • QOwnNotesAPI in the ownCloud Marketplace
    • QOwnNotes as AppImage
    • QOwnNotes for Debian 9.0, Fedora 26 and openSUSE Leap 42.3
    • Script repository and script settings variables
    • Fedora 25 release and new documentation page
    • Solus package for QOwnNotes
    • Automatic updates in Windows and macOS
    • Note encryption with keybase.io or directly with PGP
    • Evernote import
    • Portable mode
    • QOwnNotes on webupd8.org
    • QOwnNotes featured on the Linux Voice Podcast
    • QOwnNotes snap
    • QOwnNotes review in British magazine Linux Format
    • QOwnNotes Slackware Linux Repository
    • QOwnNotes review
    • QOwnNotes IRC
    • QOwnNotes now has scripting support
    • QOwnNotes is the Desktop App Pick on the Linux Action Show
    • QOwnNotes got featured in Linux Voice 25
    • QOwnNotes Gentoo Linux Overlay
    • Translate QOwnNotes on Crowdin
    • QOwnNotes 1.0 out now in 6 languages and with Freedesktop theme icons support
    • QOwnNotes software repository for Debian Linux
    • QOwnNotes package on the Arch User Repository
    • QOwnNotes software repository for Arch Linux
    • Webpage redesign
    • Qt widget QMarkdownTextEdit now a separate project for developer's pleasure
    • New release version RSS feed
    • New Linux software repositories and todo list support
    • QOwnNotes on Linux Unplugged
    • Build and release systems for QOwnNotes for Linux, macOS and Windows!
    • Links to other notes or files are now possible in QOwnNotes
  • Änderungsprotokoll (auf Englisch)

    • QOwnNotes Changelog

Befehlszeilen-Snippet-Manager

Sie können den QOwnNotes-Befehlszeilen-Snippet-Manager verwenden, um Befehlsschnipsel, die in Notizen in QOwnNotes gespeichert sind, über die Befehlszeile auszuführen.

qc

Sie können Notizen mit einem speziellen Schlagwort verwenden, um Befehls-Snippets zu speichern, die Sie **über den Befehlszeilen-Snippet-Manager ausführen ** können.

commands

Installation

Besuchen Sie die Seite mit der neuesten Version und laden Sie die gewünschte Version herunter.

Tips

Wenn Sie jq installiert haben, können Sie dieses Snippet auch verwenden, um beispielsweise das neueste Linux AMD64 AppImage unter /usr/local/bin/qc herunterzuladen und zu installieren:

curl https://api.github.com/repos/qownnotes/qc/releases/latest | \
jq '.assets[] | select(.browser_download_url | endswith("_linux_amd64.tar.gz")) | .browser_download_url' | \
xargs curl -Lo /tmp/qc.tar.gz && \
tar xfz /tmp/qc.tar.gz -C /tmp && \
rm /tmp/qc.tar.gz && \
sudo mv /tmp/qc /usr/local/bin/qc && \
/usr/local/bin/qc --version

Abhängigkeiten

fzf (fuzzy search) oder peco (älter, aber eher standardmäßig installiert) müssen installiert sein, wenn in der Befehlszeile nach Befehlen gesucht werden soll.

Tips

Standardmäßig wird fzf für die Suche verwendet, aber Sie können peco verwenden, indem Sie es mit qc configure einstellen.

Setup

socket-server-token

Before you are using the snippet manager you need to enable the Web socket server (2) in the Browser extension / command snippets (1) settings in QOwnNotes.

Dann müssen Sie das Sicherheitstoken vorzeigen (3) und kopieren (4).

Öffnen Sie nun die Konfigurationsdatei des Snippet-Managers mit:

# Konfigurieren Sie den Snippet-Manager
qc configure

Und fügen Sie das Sicherheitstoken in das Attribut token ein:

[QOwnNotes]
token = "yourtokenhere"

Tips

In den QOwnNotes-Einstellungen können Sie auch festlegen, welches Notiz-Schlagwort verwendet werden soll, um in Notizen nach Befehlen zu suchen. Standardmäßig wird das Tag commands verwendet.

Syntax von Befehlsschnipseln

Sie können ungeordnete Listen mit Inline-Codeblöcken verwenden, um Befehlsausschnitte zu speichern. Alle Notizen mit dem Tag commands werden nach Befehlsschnipseln durchsucht.

Wenn Sie vor dem Inline-Codeblock ein cmd: hinzufügen, wird der Befehl auch in der aktuellen Notiz gefunden, unabhängig von Notiz-Tags.

- `echo I am a command` I am a description #tag1 #tag2 #tag3

* `echo I am also a command` I am a description #tag3 #tag4 #tag5

- cmd: `echo I will be found in the current note` This command will be found in the current note regardless of note tags

<!-- Example for asking for user input -->

- `read -p "PR ID: " id && git fetch origin pull/$id/head:pull-$id && git checkout pull-$id` Ask for pull request ID and checkout pull request

Bash- oder Shell-Codeblöcke, denen eine Überschrift 2 oder höher als Beschreibung vorangestellt ist, können auch für Befehlsschnipsel verwendet werden. Tags werden auch unterstützt, wenn sie sich zwischen der Überschrift und dem Codeblock befinden.

## Tun Sie dies mit einem "Bash" -Codeblock

- dieser Text wird ignoriert Text
- aber Tags können verwendet werden: #tag1 #tag2

```bash
Echo mach das
 Echo mach das
```


## Mach etwas anderes mit einem "sh" Codeblock

```sh
Echo mach was anderes
 echo mach was anderes
```

Das obige Beispiel führt zu zwei Befehlsschnipseln, dem ersten mit den beiden Tags tag1 und tag2.

Verwendung

# Befehlsschnipsel suchen und ausführen
qc exec
# Befehlsausschnitte suchen und drucken
qc-Suche

Aufbau

Führen Sie qc configure aus.

[General]
  editor = "vim"            # Ihr Lieblingstexteditor
  column = 40               # Spaltengröße für Listenbefehl
  selectcmd = "fzf"         # Selektorbefehl für Editierbefehl (fzf oder peco)
  sortby = ""               # Geben Sie an, wie Snippets sortiert werden (recency (default), -recency, description, -description, command, -command, output, -output)

[QOwnNotes]
  token = "MvTagHXF"        # your QOwnNotes API token
  websocket_port = 22222    # websocket port in QOwnNotes

Shell-Vervollständigung

Sie können Shell-Vervollständigungscode für Ihre Shell mit qc-Vervollständigung <shell> generieren.

Für die Fischschale können Sie beispielsweise verwenden:

qc completion fish > ~/.config/fish/completions/qc.fish
Prev
QOwnNotes Web Companion-Browsererweiterung
Next
QOwnNotes Web App