Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merge branch 'history' | Sören Tempel | 2021-05-24 | 4 | -0/+138 |
|\ | |||||
| * | history: Clarify HISTFILE comment | Sören Tempel | 2021-05-24 | 1 | -1/+2 |
| | | |||||
| * | history: add docstring to History class | Sören Tempel | 2021-05-24 | 1 | -0/+4 |
| | | |||||
| * | history: Add To-Do regarding employed SQL queries | Sören Tempel | 2021-05-24 | 1 | -0/+2 |
| | | |||||
| * | history: add docstring to get_entry | Sören Tempel | 2021-05-24 | 1 | -0/+5 |
| | | |||||
| * | Make sure history does not go out-of-bounds | Sören Tempel | 2021-05-24 | 2 | -5/+14 |
| | | | | | | | | | | | | Return None if no history entry was found and reset the offset if so. Without this patch the offset would be continuously incremented/decrement. | ||||
| * | history: Use .rstrip() for removing trailing newlines | Sören Tempel | 2021-05-24 | 1 | -5/+2 |
| | | |||||
| * | history: Strip entries if HISTSIZE is exceeded | Sören Tempel | 2021-05-24 | 1 | -2/+15 |
| | | |||||
| * | Add preliminary support for executable-specific history | Sören Tempel | 2021-05-24 | 4 | -0/+107 |
|/ | | | | | | The current executable is determined by using tcgetpgrp on the PTY file descriptor. All history entries are stored in an SQL lite database on a per-line basis. | ||||
* | terminal: Use Gtk.CheckMenuItem for config options | Sören Tempel | 2021-05-24 | 1 | -6/+3 |
| | |||||
* | README.md: Add pager FAQ | Sören Tempel | 2021-05-24 | 1 | -0/+9 |
| | |||||
* | Make wordwrap configurable using context menu | Sören Tempel | 2021-05-24 | 1 | -14/+25 |
| | |||||
* | README.md: Mention keybinding configuration | Sören Tempel | 2021-05-24 | 1 | -0/+2 |
| | |||||
* | Use activate instead of select signal for MenuItem | Sören Tempel | 2021-05-24 | 1 | -1/+1 |
| | |||||
* | Toggle autoscroll via context menu | Sören Tempel | 2021-05-24 | 1 | -0/+21 |
| | |||||
* | terminal: Autoscroll by default | Sören Tempel | 2021-05-24 | 1 | -4/+11 |
| | | | | | This should be made configurable using the context menu and/or a keybinding in future commits. | ||||
* | terminal: Use configure-event to detect resize | Sören Tempel | 2021-05-24 | 1 | -1/+1 |
| | |||||
* | TODO.txt: Update | Sören Tempel | 2021-05-24 | 1 | -5/+1 |
| | |||||
* | Add custom delete-from-cursor implementation | Sören Tempel | 2021-05-23 | 1 | -0/+21 |
| | | | | | | | This one checks for the output point explicitly and does not allow movements to go beyond it. To test this, try a shell with `PS1='>'` (i.e. no space after the prompt character) and try ctrl+w. Without this patch, words in the previous line would be deleted. | ||||
* | Launch $SHELL by default if it is set | sternenseemann | 2021-05-23 | 1 | -1/+4 |
| | | | | | | | | | | | | In an user environment (which saneterm would usually be executed in) $SHELL should point to the current user's login shell as per environ(7). On startup, check if the variable is set and use it to populate the default command to run if it is, otherwise fall back to `sh` like before. I believe this is the correct change even if it gives users (including me) more trouble since many login shells people will use (like fish) don't work well in saneterm, whereas /bin/sh usually will work fine. | ||||
* | Enable <ctrl>w keybinding by default | Sören Tempel | 2021-05-23 | 1 | -1/+3 |
| | |||||
* | Remove code duplication in cursor_at_{end,out} | Sören Tempel | 2021-05-23 | 1 | -10/+7 |
| | |||||
* | termview: Ensure that cursor is not part of a selection | Sören Tempel | 2021-05-23 | 1 | -0/+6 |
| | | | | | | | Otherwise, when typing a word directly after the output point selecting this word and attempting to delete it using backspace doesn't work. Seems to me, if text is selected Gtk treats the beginning of this selected test as the current cursor position. | ||||
* | Unbind ctrl+v | Sören Tempel | 2021-05-23 | 1 | -0/+3 |
| | |||||
* | Use relative imports | sterni | 2021-05-23 | 3 | -4/+4 |
| | | | | | | | | | | Seems to make things easier when actually installing saneterm (or at least I wouldn't know how to make it work without relative or absoulte imports). However this breaks executing the __main__.py script directly which is replaceable by using python -msaneterm which seems fine. Preserving the __main__.py seems to only be possible using self modifying PYTHOPATH which is just ugly. | ||||
* | Configure TermView input hints | Sören Tempel | 2021-05-23 | 1 | -0/+2 |
| | |||||
* | Implement support for retrieving terminal windows size | Sören Tempel | 2021-05-23 | 1 | -0/+27 |
| | | | | | Even if TUIs are not supported, this is used by some applications (most notably) ls(1) for outputting text in multiple columns. | ||||
* | termview: Use a monospaced font | Sören Tempel | 2021-05-23 | 1 | -0/+1 |
| | | | | | Required by application such as ls which assume that every printed character has the same width. | ||||
* | Add ctrl+j binding | Sören Tempel | 2021-05-23 | 1 | -0/+1 |
| | |||||
* | Add binding for ctrl+h | Sören Tempel | 2021-05-23 | 1 | -0/+1 |
| | |||||
* | DESIGN.md: Document cursor-specific handling of termios CCs | Sören Tempel | 2021-05-22 | 1 | -3/+5 |
| | |||||
* | Ignore termios control characters if cursor is not at end | Sören Tempel | 2021-05-22 | 2 | -1/+11 |
| | | | | | | | To me it seems somewhat unintuitive if ctrl+d causes VEOF if your cursor is not at the point where you would normally enter the next character. With this commit, all termios control keybindings are a NOPs in this case. | ||||
* | termview: Split cursor_at_end method from backspace | Sören Tempel | 2021-05-22 | 1 | -5/+6 |
| | |||||
* | Rename input.py to keys.py | Sören Tempel | 2021-05-22 | 2 | -11/+13 |
| | | | | Also move default control character mappings to this module. | ||||
* | DESIGN.md: Document special VEOF handling | Sören Tempel | 2021-05-22 | 1 | -1/+3 |
| | |||||
* | terminal: Add support for VEOF | Sören Tempel | 2021-05-22 | 1 | -0/+4 |
| | |||||
* | saneterm: Separate flush from __end_user_action | Sören Tempel | 2021-05-22 | 1 | -12/+16 |
| | | | | Useful for flushing buffer on VEOF. | ||||
* | Preliminary support for scrolling | Sören Tempel | 2021-05-22 | 1 | -1/+5 |
| | |||||
* | Move control key definition to dictionary | Sören Tempel | 2021-05-22 | 1 | -2/+8 |
| | |||||
* | DESIGN.md: Mention canonical mode issues with intercepting | Sören Tempel | 2021-05-22 | 1 | -5/+8 |
| | |||||
* | Add keybinding for VSUSP (ctrl+z) | Sören Tempel | 2021-05-22 | 1 | -0/+1 |
| | |||||
* | Generalize support for termios-keybindings | Sören Tempel | 2021-05-22 | 3 | -13/+30 |
| | |||||
* | Add comment regarding potential quirk of interrupt method | Sören Tempel | 2021-05-22 | 1 | -0/+4 |
| | |||||
* | DESIGN.md: Initialize | Sören Tempel | 2021-05-22 | 1 | -0/+85 |
| | | | | Try to sort my own thoughts on handling of control characters. | ||||
* | README.md: Fix typo (proposes → propose) | Sören Tempel | 2021-05-20 | 1 | -1/+1 |
| | |||||
* | README.md: Fix setuptools link | Sören Tempel | 2021-05-20 | 1 | -1/+1 |
| | |||||
* | TODO.txt: Update | Sören Tempel | 2021-05-20 | 1 | -5/+4 |
| | |||||
* | README.md: Add usage section | Sören Tempel | 2021-05-20 | 1 | -0/+11 |
| | |||||
* | Don't start shell with clean environment | Sören Tempel | 2021-05-20 | 1 | -1/+2 |
| | |||||
* | Read up-to 4096 bytes in handle_pty callback | Sören Tempel | 2021-05-20 | 1 | -2/+1 |
| |