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

    • 개요
    • Concept
    • QOwnNotes 데모
    • Markdown Cheatsheet
    • 노트 가져오기
    • 명령줄 인터페이스 매개 변수
    • QOnNotes 웹 지원 브라우저 확장
    • 명령줄 스니펫 관리자
    • QOwnNotes 웹 앱
    • QOwnNotesAPI Nextcloud 앱
    • 노트 관계 패널
    • 노트 검색
    • Shortcuts
    • Git 버전 관리
  • 설치

    • 설치
    • Ubuntu Linux, elementary OS 및 Linux Mint에 설치
    • Microsoft Windows™에 설치
    • macOS™에 설치
    • Debian Linux에 설치
    • OpenSUSE Linux에 설치
    • Install on Fedora Linux
    • 스냅으로 설치
    • Flatpak으로 설치
    • AppImage로 설치
    • Nix를 통해 설치
    • Arch Linux에 설치
    • Solus에 설치
    • KaOS Linux에 설치
    • CentOS Linux에 설치
    • Raspberry Pi OS에 설치
    • Gentoo Linux에 설치
    • Funtoo Linux에 설치
    • Void Linux에 설치
    • Slackware Linux에 설치
    • FreeBSD에 설치
    • QOwnNotes 빌드
  • 편집기

    • 맞춤법 검사
    • AI 지원
    • 시간 형식
  • 스크립팅

    • QOwnNotes 스크립팅
    • QOwnNotes에서 제공하는 메서드 및 개체
    • Hooks
    • 해설 클래스
  • 기여하기

    • 참여하기
    • 행동 강령
    • 유지 관리자
    • 번역
    • 기부
    • 후원
  • 자주 묻는 질문

    • 노트 편집 패널 없이 미리 보기 패널만 표시하려면 어떻게 해야 합니까?
    • QOwnNotes에 대해 다른 사용자가 말한 내용은 어디에서 찾을 수 있습니까?
    • 왜 메트릭스인가요?
  • 블로그 (영어)

    • 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
  • 변경 로그 (영어)

    • QOwnNotes Changelog

명령줄 스니펫 관리자

QOwnNotes 명령줄 스니펫 관리자를 사용하여 명령줄에서 QOwnNotes의 노트에 저장된 명령 코드 조각을 실행합니다.

qc

특수 태그가 있는 노트를 사용하여 명령줄 스니펫 관리자에서 실행할 수 있는 명령 스니펫을 저장할 수 있습니다.

명령

설치

최신 릴리스 페이지을 방문하여 필요한 버전을 다운로드하십시오.

::: 팁 jq를 설치한 경우 이 스니펫을 사용하여 최신 Linux AMD64 AppImage를 /usr/local/bin/qc에 다운로드하여 설치할 수도 있습니다:

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

:::

의존성

명령줄에서 명령을 검색하려면 fzf (이전 버전) 또는peco (기본적으로 설치되는 경우가 더 많음)를 설치해야 합니다.

::: 팁 기본적으로 fzf는 검색에 사용되지만 qc configure로 설정하여 peco를 사용할 수 있습니다. :::

설정

socket-server-token

스니펫 관리자를 사용하기 전에 QOwnNotes의 _브라우저 확장 / 명령 스니펫 _ (1) 설정에서 웹 소켓 서버 (2)를 활성화해야 합니다.

그런 다음 보안 토큰 (3)을 표시하고 복사해야 합니다 (4).

이제 다음을 사용하여 스니펫 관리자의 구성 파일을 엽니다:

# Configure the snippet manager
qc configure

그리고 보안 토큰을 token 속성에 넣습니다:

token = "yourtokenhere"

::: 팁 QOwnNotes 설정에서 노트에서 명령어를 검색하는 데 사용할 노트 태그를 설정할 수도 있습니다. 기본적으로 태그 명령이 사용됩니다. :::

명령 스니펫의 구문

순서가 지정되지 않은 목록을 인라인 코드 블록 과 함께 사용하여 명령 코드 조각을 저장할 수 있습니다. 태그 명령이 포함된 모든 노트에서 명령 스니펫이 검색됩니다.

인라인 코드 블록 앞에 cmd:를 추가하면 노트 태그에 관계없이 현재 노트에서도 명령어를 찾을 수 있습니다.

- `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` 이 명령은 노트 태그에 관계없이 현재 노트에서 찾을 수 있습니다

<!-- 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 또는 shell 코드 블록은 설명으로 머리글 2 이상 앞에 있으며 명령 스니펫에도 사용할 수 있다. 태그가 제목과 코드 블록 사이에 있는 경우에도 지원됩니다.

## "bash" 코드 블록으로 이 작업 수행

- 이 텍스트는 무시됩니다
- 그러나 태그는 사용할 수 있습니다: #tag1 #tag2

```bash
echo do this
echo do that
```


## "sh" 코드 블록으로 다른 작업 수행

```sh
echo do something else
echo do something other
```

위의 예는 두 개의 명령 스니펫, 즉 두 개의 태그 tag1 및 tag2가 있는 첫 번째 명령 스니펫을 생성합니다.

사용법

# 명령 스니펫 검색 및 실행
qc exec
# 명령 스니펫 검색 및 인쇄
qc search

구성

qc 구성을 실행합니다.

  editor = "vim"            # 즐겨찾기 텍스트 편집기
  column = 40               # 목록 명령의 열 크기
  selectcmd = "fzf"         # 편집 명령에 대한 선택기 명령 (fzf 또는 peco)
  sortby = ""               # 스니펫 정렬 방법 지정 (최근 (기본값), -recency, description, -description, command, -command, output, -output)

[QOwnNotes]
  token = "MvTagHXF"        # QOwnNotes API 토큰
  websocket_port = 22222    # QOwnNotes의 웹소켓 포트

셸 완성

qc completion <shell>을 사용하여 셸의 셸 완료 코드를 생성할 수 있습니다.

예를 들어 Fish 셸의 경우 다음을 사용할 수 있습니다:

qc completion fish > ~/.config/fish/completions/qc.fish
Prev
QOnNotes 웹 지원 브라우저 확장
Next
QOwnNotes 웹 앱