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
+9-3Lines changed: 9 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ A small text editor written in Python running on PYBoard and WiPy, allowing to e
13
13
14
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.
15
15
16
-
The editor works also well in a Linux or MAC terminal environment, with both python3 and micropython. For that purpose, a small main() section is embedded, which when called with CPython also accepts data from a pipe or redirection.
16
+
The editor works also well in a Linux or MAC terminal environment (and also in some terminal apps of Android - tested with Termux), with both python3 and micropython. For that purpose, a small main() section is embedded, which when called with CPython also accepts data from a pipe or redirection.
17
17
18
18
**Files:**
19
19
@@ -28,7 +28,7 @@ The editor works also well in a Linux or MAC terminal environment, with both pyt
28
28
a) find_in_file() supporting regular expressions,
29
29
b) line_edit() supporting the cursor left/right/home/end keys, and
30
30
c) expandtabs() and packtabs() with a second argument for tabsize (not for pye, but maybe useful)
31
-
- strip.sh: sample Shell script which creates the different variants out of pye.py using cpp, including variants of wipye.py with either speed up scrolling or support replace or support got bracket.
31
+
- strip.sh: sample Shell script which creates the different variants out of pye.py using cpp, including all variants of wipye.py with either speed up scrolling or support replace or support goto bracket or support indent/un-indent or support mouse.
32
32
- pye_vt.py: a variant of pye.py, where all directly screen related functions are placed into a separate class. That's a better style, however it uses more memory. This file is just given as exmaple and not maintained.
33
33
34
34
**Short Version History**
@@ -161,7 +161,13 @@ The final code saving is just a few hundred bytes, so it's still not clear to me
161
161
**2.2** Further cleaning and some slight improvements
162
162
- Moved error catching one level up to the function pye(), catching load-file errors too.
163
163
- If open file names a directory, the list of files is loaded to the edit buffer.
164
-
- Ctrl-V in line edit mode gets the first line of the paste buffer.
164
+
- Ctrl-V in line edit mode inserts the first line of the paste buffer
165
165
- The WiPy version does not support undo for Indent/Un-indent, even if Indent is enabled. It is too memory consuming at runtime. It's questionable whether this is needed at all.
166
166
- And of course: update of the doc file
167
167
168
+
**2.3** Minor fixes
169
+
- Catched file not found errors when starting pye, introduced in version 2.2
170
+
- Added a flag to pye2 such that it supports both vertical cursor movement types
171
+
- use uos.stat with micropython, since os.stat is not supported on linux-micropython
172
+
- When opening a directory, replace the name '.' by the result of os.getcwd(), avoiding error 22 of stat() call on PyBoard and WiPy
0 commit comments