如何在terminal中使用Joplin并像vim一样移动?

6 篇文章 0 订阅
1 篇文章 0 订阅
本文介绍了如何在mac和Ubuntu上安装Joplin终端版,并提供了详细的配置步骤,包括同步设置和自定义快捷键。对于快捷键,文章给出了类似Vim的操作方式,允许用户更高效地导航和操作Joplin。此外,还展示了如何设置Vim为默认编辑器以及添加退出快捷键。
摘要由CSDN通过智能技术生成

如何在terminal中使用Joplin并像vim一样移动?

原文地址: https://cfanzp.com/joplin-terminal/

安装

mac 安装方法

brew install node
NPM_CONFIG_PREFIX=~/.joplin-bin npm install -g joplin
sudo ln -s ~/.joplin-bin/bin/joplin /usr/bin/joplin
[zp@localhost bin]$ sudo ln -s ~/.joplin-bin/bin/joplin /usr/bin/joplin
ln: /usr/bin/joplin: Read-only file system
sudo ln -s ~/.joplin-bin/bin/joplin /usr/local/bin/joplin

ubuntu 安装方法

#Important: First, install Node 12+.
NPM_CONFIG_PREFIX=~/.joplin-bin npm install -g joplin
sudo ln -s ~/.joplin-bin/bin/joplin /usr/bin/joplin

我安装的时候nodejs版本是:v10.19.0,建议按官方要求使用Node 12+

进入

joplin

配置文件同步

同步方式建议用文件同步,尝试了用坚果云的WebDav同步效果不是很好,手机可以采用WebDav,电脑还是用文件同步更稳定些。

:config sync.target 2
:config sync.2.path /home/cfanzp/jgy/joplin

配置将会被保存在下面文件中

~/.config/joplin/settings.json

快捷键配置

~/.config/joplin/keymap.json

快捷键配置demo keymap.json

[
  { "keys": [":"], "type": "function", "command": "enter_command_line_mode" },
  { "keys": ["TAB"], "type": "function", "command": "focus_next" },
  { "keys": ["SHIFT_TAB"], "type": "function", "command": "focus_previous" },
  { "keys": ["UP"], "type": "function", "command": "move_up" },
  { "keys": ["DOWN"], "type": "function", "command": "move_down" },
  { "keys": ["PAGE_UP"], "type": "function", "command": "page_up" },
  { "keys": ["PAGE_DOWN"], "type": "function", "command": "page_down" },
  { "keys": ["ENTER"], "type": "function", "command": "activate" },
  { "keys": ["DELETE", "BACKSPACE"], "type": "function", "command": "delete" },
  { "keys": [" "], "command": "todo toggle $n" },
  { "keys": ["n"], "type": "function", "command": "next_link" },
  { "keys": ["b"], "type": "function", "command": "previous_link" },
  { "keys": ["o"], "type": "function", "command": "open_link" },
  { "keys": ["tc"], "type": "function", "command": "toggle_console" },
  { "keys": ["tm"], "type": "function", "command": "toggle_metadata" },
  { "keys": ["/"], "type": "prompt", "command": "search \"\"", "cursorPosition": -2 },
  { "keys": ["mn"], "type": "prompt", "command": "mknote \"\"", "cursorPosition": -2 },
  { "keys": ["mt"], "type": "prompt", "command": "mktodo \"\"", "cursorPosition": -2 },
  { "keys": ["mb"], "type": "prompt", "command": "mkbook \"\"", "cursorPosition": -2 },
  { "keys": ["yn"], "type": "prompt", "command": "cp $n \"\"", "cursorPosition": -2 },
  { "keys": ["dn"], "type": "prompt", "command": "mv $n \"\"", "cursorPosition": -2 }
]

vim快捷键配置demo keymap.json

[
  { "keys": [":"], "type": "function", "command": "enter_command_line_mode" },
  { "keys": ["TAB","l"], "type": "function", "command": "focus_next" },
  { "keys": ["SHIFT_TAB","h"], "type": "function", "command": "focus_previous" },
  { "keys": ["UP","k"], "type": "function", "command": "move_up" },
  { "keys": ["DOWN","j"], "type": "function", "command": "move_down" },
  { "keys": ["PAGE_UP","{"], "type": "function", "command": "page_up" },
  { "keys": ["PAGE_DOWN","}"], "type": "function", "command": "page_down" },
  { "keys": ["ENTER"], "type": "function", "command": "activate" },
  { "keys": ["DELETE", "BACKSPACE"], "type": "function", "command": "delete" },
  { "keys": [" "], "command": "todo toggle $n" },
  { "keys": ["tc"], "type": "function", "command": "toggle_console" },
  { "keys": ["tm"], "type": "function", "command": "toggle_metadata" },
  { "keys": ["/"], "type": "prompt", "command": "search \"\"", "cursorPosition": -2 },
  { "keys": ["mn"], "type": "prompt", "command": "mknote \"\"", "cursorPosition": -2 },
  { "keys": ["mt"], "type": "prompt", "command": "mktodo \"\"", "cursorPosition": -2 },
  { "keys": ["mb"], "type": "prompt", "command": "mkbook \"\"", "cursorPosition": -2 },
  { "keys": ["yn"], "type": "prompt", "command": "cp $n \"\"", "cursorPosition": -2 },
  { "keys": ["dn"], "type": "prompt", "command": "mv $n \"\"", "cursorPosition": -2 }
]

vim快捷键添加e进入Vim编辑

{ "keys": ["ENTER","e"], "type": "function", "command": "activate" },

vim快捷键添加q退出

 { "keys": ["dn"], "type": "prompt", "command": "exit", "cursorPosition": -1 }
主要快捷键
keynotecmd
hjkl移动-
(SPACE)完成todo项目:todo toggle $n
/搜索:search
mnmake note 创建笔记:mknote
mtmake todo 创建待办:mktodo
mbmake book 创建笔记本:mkbook
yncp当前项目cp $n
dn删除当前项目:mv $n
q退出:exit

配置默认编辑器为Vim

在命令行中执行:

joplin config editor "/usr/bin/vim"

或在jopliin内部命令行模式

:config editor "/usr/bin/vim"

参考

  • https://joplinapp.org/terminal
  • https://zhuanlan.zhihu.com/p/107334649
Joplin Web 是一个基于云端的笔记和待办事项应用程序,可以与Joplin桌面和移动应用程序进行同步使用。它允许用户在任何地方访问和管理他们的笔记和任务,只需要一个网络连接。与Joplin的其他版本一样,Joplin Web提供了强大的组织和搜索功能,以帮助用户找到和管理他们的数据。 Joplin Web 提供了一个直观和简洁的界面,易于使用和导航。用户可以创建笔记本,并在其创建和组织笔记。他们可以使用Markdown语法来格式化和编辑笔记内容,并添加附件如图片、文件或链接。除了笔记,用户还可以创建待办事项,设定截止日期和提醒,以便及时完成任务。 由于Joplin Web是一个基于云的应用程序,用户可以在多个设备上同步他们的数据。无论是使用Joplin的桌面应用程序还是移动应用程序,在任何设备上对数据的更改都会自动同步到Joplin Web。这使得用户可以在不同设备之间无缝切换,并随时随地访问和更新他们的笔记和任务。 此外,Joplin Web还提供了安全和隐私性的保护。用户的数据在传输和存储过程都会进行加密,确保用户的个人信息和笔记内容不会被未经授权的人员访问或窃取。 总的来说,Joplin Web是一个功能强大且易于使用的在线笔记和待办事项应用程序。它提供了灵活的组织和搜索功能,使用户能够高效地管理他们的信息。并且它与Joplin的其他版本之间的同步功能保证了用户在不同设备上的数据始终保持一致。无论是个人用户还是团队,Joplin Web都是一个理想的工具来提高工作效率并保持信息的安全性。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

打杂程序员

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值