Commit Graph

3176 Commits

Author SHA1 Message Date
Florian Bruhin
6dc0bfa2d2 Convert IPCServer to a class and handle connections async. 2014-10-13 20:11:13 +02:00
Florian Bruhin
46b15a1f11 userscripts: Remove invalid encoding param to os.open.
Fixes #182.

This was a regression introduced in 17dd4732ae.
2014-10-13 15:09:23 +02:00
Florian Bruhin
a3ee504c59 Add docstrings. 2014-10-13 07:59:03 +02:00
Florian Bruhin
93dd3d8d9d Fix check for QLocalSocket.UnknownSocketError 2014-10-13 07:49:26 +02:00
Florian Bruhin
8195f1875e Ignore QLocalSocket.ServerNotFoundError while connecting. 2014-10-13 07:49:01 +02:00
Florian Bruhin
2f0bbab635 Better IPC exceptions 2014-10-13 07:47:05 +02:00
Florian Bruhin
d861645d37 Remove wrong 'self' argument. 2014-10-13 07:43:22 +02:00
Florian Bruhin
5fc3332b6b Check errors correctly when connecting to socket. 2014-10-13 07:43:12 +02:00
Florian Bruhin
94b9bd42af Add missing "return True" when connected. 2014-10-13 07:42:15 +02:00
Florian Bruhin
476dd09534 Actually start IPC server. 2014-10-13 07:42:06 +02:00
Florian Bruhin
f759106a14 Error handling when writing to running instance. 2014-10-13 07:34:15 +02:00
Florian Bruhin
451a8be748 Small cleanup. 2014-10-13 07:31:56 +02:00
Florian Bruhin
4958da9c70 Error checking on connection. 2014-10-13 07:31:48 +02:00
Florian Bruhin
869fd4f752 Add an IPCError exception. 2014-10-13 07:11:45 +02:00
Florian Bruhin
ae61ca8af9 whitespace 2014-10-13 07:09:25 +02:00
Florian Bruhin
e351217740 Wait until socket bytes are written. 2014-10-13 07:09:16 +02:00
Florian Bruhin
fdb24ff597 Move IPC to its own file. 2014-10-13 07:06:57 +02:00
Florian Bruhin
47ae112cb7 Update ez_setup to 6.1 2014-10-12 17:40:41 +02:00
Claude
111f7b6e60 fixed a typo 2014-10-12 01:16:28 +02:00
Claude
75d6b82453 added an importer.py
for importing bookmarks n stuff

currently supports chromium bookmarks

usage:
in chromium: export your bookmarks to html file (bookmark manager)
./importer.py chromium bookmarks_10_11_14.html >> ~/.config/qutebrowser/quickmarks
2014-10-11 23:32:50 +02:00
Florian Bruhin
27fe73e1b8 Add debug function to log signals. 2014-10-11 11:40:15 +02:00
Florian Bruhin
86bb1f9890 Remove local server before connecting. 2014-10-11 11:39:02 +02:00
Florian Bruhin
1238f28833 Use a variable for socketname. 2014-10-11 11:38:03 +02:00
Florian Bruhin
f231f8815b QLocalsocket foo 2014-10-10 13:16:22 +02:00
Florian Bruhin
1761d98c1b Fix lint 2014-10-10 07:50:50 +02:00
Florian Bruhin
b42d701b0c debug-console: Only create when needed 2014-10-10 07:45:44 +02:00
Florian Bruhin
637ceb9bdd debug-console: Make objreg available by default. 2014-10-10 07:42:57 +02:00
Florian Bruhin
d9ffec7183 whitespace 2014-10-10 07:41:51 +02:00
Florian Bruhin
4edd2f7079 debug-console: Log completions. 2014-10-10 07:41:15 +02:00
Florian Bruhin
9dc72b4c37 debug-console: Use a sorted set for completions. 2014-10-10 07:38:14 +02:00
Florian Bruhin
8017dae75d debug console: refactoring 2014-10-10 07:34:34 +02:00
Florian Bruhin
2280250c16 debug console: Move prompt to output 2014-10-10 06:45:24 +02:00
Florian Bruhin
d08af6b8d8 debug-console: First attempt at completion. 2014-10-09 22:15:14 +02:00
Florian Bruhin
c6ccb56208 Handle exceptions while crash dialog is shown correctly. Fixes #168. 2014-10-09 06:56:04 +02:00
Florian Bruhin
0e771db7f1 Use annotation instead of special argument names.
Explicit is better than implicit.

Fixes #161.
2014-10-09 06:33:24 +02:00
Florian Bruhin
6b9af36993 Improve asciidoc script output 2014-10-08 22:24:05 +02:00
Florian Bruhin
1eefe688ca Update commands.asciidoc. 2014-10-08 22:20:57 +02:00
Florian Bruhin
33043f0f6c Fix lint 2014-10-08 22:20:38 +02:00
Florian Bruhin
d9213ecf17 Prevent double-entering hint mode. Fixes #160. 2014-10-08 22:19:24 +02:00
Florian Bruhin
cbdade6518 Fix saving geometry if mainwindow is closed on shutdown. Fixes #159. 2014-10-08 22:03:12 +02:00
Florian Bruhin
cb951643b6 debug-console: Clean up appending of text. 2014-10-08 21:58:32 +02:00
Florian Bruhin
26d016b219 debug-console: Move cursor to end before inserting text. Fixes #162. 2014-10-08 21:54:25 +02:00
Florian Bruhin
b238149e1e Fix closing tabs with invalid URLs. Fixes #163. 2014-10-08 21:23:03 +02:00
Florian Bruhin
ffdc176d9d Make :set-cmd-text work without valid URL. Fixes #165. 2014-10-08 21:18:26 +02:00
Florian Bruhin
b1ed3a1106 Add bugs to download workaround comment. 2014-10-08 21:12:21 +02:00
Florian Bruhin
71308b45ac Add utils.qualname. Closes #169. 2014-10-08 21:11:04 +02:00
Florian Bruhin
b5b240c3f6 Add a workaround for deleted DownloadsView. Fixes #167. 2014-10-08 20:29:29 +02:00
Florian Bruhin
61a836fec5 Merge DownloadModel into DownloadManager. 2014-10-08 20:18:44 +02:00
Florian Bruhin
fe1215c74d Clean up selection model properly in completion.
http://qt-project.org/doc/qt-5/qabstractitemview.html#setModel :

This function will create and set a new selection model, replacing any model
that was previously set with setSelectionModel(). However, the old selection
model will not be deleted as it may be shared between several views. We
recommend that you delete the old selection model if it is no longer required.
2014-10-08 17:36:59 +02:00
Florian Bruhin
de86a26473 Fix DownloadView __repr__ if model is None. Fixes #170. 2014-10-08 17:19:51 +02:00