Skip to content

Commit 301affa

Browse files
committed
Documented the recent changes to the Block modes and Undo
1 parent 55cf8b5 commit 301affa

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-5
lines changed

Pyboard Editor.doc

-512 Bytes
Binary file not shown.

Pyboard Editor.pdf

-1.41 KB
Binary file not shown.

README.md

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,10 @@ A small text editor written in Python running on PYBoard and WiPy, allowing to e
66

77
- Use USB_VCP or UART for input and output.
88
- 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).
1413

1514
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.
1615

@@ -19,6 +18,8 @@ The editor works also well in a Linux or MAC terminal environment, with both pyt
1918
**Files:**
2019

2120
- 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.
2223
- Pyboard Editor.pdf: A short documentation
2324
- README.md: This one
2425
- 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,
102103
- Added a cleaner Indent and Un-Indent method; for WiPy too
103104
- Removed the attempt to recover from out-of-memory situations: did not work.
104105
- 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.
112+

0 commit comments

Comments
 (0)