社区导航

 

搜索
查看: 204|回复: 3

[分享] 可以嵌入micropython的Micropython-Editor

[复制链接]

7764

TA的帖子

14

TA的资源

版主

Rank: 6Rank: 6

测评达人

发表于 2019-4-14 11:12 | 显示全部楼层 |阅读模式
可以运行在pyboard、ESP8266上的小型文本编辑器,完全用python编写。

  • 使用sys.stdin.read()和sys.stdout.write()来输入和输出Micropython版本。
  • 更改了读取键盘功能,以符合串行线路上逐字节的慢速输入。
  • 添加了对Tab,BackTab,Save,Del和Backspace,支持查找,替换,转到行,撤消,获取文件,自动缩进,设置标志,复制/删除和粘贴,缩进,取消缩进
  • 读取和写入文件时的处理Tab键(0x09),
  • 添加了状态行,提示退出,保存,查找,替换,转到,获取文件和标记设置。
  • 可选支持基本鼠标功能向上/向下滚动,设置光标和标记线。

假设用于VT100终端模式,下面是主要的按键功能:

Key(s)
Function
Up Down Left Right
Cursor movement by one line or char
Ctrl-Left Ctrl-Right
Move the cursor by one word left or right
Shift-Up Shift-Down
Mark the current line or extend the mark
PgUp & PgDd
Page up/down
Home
Toggle the position between the start-of-code and the start of line
End
Toggle the position between the end-of-the-code and end-of-line
Enter
Enter a line break at the cursor position. Auto-indent is supported
Backspace
Delete char left to the cursor (The key must be set to ASCII-Del)
Del
Delete the char under the cursor. At the end of the line join the next line. If autoindent is enabled, delete also the leading spaces of the joined line. If lines are marked, delete the marked area
Ctrl-Del
Delete to End-of-Line
Ctrl-O
Open a new file. If the file name is left empty, an empty buffer is opened
Ctrl-W
Toggle to the next file buffer
Ctrl-Q or Alt-Q
Close a file buffer or end line-edit
Ctrl-S
Save to file with the option to change the file name
Ctrl-W
Switch to the next file buffer
Ctrl-F
Find
Ctrl-N
Repeat last find
Ctrl-H or Ctrl-R
Find and Replace (opt)
Ctrl-G
Go to a line
Ctrl-T
Go to the first line (opt)
Ctrl-B
Go to the last line (opt)
Ctrl-K
Goto the bracket matching the one under the cursor (opt)
Ctrl-L or Ctrl-Space
Mark/Unmark the current line. The mark can then be extended by moving the cursor
Ctrl-X or Ctrl-Y
Cut the marked lines
Ctrl-C or Ctrl-D
Copy the marked lines
Ctrl-V
Insert the copied/cut lines. In the line edit mode paste the item under the cursor of the active window.
Ctrl-Z
Undo the last change(s)
Ctrl-P
Comment/Uncomment a line or marked area
Ctrl-A
Change settings for tab size, search case sensitivity, auto-indent, comment string and writing tabs (opt)
Ctrl-E
Redraw the screen. On WiPy and PyBord it shows the amount of free memory

软件网站







回复

使用道具 举报

155

TA的帖子

0

TA的资源

宇宙尘埃

发表于 2019-4-15 10:27 | 显示全部楼层
谢谢分享!


回复

使用道具 举报

104

TA的帖子

1

TA的资源

一粒金砂(中级)

Rank: 2

发表于 2019-4-15 11:33 | 显示全部楼层
谢谢分享,这个看起来挺复杂的


回复

使用道具 举报

53

TA的帖子

0

TA的资源

一粒金砂(中级)

Rank: 2

发表于 2019-4-16 15:37 | 显示全部楼层
高端大气!


回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

  • 论坛活动 E手掌握

    扫码关注
    EEWORLD 官方微信

  • EE福利  唾手可得

    扫码关注
    EE福利 唾手可得

Archiver|手机版|小黑屋|电子工程世界 ( 京ICP证 060456 )

GMT+8, 2019-4-24 22:07 , Processed in 0.151900 second(s), 17 queries , Gzip On, MemCache On.

快速回复 返回顶部 返回列表