You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+13-5Lines changed: 13 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,11 +6,10 @@ A small text editor written in Python running on PYBoard and WiPy, allowing to e
6
6
7
7
- Use USB_VCP or UART for input and output.
8
8
- Changed the read keyboard function to comply with slow byte-by-byte input on serial lines.
9
-
- Added support for TAB, BACKTAB, SAVE, FIND, REPLACE, GOTO line, YANK (delete line into a buffer), DUP (copy line into a buffer), ZAP (insert buffer),REDRAW, UNDO and GET (file)
10
-
- Join Lines by 'Delete Char' at the end or Backspace at the beginning of a line, Auto-indent for ENTER, context sensitive TAB, BACKTAB, and HOME
11
-
- Moved main into a function
12
-
- Added a status line and single line prompts for QUIT, SAVE, FIND, REPLACE, GOTO, GET and Toggles.
13
-
- Support of the basic mouse functions scrolling up/down and setting the cursor.
9
+
- Added support for Tab, BackTab, Save, Del and Backspace joining lines, Find, Replace, Goto Line, Undo, Get file, Auto-Indent, Set Flags, Copy/Delete & Paste, Indent, Un-Indent
10
+
- handling tab (0x09) on reading & writing files,
11
+
- Added a status line, line number column and single line prompts for
12
+
- Support of the basic mouse functions scrolling up/down and setting the cursor (not WiPy).
14
13
15
14
The editor assumes a VT100 terminal. It works in Insert mode. Cursor Keys, Home, End, PgUp, PgDn, Del and Backspace work as you would expect. The additional functions like FIND etc. are available with Ctrl-Keys. On reading files, tab characters are expanded to spaces with a tab size of 8, and trailing white space on a line will be discarded. The orginal state of tabs will not be restored when the file is written. Optionally, tabs can be written when saving the file, replacing spaces with tabs when possible. The screen size is determined, when the editor is started or when the Redraw-key (Ctrl-E) is hit.
16
15
@@ -19,6 +18,8 @@ The editor works also well in a Linux or MAC terminal environment, with both pyt
19
18
**Files:**
20
19
21
20
- pye.py: Source file with comments and code for PyBoard, WiPy and Linux micropython/python3. Runs on PyBoard as well, but the file size is much larger than the stripped down version.
21
+
- pye2.py: a variant of pye.py which does not change the cursor column during vertical moves.
22
+
- pye3.py: a variant of pye.py which tries to keep the cursor column during vertical moves as good as possible.
22
23
- Pyboard Editor.pdf: A short documentation
23
24
- README.md: This one
24
25
- pe.py: Condensed source file for PyBoard with all functions
@@ -102,3 +103,10 @@ c) expandtabs() and packtabs() with a second argument for tabsize (not for pye,
102
103
- Added a cleaner Indent and Un-Indent method; for WiPy too
103
104
- Removed the attempt to recover from out-of-memory situations: did not work.
104
105
- Still runs on WiPy, but really at it's limit
106
+
107
+
**1.9** Refinement of Mark and Undo
108
+
- Mark setting affects Save and Replace now. With Save, only the marked range is written, with replace, search & replace is done in the marked area only.
109
+
- The Undo history is kept after Save. So you can go back to a state before saving
110
+
- Removed UART mode on WiPy. Not stable yet. UART mode can be achieved by redirecting REPL.
111
+
- A variant of pye.py, called pye2.py, keeps the cursor column even if the cursor is moved beyond the text in a line, instead of moving to the end of text if a line is shorter than the actual cursor column. Another variant, pye3, tries to go back to the cursor column which once was set by a horizontal move. That's more how gedit works. Not sure which I like better.
0 commit comments