Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | terminal: Create terminal-specific action signals using a dict | Sören Tempel | 2021-06-01 | 1 | -7/+10 |
| | |||||
* | Add command-line flag to hide the vertical scrollbar | Sören Tempel | 2021-06-01 | 2 | -2/+8 |
| | | | | | Unfortunately, it does not seem to be possible to hide the scrollbar using the standard Gtk CSS configuration mechanism. | ||||
* | README.md: Update FAQ to mention implemented buffer search | Sören Tempel | 2021-06-01 | 1 | -2/+2 |
| | |||||
* | TODO.txt: Add todo entry regarding echo mode | Sören Tempel | 2021-05-31 | 1 | -1/+4 |
| | |||||
* | README.md: Fix font configuration in example CSS configuration file | Sören Tempel | 2021-05-31 | 1 | -4/+8 |
| | |||||
* | README.md: Change cursor color too in configuration example | Sören Tempel | 2021-05-31 | 1 | -0/+1 |
| | |||||
* | completion: Fix check for absolute path | Sören Tempel | 2021-05-31 | 1 | -1/+1 |
| | |||||
* | README.md: Update features section | Sören Tempel | 2021-05-31 | 1 | -7/+4 |
| | |||||
* | TODO.txt: Update | Sören Tempel | 2021-05-31 | 1 | -2/+0 |
| | |||||
* | Document limitation of __clear_view | Sören Tempel | 2021-05-31 | 1 | -0/+1 |
| | |||||
* | Add comment to update_size | Sören Tempel | 2021-05-31 | 1 | -0/+6 |
| | |||||
* | Preliminary tab completion support | Sören Tempel | 2021-05-31 | 5 | -3/+136 |
| | |||||
* | Scroll to string matched by SearchBar | Sören Tempel | 2021-05-30 | 2 | -4/+7 |
| | |||||
* | terminal: Restore focus to TermView after closing SearchBar | Sören Tempel | 2021-05-30 | 1 | -0/+9 |
| | |||||
* | Preliminary TextBuffer SearchBar support | Sören Tempel | 2021-05-30 | 3 | -3/+83 |
| | | | | | | Still lacking some configuration options (highlight all, case insensitive search, …) and focus is not currently restored to the TermView on close currently. | ||||
* | Add ctrl+l keybinding to clear everything except current line | Sören Tempel | 2021-05-29 | 3 | -2/+11 |
| | |||||
* | Only import gi (and specify Gtk version) once | Sören Tempel | 2021-05-29 | 4 | -9/+2 |
| | |||||
* | README.md: Update short description | Sören Tempel | 2021-05-29 | 1 | -1/+1 |
| | |||||
* | terminal: Reduce priority of PTY Source | Sören Tempel | 2021-05-29 | 1 | -0/+1 |
| | | | | | With the default priority, the rendering thread would starve if the PTY already has input ready. For example, when executing yes(1). | ||||
* | Merge branch 'limit-scroll-buffer' | Sören Tempel | 2021-05-29 | 4 | -10/+41 |
|\ | |||||
| * | Limit amount of lines stored in buffer using command-line flag | Sören Tempel | 2021-05-29 | 3 | -6/+5 |
| | | |||||
| * | termview: Allow limiting the amount of lines stored in used buffer | Sören Tempel | 2021-05-29 | 1 | -4/+36 |
|/ | |||||
* | TODO.txt: Update | Sören Tempel | 2021-05-26 | 1 | -3/+7 |
| | |||||
* | Update documentation to reflect addition of history support | Sören Tempel | 2021-05-26 | 2 | -2/+1 |
| | |||||
* | history: simplify get_entry query even further | Sören Tempel | 2021-05-26 | 1 | -2/+1 |
| | | | | | | Since 61ca4b802c7df75de8a31c6e409eeae15190accf the explicit size check should no longer be needed, i.e. offset selects nothing already if the offset exceeds the amount of available entries. | ||||
* | terminal: Reset self.reset_history_index() directly | Sören Tempel | 2021-05-25 | 1 | -5/+3 |
| | | | | | after reaching current entry. While at it, also attempt to clarify the comment. | ||||
* | Clear the line if Down is pressed at the most recent history entry | sterni | 2021-05-25 | 1 | -5/+16 |
| | | | | | | | | | | | This mimicks the behavior familiar from most shells. We also make sure that this doesn't happen when we hit the oldest history entry -- in that case we will just do nothing if Up is pressed. To implement this correctly we need to distinguish between a position in the history and no position in the history. We encode the latter using `None` and just call `reset_history_index()` in case we encounter it to reacquire a point of reference. | ||||
* | terminal: Use single case distinction to set hscroll/wrapmode | Sören Tempel | 2021-05-25 | 1 | -4/+14 |
| | | | | | Makes the code a bit more readable IMHO. Also add a comment explaining why we can't use use automatic horizontal scrolling in the first place. | ||||
* | Add workaround for annoying scrollbar if wordwrap is enabled | sterni | 2021-05-25 | 2 | -1/+7 |
| | | | | | | | | | | | | | | | | | | | | | | | | | There is an issue [1] in GTK 3 which causes the automatic hyphenation of GtkTextViews to cause a horizontal scroll bar to appear despite it being not necessary (in our case the horizontal scrollbar is rendered over the hyphens which is hardly cause for concern). Ideally we would just disable auto hyphenation, but this doesn't seem to be possible [2] in GTK 3 yet. As a workaround we just disable horizontal scrolling altogether in in update_wrapmode() if wordwrap is enabled. While we're at it add a note about the GTK 4 feature [3] which would allow us to disable auto hyphenation. For GTK 3 it seems to require to set a pango [4] attribute in the pango layout used for rendering the widget which is not exposed in a modifiable way by GtkTextView unfortunately -- or at least I haven't been able to figure out how the desired result could be achieved. [1]: https://gitlab.gnome.org/GNOME/gtk/-/issues/2384 [2]: https://gitlab.gnome.org/GNOME/gtk/-/issues/2530 [3]: https://docs.gtk.org/gtk4/property.TextTag.insert-hyphens.html [4]: See these solutions of other projects that ran into this issue: https://github.com/mate-desktop/caja/pull/1334 https://gitlab.gnome.org/GNOME/nautilus/-/merge_requests/482 | ||||
* | history: simplify get_entry query | Sören Tempel | 2021-05-25 | 2 | -3/+5 |
| | | | | | By sorting rows in descending order instead of performing an arithmetic operation on the maximum value. | ||||
* | history: Add explicit ORDER BY to get_entry | Sören Tempel | 2021-05-25 | 1 | -1/+1 |
| | | | | Should be the default behaviour though. | ||||
* | README.md: Add notcurses to related work | Sören Tempel | 2021-05-24 | 1 | -0/+1 |
| | |||||
* | 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 |
| |