Commit Graph

753 Commits

Author SHA1 Message Date
Florian Bruhin
c188c6986d Call on_mode_entered only once for hints. 2014-09-25 19:06:38 +02:00
Florian Bruhin
6b459f43f1 Improve :debug-all-objects output. 2014-09-25 18:17:52 +02:00
Florian Bruhin
7b8829286c Merge branch 'objreg' 2014-09-25 08:08:08 +02:00
Florian Bruhin
78949a8c1b Use object registry for hintmanager. 2014-09-25 07:49:45 +02:00
Florian Bruhin
df5ac3ab2f Use object registry for keyparsers. 2014-09-25 07:41:18 +02:00
Florian Bruhin
8421ff7ad0 Fix :restart when installed as Python egg with launcher 2014-09-25 07:07:27 +02:00
Florian Bruhin
4783df8c32 Avoid download_get signal. 2014-09-25 00:29:29 +02:00
Florian Bruhin
387622623d Detach meta object registry from application. 2014-09-24 07:27:32 +02:00
Florian Bruhin
b0a9ecf094 Detach object registry from application. 2014-09-24 07:13:53 +02:00
Florian Bruhin
aa646463b0 Also use objreg API in app 2014-09-24 07:10:17 +02:00
Florian Bruhin
3f02451828 Move object registry to its own file. 2014-09-24 07:06:45 +02:00
Florian Bruhin
908a69af18 Better __repr__s 2014-09-23 23:31:17 +02:00
Florian Bruhin
9aa65a2341 Fix lint and bugs 2014-09-23 23:17:36 +02:00
Florian Bruhin
2b60cdb64c Object names cleanup 2014-09-23 23:05:55 +02:00
Florian Bruhin
04be586bca Use object registry for keyconfig. 2014-09-23 22:37:41 +02:00
Florian Bruhin
fe5d9939b9 Move debug console from app to utilcmd 2014-09-23 22:31:26 +02:00
Florian Bruhin
90820126b4 Update comment 2014-09-23 22:29:03 +02:00
Florian Bruhin
953e50721c Use object registry for config. 2014-09-23 22:28:28 +02:00
Florian Bruhin
b818bc5896 Use object registry for downloadmanager. 2014-09-23 22:22:03 +02:00
Florian Bruhin
7a7b397c15 Use object registry for cmd-history. 2014-09-23 22:17:25 +02:00
Florian Bruhin
8af8e3530f Use object registry for args. 2014-09-23 22:13:10 +02:00
Florian Bruhin
37dbfde6ac Use object registry for app. 2014-09-23 22:06:46 +02:00
Florian Bruhin
a32ed36ba6 Use object registry for mainwindow. 2014-09-23 22:05:00 +02:00
Florian Bruhin
a76c4c8ba5 Use object registry for tabbedbrowser. 2014-09-23 22:01:46 +02:00
Florian Bruhin
487300f926 Use object registry for prompter. 2014-09-23 21:56:29 +02:00
Florian Bruhin
ffaf4f0cb0 Use object registry for completion. 2014-09-23 21:50:34 +02:00
Florian Bruhin
40812f81b6 Use object registry for status-cmd. 2014-09-23 21:50:34 +02:00
Florian Bruhin
9a3ceebf2e Use object registry for completer. 2014-09-23 21:39:42 +02:00
Florian Bruhin
5f45d3de60 Use object registry for modeman. 2014-09-23 20:02:48 +02:00
Florian Bruhin
d441471a17 Use object registry for app._timers. 2014-09-23 19:53:48 +02:00
Florian Bruhin
58be65f4f0 Use object registry for messagebridge. 2014-09-23 19:53:48 +02:00
Florian Bruhin
1d535ae300 Use object registry for stateconfig. 2014-09-23 19:53:48 +02:00
Florian Bruhin
21bdf517b7 Use object registry for searchrunner. 2014-09-23 19:53:48 +02:00
Florian Bruhin
68cfe499fc Use object registry for rl_bridge. 2014-09-23 19:53:48 +02:00
Florian Bruhin
10eb849ae7 Fix lint 2014-09-23 19:53:47 +02:00
Florian Bruhin
aa681f5ad2 Merge get_all_widgets into get_all_objects. 2014-09-23 19:53:47 +02:00
Florian Bruhin
30209f531e Improve get_all_objects output. 2014-09-23 19:53:47 +02:00
Florian Bruhin
9e5d8b2480 Add a meta-registry. 2014-09-23 19:53:47 +02:00
Florian Bruhin
dce5289b69 Rename global registry from obj to registry. 2014-09-23 19:53:47 +02:00
Florian Bruhin
dc7ad3e2de Use a normal UserDict for ObjectRegistry. 2014-09-23 19:53:46 +02:00
Florian Bruhin
ca2be960df Use object registry for cache/cookiejar. 2014-09-23 19:53:20 +02:00
Florian Bruhin
2694ab2e80 app: Make commandrunner/debugconsole private. 2014-09-23 19:51:52 +02:00
Florian Bruhin
097645ae8e app: Support object registry in get_all_objects. 2014-09-23 19:51:52 +02:00
Florian Bruhin
981604fc8b Add initial object registry. 2014-09-23 19:51:52 +02:00
Florian Bruhin
1ce1c91d69 app: Refactor get_all_objects. 2014-09-23 19:51:52 +02:00
Florian Bruhin
812a0fdd41 Merge branch 'newcmd'
Conflicts:
	.flake8
	pkg/PKGBUILD.qutebrowser-git
	qutebrowser/browser/commands.py
	qutebrowser/browser/hints.py
	qutebrowser/config/configdata.py
	qutebrowser/network/qutescheme.py
	qutebrowser/test/config/test_configtypes.py
	qutebrowser/utils/utils.py
2014-09-22 19:09:48 +02:00
Florian Bruhin
5eef6d422d Better exception formatting and handling. 2014-09-16 08:20:19 +02:00
Florian Bruhin
f5ecba0d07 Move exit logging to app.py for Python2 compatibility. 2014-09-15 21:55:38 +02:00
Florian Bruhin
ab0e600977 Error if unknown sections are in the config. 2014-09-12 17:53:27 +02:00
Florian Bruhin
4fde56a942 Allow binding keys. 2014-09-09 23:05:28 +02:00
Florian Bruhin
e3d16f3bbe Full read-write support for key config. 2014-09-09 22:18:00 +02:00
Florian Bruhin
414ab88a0e Fix lint 2014-09-09 18:32:18 +02:00
Florian Bruhin
6f03f08111 Make new key config work (readonly) 2014-09-09 07:43:27 +02:00
Florian Bruhin
a811f8cb07 Start initial newcmd stuff. 2014-09-08 07:36:17 +02:00
Florian Bruhin
71796e9528 Fix statusbar text when entering insert mode via hints.
Before, hints cleaned the statusbar text delayed, clearing the "==== INSERT
MODE ====" in the statusbar.

Now we only reset the text if it wasn't changed.
2014-09-03 11:51:24 +02:00
Florian Bruhin
ccfc0b3c19 Get rid of most @property's.
They were problematic because they're executing hidden code, and also PyQt
hides exceptions happening inside them.
2014-09-02 23:37:47 +02:00
Florian Bruhin
428d70c746 Add a network disk cache. 2014-09-01 19:42:21 +02:00
Florian Bruhin
6d2acc244c Use an LRU cache for stylesheets 2014-08-28 20:14:40 +02:00
Florian Bruhin
562388fe52 Rename config.conftypes to config.configtypes. 2014-08-26 21:41:41 +02:00
Florian Bruhin
ce4a5affa4 Rename commands.utils to commands.cmdutils. 2014-08-26 20:48:39 +02:00
Florian Bruhin
5adf48ed3d Rename utils.url to utils.urlutils. 2014-08-26 20:33:41 +02:00
Florian Bruhin
8bd64382bd Rename utils.qt to utils.qtutils. 2014-08-26 20:25:11 +02:00
Florian Bruhin
d9a8cbe7ad Rename utils.misc to utils.utils 2014-08-26 20:20:17 +02:00
Florian Bruhin
e04b31eb90 Remove qt_ prefix from qtutils functions. 2014-08-26 19:23:06 +02:00
Florian Bruhin
d625cde28c Clean up imports 2014-08-26 19:10:14 +02:00
Florian Bruhin
17dd4732ae Add explicit encoding to open() calls. 2014-08-20 20:33:14 +02:00
Florian Bruhin
2a40002c2d Add instance for :debug-console command. 2014-08-13 05:15:21 +02:00
Florian Bruhin
07fda5818c Add broken debugging console. 2014-08-13 00:13:32 +02:00
Florian Bruhin
5a88028738 Rename qutebrowser.commands.managers module to .runners. 2014-08-06 15:58:08 +02:00
Florian Bruhin
aebce80b2b Rename {Command,Search}Manager to ...Runner 2014-08-06 15:38:25 +02:00
Florian Bruhin
4e200653a0 Enable python warnings with --debug 2014-08-05 22:33:08 +02:00
Florian Bruhin
ee1b136807 Clean up pylint/noqa comments. 2014-08-04 03:47:09 +02:00
Florian Bruhin
de2f267607 Fix restarting/exceptions with URLs with spaces. 2014-08-02 19:49:15 +02:00
Florian Bruhin
b707987be0 Better logging on exit. 2014-08-02 19:40:24 +02:00
Florian Bruhin
3307c5f518 Shut down correctly while being asked a question. 2014-08-02 19:38:02 +02:00
Florian Bruhin
157975b0d4 widgets.webview: Add a cur_url property so the initial URL is available immediately. 2014-08-02 02:35:38 +02:00
Florian Bruhin
f6b26f0d56 Improve interrupt docs 2014-08-02 01:53:27 +02:00
Florian Bruhin
b0cfb281f4 shutdown correctly before mainwindow exists. 2014-08-02 01:12:05 +02:00
Florian Bruhin
2dfc599e3c Interrupt more forcefully with 3 times Ctrl+C. 2014-08-02 00:57:32 +02:00
Florian Bruhin
cdde060135 Call shutdown via a singleShot QTimer. 2014-08-02 00:53:30 +02:00
Florian Bruhin
df0558fb47 Add a --nowindow argument. 2014-08-02 00:47:04 +02:00
Florian Bruhin
9dd688095c Move late shutdown logging out of QApplication. 2014-08-01 23:45:12 +02:00
Florian Bruhin
246cff63ed Use singleShot timer to call QApplication.exit. 2014-08-01 23:26:33 +02:00
Florian Bruhin
b6cd0dd600 Use sys.__stderr__ for faulthandler. 2014-08-01 00:55:18 +02:00
Florian Bruhin
ad1ba4c1f7 Remove eventfilter on shutdown 2014-07-31 23:09:59 +02:00
Florian Bruhin
c27f8b69d6 Trace lines on shutdown with --debug. 2014-07-31 21:21:07 +02:00
Florian Bruhin
682a395936 Shut down tabs while quitting 2014-07-31 20:40:21 +02:00
Florian Bruhin
2358ed7d4c Remove 'Good bye' log 2014-07-31 01:07:43 +02:00
Florian Bruhin
6859ca9301 Fix lint 2014-07-30 18:56:01 +02:00
Florian Bruhin
377706ec54 Handle not found crashlog gracefully 2014-07-30 18:45:56 +02:00
Florian Bruhin
36c4e8940e Remove print we accidentally added. 2014-07-30 18:22:13 +02:00
Florian Bruhin
77ca7db46a Handle early shutdown better 2014-07-30 18:21:40 +02:00
Florian Bruhin
8c78806e1c Shutdown correctly if config is not initialized yet 2014-07-30 18:13:36 +02:00
Florian Bruhin
276315483d Add some more logging to shutdown. 2014-07-30 18:11:35 +02:00
Florian Bruhin
19d0f832ad Handle SIGTERM/SIGINT gracefully. 2014-07-30 18:11:22 +02:00
Florian Bruhin
17220d8ef5 Fix signal imports 2014-07-30 17:50:12 +02:00
Florian Bruhin
11ea911940 Clean up after removing shutdown code 2014-07-30 17:12:20 +02:00
Florian Bruhin
db51a51e5a Add utilcmds and :later command. 2014-07-30 17:05:52 +02:00
Florian Bruhin
cb8af1de31 Merge branch 'shutdown'
Conflicts:
	qutebrowser/widgets/webview.py
2014-07-30 16:39:01 +02:00
Florian Bruhin
425a7fd7c4 Simplify userscript running. 2014-07-29 02:05:15 +02:00
Florian Bruhin
7c8f9bec0f Use enum for keyboard modes. 2014-07-29 00:19:35 +02:00
Florian Bruhin
f86458a3b9 Remove shutdown code 2014-07-27 20:56:42 +02:00
Florian Bruhin
f7304298ab Separate docstrings into command/documentation parts. 2014-07-16 20:09:41 +02:00
Florian Bruhin
4114308193 Log exception on invalid config 2014-07-10 22:39:24 +02:00
Florian Bruhin
0705d6087c Don't catch every ValueError to get failed interpolations 2014-07-10 22:38:09 +02:00
Florian Bruhin
fad22c63d9 Go back to using one NetworkManager per tab 2014-07-10 06:42:52 +02:00
Florian Bruhin
4aab32cc5d Move asking of questions away from Prompt widget 2014-07-02 07:07:03 +02:00
Florian Bruhin
92ff957543 Clean up message API 2014-06-26 07:58:00 +02:00
Florian Bruhin
a083fe69db Add a :report command 2014-06-25 22:22:30 +02:00
Florian Bruhin
f3f04b6f21 Make restart work when frozen 2014-06-24 06:52:49 +02:00
Florian Bruhin
65353773d1 First fix for :restart 2014-06-24 06:43:52 +02:00
Florian Bruhin
b1f9139fd7 Fix lint 2014-06-23 20:33:41 +02:00
Florian Bruhin
81990f792f Avoid using QApplication for downloads 2014-06-23 17:30:28 +02:00
Florian Bruhin
8a8ca0c34f Split utils.misc into utils.{qt,misc} 2014-06-23 07:45:04 +02:00
Florian Bruhin
3443364de1 Fix lint 2014-06-23 07:12:19 +02:00
Florian Bruhin
2690891cbe Better init logging 2014-06-23 06:37:47 +02:00
Florian Bruhin
c21fad491a Don't shut down before crash dialog 2014-06-22 23:57:48 +02:00
Florian Bruhin
bf9e829d4d Don't use .warn on loggers, use .warning instead. 2014-06-22 23:30:44 +02:00
Florian Bruhin
a64775a0f9 Improve logging messages 2014-06-21 22:40:31 +02:00
Florian Bruhin
0dc2ecef46 Check QUrl objects for validity 2014-06-20 23:57:52 +02:00
Florian Bruhin
113221c731 Log some exceptions 2014-06-20 23:26:19 +02:00
Florian Bruhin
03b69c5527 Print debug information if config saving failed. 2014-06-20 22:56:29 +02:00
Florian Bruhin
0fd64419da Remove urlutils.{urlstring,qurl}.
The idea of treating an URL-string and a QUrl as essentially the same data type
got us into all kinds of problems. Now we use QUrl everywhere except at the
borders to the user interface.
2014-06-20 16:33:01 +02:00
Florian Bruhin
d65587128f Add vim modelines to all files. 2014-06-19 09:04:37 +02:00
Florian Bruhin
2b5a1cc322 Add wiget/object list to crash dialog 2014-06-17 23:04:58 +02:00
Florian Bruhin
6cc178aa52 Do some emergency shutdown on an exception. 2014-06-17 22:37:06 +02:00
Florian Bruhin
2388874e82 Delete question if download as cancelled 2014-06-17 11:26:45 +02:00
Florian Bruhin
61e8940ccb Clean up debug methods 2014-06-17 11:12:55 +02:00
Florian Bruhin
1fef2d02b9 Add an :all-objects command and __repr__s 2014-06-17 11:03:42 +02:00
Florian Bruhin
fe99cbc331 Fix crashes after parent-child cleanup. 2014-06-17 10:20:15 +02:00
Florian Bruhin
af9e4ae072 Fix parent/child relationships 2014-06-17 07:17:21 +02:00
Florian Bruhin
17cd86d564 Add an :all-widgets command and useful __repr__s 2014-06-17 06:37:56 +02:00
Florian Bruhin
177e2945b6 Use currying instead of self.sender() where applicable 2014-06-16 22:49:22 +02:00
Florian Bruhin
d76226626f Add debug argument for commands 2014-06-16 09:44:11 +02:00
Florian Bruhin
2114f0cd73 Start adding download model/view 2014-06-12 08:02:44 +02:00
Florian Bruhin
7dd5b1b94e First debugging implementation of downloads 2014-06-10 22:11:17 +02:00
Florian Bruhin
d495ea4644 Move get_qt_args to utils.misc 2014-06-10 11:54:14 +02:00
Florian Bruhin
2f1cd43f9c Change lists to tuples for immutable values 2014-06-06 17:21:35 +02:00
Florian Bruhin
1dbd84b963 Simplify _get_qt_args 2014-06-06 16:44:55 +02:00
Florian Bruhin
1179d84ee8 Process Qt args via argparse 2014-06-06 16:32:57 +02:00
Florian Bruhin
cd8f9e6232 Fix lint 2014-06-05 00:08:08 +02:00
Florian Bruhin
30ce2c98e9 Disable broken :restart for now 2014-06-04 23:17:22 +02:00
Florian Bruhin
da624d54c8 Nicer logging for :restart 2014-06-04 23:09:46 +02:00
Florian Bruhin
af19e6d2e5 Move init to own file qutebrowser.py 2014-06-04 14:11:55 +02:00
Florian Bruhin
104564f6be Init log before creating QApplication 2014-06-04 13:55:46 +02:00
Florian Bruhin
512338d567 Move _parse_args and crash out of Application 2014-06-04 13:51:47 +02:00
Florian Bruhin
57d261ee85 Add a main function to app.py 2014-06-04 13:38:53 +02:00
Florian Bruhin
346ef4ac3d Re-add command argument which was accidentally removed. 2014-06-04 13:37:42 +02:00
Florian Bruhin
a196bc5da9 Add arguments to choose harfbuzz engine 2014-06-04 12:13:51 +02:00
Florian Bruhin
40009970df Add option to configure if js statusbar messages should be shown 2014-06-03 19:17:35 +02:00
Florian Bruhin
62908e97c1 Fix javascript statusbar messages 2014-06-03 18:00:53 +02:00
Florian Bruhin
cc1ea76d9d Clean up shutdown 2014-06-03 16:48:21 +02:00
Florian Bruhin
04c3a912e8 Uninstall Qt message handler on quit.
This caused segfaults while exiting for some reason.
2014-06-03 15:19:48 +02:00
Florian Bruhin
968bb3d430 Move selection_changed to Completer 2014-06-03 13:37:11 +02:00
Florian Bruhin
7d440426eb Move on_update_completion 2014-06-03 12:59:50 +02:00
Florian Bruhin
6d50ebae49 Less verbose exception logging 2014-06-02 23:29:01 +02:00
Florian Bruhin
01f28f3e0f Add -V/--version argument. 2014-05-27 15:46:21 +02:00
Florian Bruhin
fa01bfbbad Add per-tab inspector like dwb.
This also means the webinspector will always be detached / in its own window.
2014-05-26 15:35:05 +02:00
Florian Bruhin
61d4821065 Add configurable confirmation when closing 2014-05-26 16:51:57 +02:00
Florian Bruhin
d00a946497 Set orgname to make inspector settings persistent 2014-05-26 11:47:02 +02:00
Florian Bruhin
5406f92a5b Don't set QT_FATAL_WARNINGS 2014-05-26 09:02:57 +02:00
Florian Bruhin
22b2fb0be0 Rename some commandline options 2014-05-26 09:02:31 +02:00
Florian Bruhin
b37ca744b2 Disable coloring when requested/on Windows/no tty 2014-05-25 20:08:07 +02:00
Florian Bruhin
6825c669b5 Add the ability to filter logging messages 2014-05-23 16:57:08 +02:00
Florian Bruhin
1e256699f8 Add topic-specific loggers 2014-05-23 16:11:55 +02:00
Florian Bruhin
1d5a1a29e8 Simplify calling commands with an instance.
We used to use a signal and a function in app.py which executes the command
handler. Now we instead use QCoreApplication.instance() which makes everything
a lot easier and cleaner.
2014-05-22 16:14:43 +02:00
Florian Bruhin
0c0cb48471 Fix lint 2014-05-22 15:44:16 +02:00
Florian Bruhin
8cddbec9e3 Implement quickmarks 2014-05-22 16:44:47 +02:00
Florian Bruhin
267552fe77 Only re-enable faulthandler when stderr is available 2014-05-22 16:40:04 +02:00
Florian Bruhin
2bcf46194b Add readline-like shortcuts 2014-05-22 10:49:19 +02:00
Florian Bruhin
3a3d8fddee Merge branch 'userscripts' 2014-05-22 08:52:20 +02:00
Florian Bruhin
e7d9a3dc88 Fix completion 2014-05-22 08:40:36 +02:00
Florian Bruhin
8d570b686c Initial userscript support 2014-05-21 19:53:58 +02:00
Florian Bruhin
7c351caf77 Don't warn on prompt keychain bindings 2014-05-20 17:50:09 +02:00
Florian Bruhin
cfd70e7821 Make yes/no questions work 2014-05-20 12:05:14 +02:00
Florian Bruhin
f43549d452 Clean up prompt code 2014-05-20 11:03:55 +02:00
Florian Bruhin
d4c90b4a60 Add proxy authentication 2014-05-20 08:56:56 +02:00
Florian Bruhin
97df8fc172 Move some attributes to dedicated Question object 2014-05-20 08:56:48 +02:00
Florian Bruhin
7ca605ade6 First try at statusbar prompt 2014-05-20 08:56:46 +02:00
Florian Bruhin
f0d1d4ed45 Selectively queue messages rather than unqueueing. 2014-05-19 03:40:10 +02:00
Florian Bruhin
c7cf0aaf9a Clean up webview and move commands 2014-05-17 22:38:07 +02:00
Florian Bruhin
7eb19e2a1e Start implementing message-timeout 2014-05-16 15:33:36 +02:00
Florian Bruhin
7bd6302d13 Connect load_status_changed signal correctly 2014-05-16 07:12:27 +02:00
Florian Bruhin
b91274cfcf Fix some other small bugs with new signal implementation 2014-05-15 22:31:01 +02:00
Florian Bruhin
1ca80fec8e Make stuff run again 2014-05-15 19:02:20 +02:00
Florian Bruhin
d3eaeaac91 First steps at getting rid of signal cache 2014-05-15 17:57:08 +02:00
Florian Bruhin
326280f910 Fix consistency and spelling in docstrings/comments 2014-05-15 16:27:34 +02:00
Florian Bruhin
f97c87628b Handle multi-instance better with crash.log 2014-05-15 15:26:20 +02:00
Florian Bruhin
659fe5126b Display error dialog when started after segfault 2014-05-15 12:20:03 +02:00
Florian Bruhin
8fe4000e41 Split CrashDialog into ExceptionCrashDialog and _CrashDialog 2014-05-15 11:56:22 +02:00
Florian Bruhin
ba2951d0ec Fix lint 2014-05-15 10:56:28 +02:00
Florian Bruhin
78c41fffc9 Add :crash segfault command 2014-05-15 10:33:11 +02:00
Florian Bruhin
a045511962 Use exceptions for command errors 2014-05-14 18:00:40 +02:00
Florian Bruhin
e786fe4e82 Add restart command 2014-05-14 08:56:42 +02:00
Florian Bruhin
f448aeebda Use property to iterate over tabs 2014-05-13 21:25:16 +02:00
Florian Bruhin
bdd0846397 Move python check to separate file 2014-05-13 19:46:57 +02:00
Florian Bruhin
8fddd328f6 Move early init code to own file 2014-05-13 18:01:10 +02:00
Florian Bruhin
bf639602f5 Check if sys.stdout is not None before using it.
When using pythonw (e.g. with cx_Freeze), sys.__stdout__ and sys.stdout
will be None, so we don't need to flush it.

This also means faulthandler won't work correctly, so we don't enabled
it if we don't have an stdout.
2014-05-13 10:38:27 +02:00
Florian Bruhin
512625cee1 Support to show SSL status with URL color 2014-05-12 18:00:44 +02:00
Florian Bruhin
59a89d31fe Add reasons why modes are entered/left 2014-05-09 16:03:46 +02:00
Florian Bruhin
1570fc8a95 Nice error messages on import errors 2014-05-09 11:06:05 +02:00
Florian Bruhin
3b2ae6bcf1 Add warning for dead_actute warning.
Yo dawg, I herd you like warnings!
2014-05-09 06:57:44 +02:00
Florian Bruhin
70c8df095e Switch from appdirs to QStandardPaths 2014-05-08 22:33:24 +02:00
Florian Bruhin
45621b0645 Do a hard exit on crash 2014-05-07 17:29:28 +02:00
Florian Bruhin
68b134b4a9 Don't filter events if mainwindow is not focused 2014-05-07 17:20:01 +02:00
Florian Bruhin
4999a59470 Add pastebin button to crash dialog 2014-05-06 15:36:15 +02:00
Florian Bruhin
1a3ed11070 Quit properly on debugger exit 2014-05-06 12:11:00 +02:00
Florian Bruhin
de7c6a63b4 Fix shutdown of networkmanager 2014-05-06 10:53:38 +02:00
Florian Bruhin
e5000c315d Revert "Use global HintManager"
This reverts commit a76d68f564.

WTF. I thought I reset --hard-ed that one?
2014-05-06 07:11:20 +02:00
Florian Bruhin
3753e87465 Depend on appdirs instead of bundling 2014-05-06 06:22:28 +02:00
Florian Bruhin
8f239b4a95 Add proxy settings 2014-05-05 22:07:41 +02:00
Florian Bruhin
a76d68f564 Use global HintManager 2014-05-05 20:28:29 +02:00
Florian Bruhin
c8fd0937b0 Revert "Use global object dict for global objects"
This reverts commit bf2c7831c8.

This was a bad idea as we need to access some of the main attributes
from commands via instance=...
2014-05-05 20:12:20 +02:00
Florian Bruhin
bf2c7831c8 Use global object dict for global objects 2014-05-05 19:12:47 +02:00
Florian Bruhin
667b255d01 Use QApplication for global singletons 2014-05-05 17:56:14 +02:00
Florian Bruhin
ff272df6e4 Clean up app.py 2014-05-05 16:44:48 +02:00
Florian Bruhin
ae95b5ea3b Basic cookie handling 2014-05-05 16:28:43 +02:00
Florian Bruhin
c9f7d6771a Enable persistent webkit storage 2014-05-04 01:11:19 +02:00
Florian Bruhin
efc613811f Implement numeric hints 2014-05-02 17:53:16 +02:00
Florian Bruhin
be467d5e50 Refactor command argument splitting.
This uses split=True/False as cmdutils.register argument again (because
we would never want to set maxsplit ourselves, only not splitting the
*last* argument makes any sense.

Also this uses shlex for splitting again, like earlier.
2014-05-02 10:28:41 +02:00
Florian Bruhin
8c253ae611 Catch config.NoOptionError when reading config 2014-05-01 21:20:17 +02:00
Florian Bruhin
af6f6b99e9 Catch ValueError when reading config 2014-05-01 19:57:14 +02:00
Florian Bruhin
adfc96cdfa completion: Use textEdited instead of textChanged
This gets rid of _ignore_next and some unneeded logic, since textEdited
won't even emit if we edited it programatically.
2014-04-30 11:52:30 +02:00
Florian Bruhin
995a0d19cc Clean up command exception handling 2014-04-30 10:43:40 +02:00
Florian Bruhin
0d92e34310 Fix/silence checks 2014-04-28 00:05:14 +02:00
Florian Bruhin
8474bbdf6a Rename and reorder config options 2014-04-27 21:21:14 +02:00
Florian Bruhin
9252ef94ca Consistent string chars 2014-04-25 16:53:23 +02:00
Florian Bruhin
c9a25d6309 Catch configparser exceptions on start 2014-04-25 13:55:26 +02:00
Florian Bruhin
3390a4b8d7 Indent fix 2014-04-25 12:33:41 +02:00
Florian Bruhin
6e78f67a81 Rename keyinput stuff 2014-04-25 12:21:01 +02:00
Florian Bruhin
d4b35b6734 Rename {Command,Seach}Parser to *Manager 2014-04-25 12:04:11 +02:00
Florian Bruhin
937196e287 Rename package-private modules to _foo.py 2014-04-25 11:50:30 +02:00
Florian Bruhin
5ee6b2adfa Revert "Remove setting forward_unbound_keys."
This reverts commit d07e22bd91.
2014-04-25 08:40:46 +02:00
Florian Bruhin
a29a9a9b70 Handle Command widget based on modes, not focus 2014-04-25 08:38:11 +02:00
Florian Bruhin
55a8da7f1b Start using KeyParser for command mode 2014-04-25 07:50:21 +02:00
Florian Bruhin
405194d040 Add passthrough mode 2014-04-25 07:13:57 +02:00
Florian Bruhin
b4033ced8b Add generic PassthroughKeyParser, remove InsertKeyParser 2014-04-25 07:09:12 +02:00
Florian Bruhin
d07e22bd91 Remove setting forward_unbound_keys.
It introduced a lot of unnecessary complexity (e.g. tracking KeyReleases
to their KeyPresses...) for little benefit.
2014-04-25 06:54:17 +02:00
Florian Bruhin
926194849c Use normal commands for hint mode 2014-04-24 23:47:02 +02:00
Florian Bruhin
e06583ade2 Use normal command to leave insert mode 2014-04-24 23:09:12 +02:00
Florian Bruhin
8cca182734 Split NormalKeyParser from CommandKeyParser 2014-04-24 22:56:55 +02:00
Florian Bruhin
0def82fe8c Fix lint 2014-04-24 22:49:06 +02:00
Florian Bruhin
9ab8f42e20 s/commandmode/normalmode 2014-04-24 21:37:51 +02:00
Florian Bruhin
9320c813f7 Add set_cmd_text to MessageBridge 2014-04-24 21:28:24 +02:00
Florian Bruhin
d2dc0b7ac5 Add KeyParser for normal mode 2014-04-24 21:12:55 +02:00
Florian Bruhin
c674d96cfe Reorganize input modules into keyinput subpackage 2014-04-24 21:03:45 +02:00
Florian Bruhin
6311deb6b0 Read unbound-keys setting only once 2014-04-24 19:06:51 +02:00
Florian Bruhin
10d7d887ec Pass keypresses to statusbar correctly 2014-04-24 15:47:38 +02:00
Florian Bruhin
5b84848ad9 s/leaved/left/g 2014-04-24 07:01:27 +02:00
Florian Bruhin
95691e1e11 Show passthrough modes in statusbar 2014-04-24 06:59:39 +02:00
Florian Bruhin
afa9c47867 Lint cleanups 2014-04-24 06:45:38 +02:00
Florian Bruhin
5385307582 Register modes explicitely with modemanager. 2014-04-23 23:23:04 +02:00
Florian Bruhin
8f44b56923 Start implementing eventFilter in ModeManager 2014-04-23 23:20:39 +02:00
Florian Bruhin
8b5daad367 Add ModeManager 2014-04-23 21:15:47 +02:00
Florian Bruhin
10acc854c4 Don't reopen opened URLs after crash 2014-04-22 14:02:29 +02:00
Florian Bruhin
1a68bdb9a9 Clean up signal connections 2014-04-22 10:40:33 +02:00
Florian Bruhin
e1b7305e40 Get rid of unneeded text slots in statusbar 2014-04-22 10:00:43 +02:00
Florian Bruhin
d700d962af Add the ability to display persistent messages. 2014-04-22 09:06:17 +02:00
Florian Bruhin
73dfa30a49 Display error message when config validation failed 2014-04-21 22:29:57 +02:00
Florian Bruhin
ee8ba55676 Support esc to abort hinting 2014-04-21 17:17:34 +02:00
Florian Bruhin
d7b87e09c9 Implement modes and hint input. 2014-04-21 15:24:19 +02:00
Florian Bruhin
52c7376402 Split command-related stuff off from KeyParser 2014-04-21 10:45:57 +02:00
Florian Bruhin
39f580d9f1 Cleanup 2014-04-17 17:44:27 +02:00
Florian Bruhin
457e173592 More config cleanup.
This renames the config instance from "config" to "instance" and adds a
convenience get() function in the config module.
2014-04-17 15:26:27 +02:00
Florian Bruhin
b323706f5f Use maxsplit (passed to str.split()) instead bool 2014-04-17 12:06:27 +02:00
Florian Bruhin
7c64e8846a Refresh keybinds when config changes 2014-04-17 11:23:01 +02:00
Florian Bruhin
fc24cb620c Move websettings to own file 2014-04-16 15:49:56 +02:00
Florian Bruhin
4c751d8081 Add webkit settings to config 2014-04-16 13:32:55 +02:00
Florian Bruhin
e878fc538d Fix some checks 2014-04-16 10:02:34 +02:00
Florian Bruhin
a410d56a78 Implement command history 2014-04-16 09:08:56 +02:00
Florian Bruhin
73c319a1ec Add autosave option 2014-04-15 17:28:05 +02:00
Florian Bruhin
04807489b7 Update everything needed when config is changed 2014-04-10 23:30:45 +02:00
Florian Bruhin
aa616e5ac7 Start implementing config changed signal 2014-04-10 18:01:16 +02:00
Florian Bruhin
c5ca0e56be Remove blank lines before """ in docstrings.
pep257 has changed in this regard so we reflect this change.
2014-04-10 14:21:27 +02:00
Florian Bruhin
72ab405040 Handle statusbar messages centrally 2014-04-09 20:47:24 +02:00
Florian Bruhin
2ac9ea0f6a Kinda fix get command 2014-03-10 00:39:15 +01:00
Florian Bruhin
f0f8168ed2 Add a (broken) get command. 2014-03-10 00:39:15 +01:00
Florian Bruhin
f079d6bf3b More config update/adoption 2014-03-10 00:39:14 +01:00
Florian Bruhin
265d8b7580 Avoid circular dependencies 2014-03-10 00:39:14 +01:00
Florian Bruhin
b75fc347dc Fix checks 2014-03-03 21:19:29 +01:00
Florian Bruhin
508d9e347c Swap q/quit for quit command 2014-03-03 21:11:02 +01:00
Florian Bruhin
af0b6901be First kinda working version 2014-03-03 21:06:10 +01:00
Florian Bruhin
97ae3adb4a Working towards using getattr instead 2014-03-03 18:47:42 +01:00
Florian Bruhin
032ccb8b43 Try some broken component register foo 2014-03-03 17:56:53 +01:00
Florian Bruhin
b22b19d881 Start using (broken) decorators 2014-03-03 06:09:23 +01:00
Florian Bruhin
d4df78b75f Add settrace command 2014-02-26 22:29:53 +01:00
Florian Bruhin
ad29867aa6 Remove unneccessary style globals 2014-02-23 18:20:24 +01:00
Florian Bruhin
76a627bb10 Move style related stuff to config.style 2014-02-23 18:15:08 +01:00
Florian Bruhin
3b648a4c0d Move config to config subfolder 2014-02-23 18:14:40 +01:00
Florian Bruhin
5f78b96cb1 Move cur_* methods for TabbedBrowser to CurCommandDispatcher class 2014-02-21 22:00:41 +01:00
Florian Bruhin
42bac07e6b Whitespace adjustments 2014-02-21 20:07:40 +01:00
Florian Bruhin
e47d13d725 Fix initial tab opening 2014-02-21 20:06:42 +01:00
Florian Bruhin
5d32df1d54 Add :version command 2014-02-21 20:00:02 +01:00
Florian Bruhin
90e56e6477 Rename about:... to qute:... 2014-02-21 07:18:04 +01:00
Florian Bruhin
ec1951c56c Move abouthandler to network subpackage 2014-02-20 22:26:25 +01:00
Florian Bruhin
cf2133bb96 Add zoomin/zoomout commands. 2014-02-20 19:55:35 +01:00
Florian Bruhin
b3fa7bba98 Improve version info 2014-02-20 15:32:46 +01:00
Florian Bruhin
c2e3039702 Only hide temporary error message on non-modifiers 2014-02-19 14:57:31 +01:00
Florian Bruhin
b03932400f Simplify displaying text a lot.
This now only has one category of text, and displays it in a
QStackedWidget with the Command.
2014-02-19 14:44:40 +01:00
Florian Bruhin
ab87c8e8b9 Clear temporary text on keypress. 2014-02-19 14:44:38 +01:00
Florian Bruhin
d2b733ea7a Check if Exception is subclass of Exception properly 2014-02-19 13:37:42 +01:00
Florian Bruhin
f70ad71f9c Add error strings to exceptions 2014-02-19 11:11:21 +01:00
Florian Bruhin
9a990d56d9 Nicer docstrings 2014-02-19 10:58:32 +01:00
Florian Bruhin
581f88fcce Avoid pylint maybe-no-member warnings for ConfigParser. 2014-02-18 19:32:00 +01:00
Florian Bruhin
5f83228c75 Reorder some methods, widgets not done yet 2014-02-18 17:54:17 +01:00
Florian Bruhin
911d5d3b4a Refactor ALL the things 2014-02-18 16:51:01 +01:00
Florian Bruhin
234d171483 Use Qt saveGeometry and restoreGeometry 2014-02-18 14:14:27 +01:00
Florian Bruhin
c9e4f2417d Add more shutdown debugging 2014-02-18 13:05:42 +01:00
Florian Bruhin
27d354633c Save/restore window geometry. 2014-02-18 11:57:35 +01:00
Florian Bruhin
306371aa31 Better logging when shutdown fails. 2014-02-18 11:56:40 +01:00
Florian Bruhin
8ba4661838 bugfix: Fix command history 2014-02-18 10:50:41 +01:00
Florian Bruhin
ab89a3baf0 Cleanup 2014-02-17 22:21:11 +01:00
Florian Bruhin
57b2dc84fc More crash handling fixes. 2014-02-17 20:39:15 +01:00
Florian Bruhin
14a090c087 More shutdown/crashing improvments. 2014-02-17 20:30:09 +01:00
Florian Bruhin
1dc382e2b7 Process pending events before opening startpage.
We now call QApplication::processEvents before
QNetworkAccessManager::createRequest (which takes >1s) is run, so all
waiting GUI events get handled and the GUI is drawn for the first time.
2014-02-17 17:47:21 +01:00
Florian Bruhin
9c0f0e8ac5 Add last_close setting. 2014-02-17 16:50:41 +01:00
Florian Bruhin
b90d402587 Fix comment typo. 2014-02-17 15:39:21 +01:00
Florian Bruhin
3d882897c0 Use singleShot QTimer to process init arguments.
This processes all init arguments after the startup has completely
finished, so that things like   qutebrowser ':quit'   work correctly.
2014-02-17 14:37:12 +01:00
Florian Bruhin
8c37e1c33a Make closing/crashing much more reliable. 2014-02-17 14:17:56 +01:00
Florian Bruhin
966ceba1e6 Import cleanup 2014-02-17 12:23:52 +01:00
Florian Bruhin
d5807169d1 Decorate slots with pyqtSlot.
This seems to reduce memory usage a bit and make things a bit faster.
2014-02-17 12:00:08 +01:00
Florian Bruhin
0abb5cf738 Try to shut down everything cleanly. 2014-02-17 10:20:57 +01:00
Florian Bruhin
63ee3f4efd Set Qt application name/version. 2014-02-17 08:56:33 +01:00
Florian Bruhin
029813c8eb Implement page-wise scrolling. 2014-02-13 10:28:09 +01:00
Florian Bruhin
002118953c Use separate QHBoxLayout elements for statusbar. 2014-02-12 08:48:54 +01:00
Florian Bruhin
fca70a0c6f Only import faulthandler if available 2014-02-10 22:40:21 +01:00
Florian Bruhin
39ed73c3cf python package cleanup 2014-02-10 15:06:46 +01:00
Florian Bruhin
01633007e0 Be PEP257 compliant. 2014-02-07 20:21:50 +01:00
Florian Bruhin
940b2d0860 Fix checks 2014-02-07 11:01:58 +01:00
Florian Bruhin
920683b804 Refactor about:... handling 2014-02-07 10:34:37 +01:00
Florian Bruhin
0648dce295 Add GNU GPL 2014-02-06 14:01:23 +01:00
Florian Bruhin
04ffbc3e53 Fixes for checks. 2014-02-06 13:40:18 +01:00
Florian Bruhin
e2589a35b3 Add opencur and tabopencur 2014-02-06 13:34:49 +01:00
Florian Bruhin
9a0451c984 Crash more reliably #2 2014-02-06 10:25:22 +01:00
Florian Bruhin
81c65dbe97 Handle title changes correctly 2014-02-05 15:17:58 +01:00
Florian Bruhin
31707a7dd4 Add --debug argument 2014-02-05 12:46:35 +01:00
Florian Bruhin
fc7caee370 Crash more reliably (lol'd) 2014-02-05 11:40:30 +01:00
Florian Bruhin
c4edc6f5da Make sure to save config on crash 2014-01-31 15:58:14 +01:00
Florian Bruhin
053ce35032 Hopefully sane default config handling.
This now reads the values from the config, and from a default config if
it's not overridden.
2014-01-30 23:05:39 +01:00
Florian Bruhin
2c276b98a4 Handle exceptions with a crash dialog. 2014-01-30 21:22:56 +01:00
Florian Bruhin
c3ce167926 Allow commands/URLs to be passed as arguments. 2014-01-30 21:11:30 +01:00
Florian Bruhin
49803b051e Add :crash command 2014-01-30 14:58:32 +01:00
Florian Bruhin
143dba4461 Fix harfbuzz issues by setting QT_HARFBUZZ=old 2014-01-30 04:56:16 +01:00
Florian Bruhin
b158cd78b5 Allow non-None default for count 2014-01-30 07:08:45 +01:00
Florian Bruhin
58103fa7e4 Implement yank/paste 2014-01-30 00:29:46 +01:00
Florian Bruhin
18c68ce74e Implement searching 2014-01-29 21:06:56 +01:00
Florian Bruhin
c0f01d9219 Allow other chars than : to be used for commandline 2014-01-29 20:25:41 +01:00
Florian Bruhin
e56099e0ec Docstringify ALL the things 2014-01-29 15:30:19 +01:00
Florian Bruhin
6f3a2448ba pep8 fixes 2014-01-28 23:12:44 +01:00
Florian Bruhin
f059bf0b3d some pylint fixes 2014-01-28 19:52:09 +01:00
Florian Bruhin
7d8fdec1fd Fix exception hook 2014-01-28 16:13:13 +01:00
Florian Bruhin
1bede88b62 Better exception handling 2014-01-28 14:44:12 +01:00
Florian Bruhin
9bf7dd2bbb Make colors configurable 2014-01-28 12:24:08 +01:00
Florian Bruhin
b83bf4e238 Rename scrollpercent{x,y} 2014-01-28 06:52:59 +01:00
Florian Bruhin
4d2a8a7102 Fix config location 2014-01-28 06:10:41 +01:00
Florian Bruhin
f2223064b3 Merge completion branch
Squashed commit of the following:

commit 8bbf7242e7ae3168a0e8652ad643c7c1fe8670d3
Author: Florian Bruhin <git@the-compiler.org>
Date:   Mon Jan 27 21:34:35 2014 +0100

    foo

commit cc9a4eed6e7ca9599bcc40b40f43614040711714
Author: Florian Bruhin <git@the-compiler.org>
Date:   Mon Jan 27 21:33:09 2014 +0100

    fixes

commit b84c9207f8596dac0f47bf72cd178f8e3ee9ebb7
Author: Florian Bruhin <git@the-compiler.org>
Date:   Mon Jan 27 21:27:48 2014 +0100

    Make titles bold

commit d2ef899f90036b05856deb178e61de5d961e1342
Author: Florian Bruhin <git@the-compiler.org>
Date:   Mon Jan 27 21:18:01 2014 +0100

    Make tab work properly

commit ccc407093e39f1964c8e3ff2900c66b28dc7fe56
Author: Florian Bruhin <git@the-compiler.org>
Date:   Mon Jan 27 16:19:57 2014 +0100

    Add FIXME, remove showhide

commit cbe6d0a2b0614df839c75f1815f939c11e4ae3ba
Author: Florian Bruhin <git@the-compiler.org>
Date:   Mon Jan 27 16:12:55 2014 +0100

    Use stylesheet for highlight

commit 7eeb6e79f17bc8e7ccc1ec90f474d1c2b1c01c1e
Author: Florian Bruhin <git@the-compiler.org>
Date:   Mon Jan 27 16:01:50 2014 +0100

    Make highlighting work

commit 4fed5b9f7291109fd1c669c61501861223364b7d
Author: Florian Bruhin <git@the-compiler.org>
Date:   Mon Jan 27 17:49:30 2014 +0100

    First attempt at marking

commit 27a3bda214b7fc7741b4c12d723ccdf4073c0d5e
Author: Florian Bruhin <git@the-compiler.org>
Date:   Mon Jan 27 17:14:48 2014 +0100

    Funny broken marking

commit 2798cf75dd295ace2a33295e9a64dd373b7fd669
Author: Florian Bruhin <git@the-compiler.org>
Date:   Mon Jan 27 16:25:36 2014 +0100

    Make completion and filtering work

commit b213d9724bc9f4bb36204bd1b2c4aaf62a454e11
Author: Florian Bruhin <git@the-compiler.org>
Date:   Mon Jan 27 16:07:14 2014 +0100

    Implement dynamic source models

commit c7951e6b4346a1702509bea6d3694cc50550c9ed
Author: Florian Bruhin <git@the-compiler.org>
Date:   Mon Jan 27 14:44:31 2014 +0100

    Add custom filtering

commit 37b100f3a1a1f5a90592e34b268c08df684b0df9
Author: Florian Bruhin <git@the-compiler.org>
Date:   Mon Jan 27 14:43:57 2014 +0100

    Add default roles in model

commit 1610423c1dd36c0adc35743a38e2c3a81f3641ef
Author: Florian Bruhin <git@the-compiler.org>
Date:   Mon Jan 27 14:43:36 2014 +0100

    Remove dataChanged

commit 467712630b00a9ca2407903bdba977b5e66dd2bc
Author: Florian Bruhin <git@the-compiler.org>
Date:   Mon Jan 27 13:57:18 2014 +0100

    Fix stuff

commit 00bb46e0ef46b9ae61652bde3ae10d3252263e46
Author: Florian Bruhin <git@the-compiler.org>
Date:   Mon Jan 27 11:51:34 2014 +0100

    First attempt at a real CommandCompletionModel

commit a8be022f80d7d35049d1ae3d8431702e7a407698
Author: Florian Bruhin <git@the-compiler.org>
Date:   Mon Jan 27 10:25:48 2014 +0100

    Adapt completion view to size

commit ad6bf69a4257880ce14b0590bcb5381c718bb744
Author: Florian Bruhin <git@the-compiler.org>
Date:   Mon Jan 27 09:17:48 2014 +0100

    Fix stuff

commit 41c1fbfa942bab0a1a0db35f6b745b691c774b22
Author: Florian Bruhin <git@the-compiler.org>
Date:   Mon Jan 27 09:16:09 2014 +0100

    Hide CompletionView by default

commit 2ac8596dada6c7e079807bfd698377a9d3ffd0af
Author: Florian Bruhin <git@the-compiler.org>
Date:   Mon Jan 27 09:13:11 2014 +0100

    File shuffling

commit f0c85d5bee30095324be354934f3379c1c6a5291
Author: Florian Bruhin <git@the-compiler.org>
Date:   Mon Jan 27 09:04:29 2014 +0100

    Cleanup, don't show completionview

commit 177ac97acb2d611992869f122669d95a8dadcdbb
Author: Florian Bruhin <git@the-compiler.org>
Date:   Mon Jan 27 07:16:37 2014 +0100

    Add FIXME for eliding

commit 6b234c58928e9a231ec35e5080a27d7a8affebc4
Author: Florian Bruhin <git@the-compiler.org>
Date:   Mon Jan 27 07:12:55 2014 +0100

    Add TextOption to TextDocument

commit 195e95459b54bbdb0545cb0e4db417ab641cea28
Author: Florian Bruhin <git@the-compiler.org>
Date:   Mon Jan 27 07:01:41 2014 +0100

    Resize QTreeView contents based on window size

commit 05b854bc812f0aabf5c6dcbdfa1dfd74ea495170
Author: Florian Bruhin <git@the-compiler.org>
Date:   Sun Jan 26 01:19:28 2014 +0100

    Split files

commit ff433b561179a562494c7d3558336a917edc497f
Author: Florian Bruhin <git@the-compiler.org>
Date:   Sun Jan 26 00:57:18 2014 +0100

    cleanup

commit bdb17de2fee65411b4dd1d0ad449329f0586f1e0
Author: Florian Bruhin <git@the-compiler.org>
Date:   Sun Jan 26 00:15:17 2014 +0100

    Make text drawing work properly

commit d844152074738df88ed79c2e1efc4eec4b6e5734
Author: Florian Bruhin <git@the-compiler.org>
Date:   Sat Jan 25 14:03:16 2014 +0100

    Split painting into functions

commit 585a9f6931a407117c4232ac14844d33233922f8
Author: Florian Bruhin <git@the-compiler.org>
Date:   Sat Jan 25 13:50:52 2014 +0100

    Use QTextDocument, things are getting better

commit 96fef2114e68766590ed33fa92c6f2bbac8adb11
Author: Florian Bruhin <git@the-compiler.org>
Date:   Sat Jan 25 13:08:58 2014 +0100

    Failed try to reimplement painting

commit d967285f24a7966674c8685e9e276e560e9cc066
Author: Florian Bruhin <git@the-compiler.org>
Date:   Sat Jan 25 11:15:07 2014 +0100

    Try drawing over text

commit 2687d891cc2f1ecd00cace78492cbffc745d9e5b
Author: Florian Bruhin <git@the-compiler.org>
Date:   Fri Jan 24 23:06:44 2014 +0100

    First try at implementing delegate

commit c8bada0c7607df936df04b9c7796a03cc2e1a71a
Author: Florian Bruhin <git@the-compiler.org>
Date:   Fri Jan 24 19:59:14 2014 +0100

    Don't allow categories to be selected

commit 6b56df5a0e2588d89d757f583070dd2ca78a6e15
Author: Florian Bruhin <git@the-compiler.org>
Date:   Fri Jan 24 19:53:36 2014 +0100

    Add outline:0 to TreeView

commit 534ba6e191e711cc7abeea78c3bf470e9eaf0bfd
Author: Florian Bruhin <git@the-compiler.org>
Date:   Fri Jan 24 17:57:57 2014 +0100

    More styling

commit 065d40c24d2746f49660485700e3e6327b28810d
Author: Florian Bruhin <git@the-compiler.org>
Date:   Fri Jan 24 17:47:40 2014 +0100

    Add more commands, more styling for TreeView

commit 2362d01db40bbc923a51a8bc53ffbabfd18ebea0
Author: Florian Bruhin <git@the-compiler.org>
Date:   Fri Jan 24 16:50:31 2014 +0100

    Adjust super()

commit 43ebedff6724af0f217acc14a325febd12c4ed0b
Author: Florian Bruhin <git@the-compiler.org>
Date:   Fri Jan 24 16:50:20 2014 +0100

    Style CompletionView

commit 79c1010cf54bd8a3c3f4b2b4a9f97d8ae7d603fb
Author: Florian Bruhin <git@the-compiler.org>
Date:   Fri Jan 24 13:06:12 2014 +0100

    Completion refactoring

    Clean up imports
    Whitespace
    Make items non-editable
    Rename nodeToIndex()
    Return QVariant() instead of None
    Remove comments
    Don't inherit TreeItem from object
    Get rid of getValue
    Get rid of child()
    Get rid of childCount
    Remove appendChild
    Get rid of columnCount
    Get rid of parent()
    Renames
    Refactor if
    Simplify columnCount
    Minor fixups

commit a7a6b95f56a87ef03359ec5f9e5d45a906112845
Author: Florian Bruhin <git@the-compiler.org>
Date:   Fri Jan 24 13:04:28 2014 +0100

    Split completion out of command.py

commit cd1c6419ff4034a29a1b48c4ed6ca292944f5674
Author: Florian Bruhin <git@the-compiler.org>
Date:   Thu Jan 23 17:53:37 2014 +0100

    Fix

commit 7073edea92ff8384535f5db80c01168bb8462e75
Author: Florian Bruhin <git@the-compiler.org>
Date:   Thu Jan 23 17:28:03 2014 +0100

    More attempts

commit 7dc522667ba52e9b7f20b3b66e977d23258a3ff4
Author: Florian Bruhin <git@the-compiler.org>
Date:   Thu Jan 23 16:56:01 2014 +0100

    Get rid of parent in setupModelData

commit 5df4874e14818399494f3a47f7feea8b9f86cf69
Author: Florian Bruhin <git@the-compiler.org>
Date:   Thu Jan 23 16:51:52 2014 +0100

    First model/view experiments
2014-01-27 21:35:12 +01:00
Florian Bruhin
226adac899 Rename parse_check_run to run in CommandParser 2014-01-22 17:31:15 +01:00
Florian Bruhin
97588db71b Add -c argument, don't init config if -c '' 2014-01-22 17:04:10 +01:00
Florian Bruhin
97c6d9f1c9 Don't freak out if no keybind section exists 2014-01-22 16:43:24 +01:00
Florian Bruhin
fdf765b267 Implement ScrollPercent{X,Y}, gg and G with count 2014-01-20 17:59:27 +01:00
Florian Bruhin
1373b4dab2 Use multiple CommandParser instances 2014-01-20 17:20:17 +01:00
Florian Bruhin
5fce707bb2 Replace scroll{up,down,left,right} by scroll cmd 2014-01-20 17:05:47 +01:00
Florian Bruhin
1a6907b4b0 Refactor command/key handling again 2014-01-20 17:01:15 +01:00
Florian Bruhin
1095e24f98 Refactor ALL the things
- Remove super() where unneeded
 - Add docstrings where applicable
 - Remove setObjectName calls
 - Lots and lots of smaller changes
2014-01-20 15:58:49 +01:00
Florian Bruhin
dfe7d6c7ef Add some hacks for python features (exception, signals, ctrl+c) to work correctly 2014-01-20 14:04:29 +01:00
Florian Bruhin
e73d06c252 Fix quitting 2014-01-20 13:50:33 +01:00
Florian Bruhin
7ed257467b Start implementing config storage 2014-01-20 12:26:02 +01:00
Florian Bruhin
a18f3f5aa5 Fix tab title when webpage has no title 2014-01-20 08:58:49 +01:00
Florian Bruhin
6acac5cb71 Display keystring in statusbar 2014-01-20 07:01:39 +01:00
Florian Bruhin
fd9ab82e8b Add :pyeval 2014-01-19 23:54:22 +01:00
Florian Bruhin
2d8fd4499d Simplify command handler 2014-01-19 23:03:06 +01:00
Florian Bruhin
1e8cb42c00 Rewrite whole command system.
Every command signal now returns a tuple (count, args) and gets handled
in app.py by cmd_handler. This makes things easier in a lot of places.
2014-01-19 22:55:00 +01:00
Florian Bruhin
fb54eb58c1 Start reworking key parsing 2014-01-19 19:41:34 +01:00
Florian Bruhin
bba3696630 commands: Implement scrollstart and scrollend 2014-01-19 18:43:47 +01:00
Florian Bruhin
9f9f5c41f7 Refactor app.py 2014-01-19 18:20:57 +01:00
Florian Bruhin
0dd204b182 Implement scroll{left,right} 2014-01-19 17:45:03 +01:00
Florian Bruhin
ff938fc0d5 Add undo command 2014-01-17 23:17:24 +01:00
Florian Bruhin
022fc7aa4e Add scrolling commands 2014-01-17 22:02:11 +01:00
Florian Bruhin
ff855d6ded Add commands reload/stop/back/forward/print 2014-01-17 21:51:38 +01:00
Florian Bruhin
5efa56c5bb Add logging 2014-01-17 20:03:21 +01:00
Florian Bruhin
3a76d52ffb Move keys.py to commands 2014-01-17 12:01:21 +01:00
Florian Bruhin
b14f3f63c5 Fix empty command handling 2014-01-17 12:00:13 +01:00
Florian Bruhin
61c90f293c Split commands to commands/utils 2014-01-17 10:57:27 +01:00
Florian Bruhin
9a20d60c13 Add tab{prev,next} command 2014-01-17 08:39:14 +01:00
Florian Bruhin
928bdbe160 Add tabclose command 2014-01-17 08:03:42 +01:00
Florian Bruhin
7d285fa5a3 Add keys to MainWindow, not to tabs 2014-01-17 07:08:56 +01:00
Florian Bruhin
cb0c2604f3 Display error on unknown command 2014-01-17 07:04:24 +01:00
Florian Bruhin
746e7a90ad Add keybindings 2014-01-17 06:51:21 +01:00
Florian Bruhin
6eaf719298 Set keyboard focus after command 2014-01-16 21:59:50 +01:00
Florian Bruhin
1d88bb7c9c Connect signals properly 2014-01-16 15:55:52 +01:00
Florian Bruhin
857228e4f2 Refactor commandline parsing 2014-01-16 17:49:57 +01:00
Florian Bruhin
7c866f5014 Add quit command 2014-01-16 17:45:12 +01:00
Florian Bruhin
bc6d7fee25 Rewrite command parsing 2014-01-16 17:12:55 +01:00
Florian Bruhin
ea31eb35c8 Add tabopen 2013-12-16 22:07:11 +01:00
Florian Bruhin
e31e15b34a Add open command 2013-12-16 22:01:06 +01:00
Florian Bruhin
1b759512bb Remove test tabs 2013-12-15 22:24:47 +01:00
Florian Bruhin
fbe968af73 Move main window logic to mainwindow.py 2013-12-15 20:33:43 +01:00
Florian Bruhin
ae516f3f73 Split widgets to different files 2013-12-15 20:29:39 +01:00
Florian Bruhin
bc59d7697e Own TabWidget object 2013-12-15 00:39:28 +01:00
Florian Bruhin
06506e5e48 Statusbar styling 2013-12-15 00:01:05 +01:00