REDROOM
PHP 8.0.30
Path:
Logout
Edit File
Size: 1006 B
Close
//opt/alt/python37/share/doc/alt-python37-editor/README.md
Text
Base64
`python-editor` is a library that provides the `editor` module for programmatically interfacing with your system's $EDITOR. Examples -------- ```python import editor commit_msg = editor.edit(contents="# Enter commit message here") ``` Opens an editor, prefilled with the contents, `# Enter commit message here`. When the editor is closed, returns the contents in variable `commit_msg`. ```python import editor editor.edit(file="README.txt") ``` Opens README.txt in an editor. Changes are saved in place. How it Works ------------ `editor` first looks for the ${EDITOR} environment variable. If set, it uses the value as-is, without fallbacks. If no $EDITOR is set, editor will search through a list of known editors, and use the first one that exists on the system. For example, on Linux, `editor` will look for the following editors in order: * vim * emacs * nano When calling the `edit()` function, `editor` will open the editor in a subprocess, inheriting the parent process's stdin, stdout
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 2
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
LICENSE
11.06 KB
lrw-r--r--
2015-01-10 21:35:21
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
README.md
1006 B
lrw-r--r--
2015-01-11 04:29:46
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).