文章目录
- 常用
- 插入公式/段落层次设置 等
- 修改快捷键(for windows)
- 使用json with doc模式编辑(for vscode+jsonc)
- 保存修改,重启typora:
- 查看修改效果:
- markdown转word(docx)
- 方式0(typora复制粘贴到word):
- advantage
- disadvantage
- 方式1(纯pandoc CLI方式):
- pandoc结合powershell示例
- pandoc转换基本效果
- 方式2(typora调用padoc,GUI方式):
- 方式3(IDEA):
- typora 样式嵌套中的样式化与反操作
- 通用小技巧
- 快捷键派
- 方案1:
- 方案2
- 打散代码块(正文<=>代码)
- 配置插入下一个段落
- Shortcut Keys 默认快捷键大全(offical)
- Summary
- Frequently Used Shortcut Keys
- Autocomplete
- File
- Edit
- Paragraph
- Format
- View
- Change Shortcut Keys
- macOS
- Windows / Linux
- Q: Shortcut keys does not work on Ubuntu
常用
插入公式/段落层次设置 等
修改快捷键(for windows)
使用json with doc模式编辑(for vscode+jsonc)
保存修改,重启typora:
查看修改效果:
markdown转word(docx)
typora
正式版已经开始收费
但是测试版不用,而且我测试转换的测试版最后一个测试版(beta)能够满足转换功能;
方式0(typora复制粘贴到word):
- 转换过程其实很简单,就是全选typora中打开的markdown,然后(创建)并打开一个空的word文档(.docx)
- 现在将内容粘贴到空
.docx
中即可 - 导航大纲也能得到保留
advantage
- 不用安装pandoc等其他软件
disadvantage
- 对于表格的转换,可能会溢出页面,需要手动调整表格
方式1(纯pandoc CLI方式):
批量操作可以借助powershell 或bash/zsh等shell或其他编程语言来批处理
pandoc结合powershell示例
将当前目录下的所有.docx
转换为md
(markdown)
ls *.docx|foreach{Invoke-Expression "pandoc.exe -s $($_.Name) -o $($_.baseName).md"}
用pandoc命令行直接md文件转为docx文件
pandoc -s <source.md> -o <output.docx>
- 具体的语法可以参照
pandoc
官方文档(打开较慢) - Converting a file
- Pandoc - Getting started with pandoc(完整的入门流程)
pandoc转换基本效果
- 对于复杂大表格中,单格内容过多换行问题,可以适当的手动调整表格中文字字体的大小(特别是一些长公式)
方式2(typora调用padoc,GUI方式):
结合pandoc,typora支持导出为.docx
格式文件
- 安装并检验pandoc
- 可以用zip包,但是需要配置环境变量!以及(path变量)
- 从github上下载:Releases · jgm/pandoc (github.com)
- 从官网下载:Pandoc - Installing pandoc
方式3(IDEA):
Markdown | IntelliJ IDEA (jetbrains.com) 使用IDEA+Pandoc
IDEA似乎只支持安装版的pandoc(zip版似支持的不好)
typora 样式嵌套中的样式化与反操作
通用小技巧
快捷键派
通常发生在将一段文本样式化为列表的时候
-
回车
&(某些定制主题可以帮助你分辨一段文本到底有没有换行符 -
Backspace
& -
shift+tab
截断和前面部分的关联
再选中文本段进行样式化
一般将目标内容拉到顶层,就可以正常使用快捷键样式化
样式化完毕后,再利用将样式化好的内容剪切粘贴回去原来的位置(最好前面再插入一个换行,一面粘贴失败
也可以进入原码模式将片段粘贴再合适的位置
方案1:
- 光标上移
- 回车&backspace(核心步骤)
- 效果
方案2
- 进入原码编辑模式
- 删除
-
,在输入空格调整对齐
打散代码块(正文<=>代码)
- 使用快捷键
ctrl+shift+k
配置插入下一个段落
这很有用,特别是需要从代码块跳出来
的时候!
Shortcut Keys 默认快捷键大全(offical)
- Shortcut Keys - Typora Support
- 可能打不开
- Summary
- Frequently Used Shortcut Keys
- Autocomplete
- File
- Edit
- Paragraph
- Format
- View
- Change Shortcut Keys
- macOS
- Windows / Linux
- Q: Shortcut keys does not work on Ubuntu
Summary
You can use shortcut keys to quickly insert or modify styles or do other operations supported by Typora.
You can find shortcut keys in the right side of each menu items from menu bar.
Frequently Used Shortcut Keys
Autocomplete
On macOS, you can press Esc
key to open inline preview for inline math, auto-complete for emoji, etc.
File
Function | Hotkey (Windows/Linux) | Hotkey (macOS) |
New | Ctrl + N | Command + N |
New Window | Ctrl + Shift + N | Command +Shift + N |
New Tab | (Not Supported) | Command + T |
Open | Ctrl + O | Command + O |
Open Quickly | Ctrl + P | Command + Shift + O |
Reopen Closed File | Ctrl + Shift + T | Command + Shift + T |
Save | Ctrl + S | Command + S |
Save As / Duplicate | Ctrl + Shift + S | Command + Shift + S |
Preference | Ctrl + , | Command + , |
Close | Ctrl + W | Command + W |
Edit
Function | Hotkey (Windows/Linux) | Hotkey (macOS) |
New Paragraph | Enter | Enter |
New Line | Shift + Enter | Shift + Enter |
Cut | Ctrl + X | Command + X |
Copy | Ctrl + C | Command + C |
Paste | Ctrl + V | Command + V |
Copy As Markdown | Ctrl + Shift + C | Command + Shift + C |
Paste As Plain Text | Ctrl + Shift + V | Command + Shift + V |
Select All | Ctrl + A | Command + A |
Select Line/Sentence Select Row (in table) | Ctrl + L | Command + L |
Delete Row (in table) | Ctrl + Shift + Backspace | Command + Shift + Backspace |
Select Style Scope Select Cell (in table) | Ctrl + E | Command + E |
Select Word | Ctrl + D | Command + D |
Delete Word | Ctrl + Shift + D | Command + Shift + D |
Jump to Top | Ctrl + Home | Command + ↑ |
Jump to Selection | Ctrl + J | Command + J |
Jump to Bottom | Ctrl + End | Command + ↓ |
Find | Ctrl + F | Command + F |
Find Next | F3 / Enter | Command + G / Enter |
Find Previous | Shift + F3 / Shift + Enter | Command + Shift + G / Shift + Enter |
Replace | Ctrl + H | Command + H |
Paragraph
Function | Hotkey (Windows/Linux) | Hotkey (macOS) |
Heading 1 to 6 | Ctrl + 1/2/3/4/5/6 | Command + 1/2/3/4/5/6 |
Paragraph | Ctrl + 0 | Command + 0 |
Increase Heading Level | Ctrl + = | Command + = |
Decrease Heading Level | Ctrl + - | Command + - |
Table | Ctrl + T | Command + Option + T |
Code Fences | Ctrl + Shift + K | Command + Option + C |
Math Block | Ctrl + Shift + M | Command + Option + B |
Quote | Ctrl + Shift + Q | Command + Option + Q |
Ordered List | Ctrl + Shift + [ | Command + Option + O |
Unordered List | Ctrl + Shift + ] | Command + Option + U |
Indent | Ctrl + [ / Tab | Command + [ / Tab |
Outdent | Ctrl + ] / Shift + Tab | Command + ] / Shift + Tab |
Format
Function | Hotkey (Windows/Linux) | Hotkey (macOS) |
Strong | Ctrl + B | Command + B |
Emphasis | Ctrl + I | Command + I |
Underline | Ctrl + U | Command + U |
Code | Ctrl + Shift + ` | Command + Shift + ` |
Strike | Alt + Shift + 5 | Control + Shift + ` |
Hyperlink | Ctrl + K | Command + K |
Image | Ctrl + Shift + I | Command + Control + I |
Clear Format | Ctrl + \ | Command + \ |
View
Function | Hotkey (Windows/Linux) | Hotkey (macOS) |
Toggle Sidebar | Ctrl + Shift + L | Command + Shift + L |
Outline | Ctrl + Shift + 1 | Command + Control + 1 |
Articles | Ctrl + Shift + 2 | Command + Control + 2 |
File Tree | Ctrl + Shift + 3 | Command + Control + 3 |
Source Code Mode | Ctrl + / | Command + / |
Focus Mode | F8 | F8 |
Typewriter Mode | F9 | F9 |
Toggle Fullscreen | F11 | Command + Option + F |
Actual Size | Ctrl + Shift + 0 | (Not Supported) |
Zoom In | Ctrl + Shift + = | (Not Supported) |
Zoom Out | Ctrl + Shift + - | (Not Supported) |
Switch Between Opened Documents | Ctrl + Tab | Command + ` |
Toggle DevTools | Ctrl + Shift + I | - |
Change Shortcut Keys
Users can set or reassign shortcut keys for commands in Typora’s menu bar. This article will shows how to do this.
macOS
We use macOS’s system feature to customize Typora’s key binding on macOS.
- Open
System Preference
→Keyboard
, select tabShortcuts
. SelectApp Shortcuts
in its left panel.
- Click the “+” button, a dialog sheet would pop up. Select “Typora.app” from field
Application
, then enter the exact name of the menu command you want to add, and then type the shortcut key combination you want to assign.
For example, assume you want to add/change the shortcut key to pin Typora’s window, you can fill the dialog box as follows:
ThenCommand+Shift+P
will be the shortcut key for menu command “always On Top”
Windows / Linux
Tip: This requires a version of Typora ≥ v0.9.16.
- Open
Menu
→ Preference
in Typora, then click “Open Advanced Settings”. - Open and edit
conf.user.json
from opened “File Explore”. If there’s no such file, create one. - Set or add JSON object which represents a key binding, for example:
- Restart Typora, and the new key binding will be applied.
You can set or change shortcut keys for menu items in the menu bar in native window style.
Q: Shortcut keys does not work on Ubuntu
For solutions to this problem please see:
- https://help.ubuntu.com/community/KeyboardShortcuts and
- https://askubuntu.com/questions/208310/ctrl-a-doesnt-work-in-browsers.