用于重新构造文本和标记的编辑器

meditor的Python项目详细描述


VersionDownloads

标记编辑器是用于重新构造文本和标记的编辑器。

提示

如果性能不好,请关闭“输入时预览”。

功能

  • 支持降价和重组文本
  • 支持语法突出显示的pygments
  • 支持mathjax
  • 格式表
  • VIM模式
  • HTML预览
  • 与预览窗口同步滚动
  • 拖放
  • 多个工作区
  • 自定义模板
  • peview css主题
  • 多个编辑器窗口

vim

VIM命令:

h, j, k, l          # move left, down, up, right
~, gu, gU           # change uppper or lower case
w, b, e             # move forward or backward by word
0, ^, $             # move begin of line, first word of line, end of line
gg, G               # move document top and bottom
ctrl+f, ctrl+b      # page down and up
d, db, dw, D, dd    # delete back word, word, to end of line, line
y, yy, x, X, p      # copy, cut, paste
i, a, A, o, O       # insert, append, newline
<, >                # indent
J, I                # line join, and vertical insert
u, .                # undo and redo
/, :/, /<search>, s/<search>/<replace/  # search and replace
c, w, r             # selection change, read and write
n [file]            # new window

,f                  # format table

VIM模式:

  • 正常
  • 插入
  • 视觉
  • 可视块
  • 命令::w:q

安装

在Linux中:

pip3 install meditor --user

从github下载安装:

# download source
git clone https://github.com/liuyug/meditor.git
cd meditor

# for Virtualenv
virtualenv ../virtualenv
# on Linux
source ../virtualenv/bin/activate
# on Window cmd
../virtualenv/scripts/activate
# on Window PowerShell
Set-ExecutionPolicy -Scope CurrentUser  RemoteSigned
../virtualenv/scripts/activate

# check version, above 3.5
python --version
pip --version

# install 3rd packages
pip install -r requirements.txt
# prepre data files
# ui window
bash ui.sh
# fetch reStructuredText documents
bash help.sh
# for Simple MathJax
bash math.sh
# for preview themes
bash themes.sh
# for icon theme that is used under win32
bash icon_theme.sh list
bash icon_theme.sh <theme name>
# install meditor
python3 setup.py install . --user

注意

如果您运行为用户“root”,则需要添加环境变量“导出QtWebStudio.Dabable Sobox=1”来禁用沙箱。

屏幕截图

检查屏幕截图目录以查看更多主题

screenshot.pngscreenshot/screenshot_rst_solarized_light.pngscreenshot/screenshot_md_infoq.png

其他

iconset:saki的NuoveXT 2图标

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
macos在OS X Lion上安装Java EE 6   java Android Studio无法解析列表适配器中的方法   java使用xpath解析xml并获取嵌套的child   java中模式更新的设计模式编程方法   java ViewResolver Spring不工作   从SQLite for java/安卓中的数据库表中删除除前n之外的所有内容   java C++:对混合了向量的指针的引用。我有麻烦了   为BST实现equals和hashcode的java   java从游标适配器/列表视图中删除多个元素   使用MPAndroidChart,未显示java X轴标签   java从jPanel中的URL添加图像   java在应用程序关闭时本地存储数据,而不是放在后台   验证bean在Java11和SpringBoot2.5.3中不起作用