Commit Graph

39 Commits

Author SHA1 Message Date
Thomas Hurst 9d183ed5e1 Introduce X session support by way of gnome.ui.
This involves moving cwd detection and url_show into class Terminator, since we need to initialize gnome earlier.
2008-08-29 19:18:31 +01:00
Chris Jones f020eaa32b Keep a note of when we are using a custom font size, so we don't override it in reconfigure_vte. Closes #256335 2008-08-26 22:24:36 +01:00
Thomas Hurst 233fd9630b Make search actually only search valid buffer ranges. 2008-08-13 00:17:40 +01:00
Thomas Hurst b02ffdc210 Add a basic scrollback search function, attached to Ctrl-Shift-F for now. Type, hit Enter to search, Enter to continue, and Escape to cancel the search (with the input gadget having focus).
A bit slow because VTE's get_text* API is awful.
2008-08-12 02:12:30 +01:00
Thomas Hurst 07457a29bd Style; remove double lines after some methods. 2008-08-11 20:06:41 +01:00
Thomas Hurst 3a7822253a Fix a few missed keybindings. 2008-08-11 19:30:04 +01:00
Thomas Hurst acaa153810 Style; put method bodies on seperate lines in keeping with the rest. 2008-08-11 19:16:10 +01:00
Thomas Hurst e65e396d32 Hook up new keybinding code. Making them configurable shouldn't be far away... 2008-08-11 19:02:14 +01:00
Thomas Hurst f96018f0bc Use TerminatorTerm's get_window_title(), rather than everyone asking vte and failing to handle it properly. 2008-08-07 23:07:21 +01:00
Thomas Hurst 4c0e500c7b Always set some sort of title; if vte's title is None, use the command the terminal is running.
Add an option to spawn a telnet instance to the local debug server in a tab.  newtab() and splitaxis() now support a command argument for this.
2008-08-07 21:34:47 +01:00
Chris Jones 807921372b Handle creating popup menus with far less crack, and for kicks, not occasionally spit backtraces trying to create menus. For bonus points, also don't pass the event onto the widget 2008-08-06 23:12:45 +01:00
Thomas Hurst d51ab3a7e2 Change window titles from Terminator: Title to Title - Terminator. 2008-08-05 11:28:46 +01:00
Thomas Hurst 2d6f1c0485 r459 breaks; regexp probing, since \< is valid in both POSIX and GNU regexps; they just don't mean the same thing. This means on !GNU, URL matching silently breaks and POSIX word boundries are never tried.
Since the VTE-warning is annoying people, rather than back it out, try to make everyone happy; Linux now only uses GNU, !Linux always probes, and there's now a try_posix_regexp configuration option who's default reflects this.  Hopefully we will Just Work in most environments.
2008-08-03 03:09:38 +01:00
Chris Jones bcb60d1807 swap match adding order to try the Linux friendly one first. This should reduce reports of the libvte warning as being an error 2008-08-02 23:32:10 +01:00
Thomas Hurst 29c2d3e44d Make -x work properly. This should close #247330 once and for all.
Refactor spawn_child to move path and shell lookups into their own methods.

Make command a string for -e and a list for -x to distinguish them.

If command is a string, let the shell deal with it, if command is a list,
do a path lookup and run it directly.
2008-07-20 22:15:14 +01:00
Emmanuel Bretelle 0e95abf66f only enable expose-event when in the drag_motion method 2008-07-17 22:09:41 +01:00
Thomas Hurst e3d3118d67 Tighten some excepts so we don't silently treat real errors as simple ImportErrors 2008-07-17 18:44:21 +01:00
Thomas Hurst b602ecfe9c Improve formatting 2008-07-17 18:32:24 +01:00
Chris Jones 6e4e179aac move subprocess to the right place 2008-07-17 00:28:04 +01:00
Thomas Hurst 15ba71d766 Always spawn commands via a shell, similar to xterm. This makes terminator -e "/bin/bash -c /usr/bin/python" work.
This also makes things like -e "cd $HOME && bash" work; the shell does it for us.  In this respect we are at least better than gnome-terminal.

This has the "disadvantage" that if you don't set $SHELL and don't have a known shell installed, your custom command will no longer save you.  Also if you have a $SHELL which doesn't support -c 'command', it breaks.  These users deserve their pain.

Resolves lp#247330, I think.
2008-07-16 23:13:54 +01:00
Emmanuel Bretelle 18e58148a4 Migrating the DnD overlay code in an expose event
as this seems to be the only way to have an overlay dran with no flicker
2008-07-16 21:00:43 +01:00
Emmanuel Bretelle 735ae78341 well, lets try this 2008-07-16 20:27:16 +01:00
Emmanuel Bretelle d26fcec77e DnD overlay improvement
LP#249065 if composite is disable, dnd is flickering
2008-07-16 20:17:53 +01:00
Chris Jones aeebfea852 revert revision 442. LP #245291 isn't sanely fixable by us. vte needs to expose which regexp library it is using 2008-07-13 23:16:19 +01:00
Chris Jones 994d11eb80 let's apply the boundary test the right way around, and also learn to spell 2008-07-13 01:27:08 +01:00
Chris Jones 95cee4485b This should fix LP #245291 2008-07-13 01:12:11 +01:00
Emmanuel Bretelle cd3013389d fixing LP#247907 and answer#38895
correct typo in terminatorlib/terminatorterm.py
2008-07-12 16:26:33 +01:00
Nicolas Valcárcel c3aa93eb05 Changed Maximise/Unmaximise underlining as per keybinding 2008-07-11 18:56:44 -05:00
Thomas Hurst c877b63c40 Terminate a string. 2008-07-06 16:22:22 +01:00
Chris Jones b240340378 people with python-gnome installed who aren't running gnome need this to be called 2008-07-06 15:54:10 +01:00
Thomas Hurst cc73d436ca openurl is no longer global; add some self.'s to make it work. 2008-07-04 07:29:32 +01:00
Chris Jones 88eb16ce1e tidy up a little in preparation for release 2008-07-03 23:48:29 +01:00
Chris Jones c60845cbf9 not sure that this is useful, but whatever 2008-07-03 22:45:28 +01:00
Chris Jones c20ae50ce0 Add some debugging to the URL opening code 2008-07-03 16:26:04 +01:00
Chris Jones ce0266b0e4 little change to make sure we don't get given gtk1. seems pretty unlikely to happen, but we might as well handle it nicely 2008-07-02 10:16:52 +01:00
Chris Jones f92cb72a6a Hook -d up to terminatorlib.config.debug properly. Closes LP #243753 2008-06-28 21:20:49 +01:00
Emmanuel Bretelle d34496416f Closes LP#242816
Adds a close button to the terms.
We might need to visually inform about the number of terms in a tab
2008-06-27 18:11:24 +01:00
Chris Jones b4ef849f2b oops, don't need this twice here 2008-06-27 01:10:02 +01:00
Chris Jones d38a42b580 split Terminator and TerminatorTerm into their own library files 2008-06-27 00:24:52 +01:00