Florian Bruhin
1e256699f8
Add topic-specific loggers
2014-05-23 16:11:55 +02:00
Florian Bruhin
99bd53de89
Close tabs on right click
2014-05-23 04:12:18 +02:00
Florian Bruhin
897fc0c72f
Leave hinting mode when tab changed
2014-05-22 17:50:10 +02:00
Florian Bruhin
9a3554a784
Add answered_(yes|no) signals to Question.
2014-05-22 16:43:38 +02:00
Florian Bruhin
89350cbff4
Emit answered signal from statusbar prompt.
...
This is so we can leave the mode (and hide the command widget) before
emitting the answered signal (and possibly ask something again).
2014-05-22 16:41:58 +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
ecc838d02c
Fix ALL the lint
2014-05-21 17:29: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
20f8c2b8b4
Add a new MinimalLineEdit widget
2014-05-20 10:11:05 +02:00
Florian Bruhin
1a959a39b2
Don't inherit Prompt from TextBase
2014-05-20 09:15:15 +02:00
Florian Bruhin
b1b1580136
Add some docstrings to prompt
2014-05-20 09:14:35 +02:00
Florian Bruhin
d4c90b4a60
Add proxy authentication
2014-05-20 08:56:56 +02:00
Florian Bruhin
77eb7d621a
Handle cancelling of authentication
2014-05-20 08:56:54 +02:00
Florian Bruhin
9ffc8d74c4
Save temporary username in Question object
2014-05-20 08:56:52 +02:00
Florian Bruhin
84fdd0f4f7
Get rid of accepted signal
2014-05-20 08:56:50 +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
9ce06c75bc
Clear hover URL when changing tab
2014-05-19 18:10:48 +02:00
Florian Bruhin
c24e92e519
Make hover URL display more reliable.
...
This uses a similiar mechanism to the statusbar text now.
Previously in some corner cases (e.g. reloading while hovering) the
incorrect link was displayed.
2014-05-19 18:08:33 +02:00
Florian Bruhin
d6c593f035
Use properties rather than overwriting __setattr__
2014-05-19 17:08:51 +02:00
Florian Bruhin
118d3e03cd
Revert "Make scroll bars hideable"
...
This reverts commit 1bfbdd79e4
.
Conflicts:
qutebrowser/browser/commands.py
qutebrowser/config/configdata.py
qutebrowser/widgets/webview.py
2014-05-19 09:50:56 +02:00
Florian Bruhin
696fdc397b
Revert "Reimplement wheelEvent of WebView to fix scrolling"
...
This helped with hiding scrollbars, but it handles scrolling incorrectly
with multiple scrollable divs.
This reverts commit 5c4ce7ae09
.
2014-05-19 09:46:38 +02:00
Florian Bruhin
a795b24d86
Merge branch 'select-insert'
2014-05-19 08:36:43 +02:00
Florian Bruhin
42f183d825
Handle hiding command widget properly
2014-05-19 04:19:16 +02:00
Florian Bruhin
274608b1d9
Continue displaying queued messages after immediate ones
2014-05-19 04:04:59 +02:00
Florian Bruhin
f0d1d4ed45
Selectively queue messages rather than unqueueing.
2014-05-19 03:40:10 +02:00
Florian Bruhin
1ec0766587
Rename CurCommandDispatcher to CommandDispatcher
2014-05-18 08:04:27 +02:00
Florian Bruhin
8e4aaf1706
Whitespace adjustments
2014-05-18 00:36:29 +02:00
Florian Bruhin
d2049eb462
Fix blank line
2014-05-17 23:46:41 +02:00
Florian Bruhin
bca3909a10
Remove _tabs when unneeded
2014-05-17 23:46:06 +02:00
Florian Bruhin
65aee9d991
Add ui section to config
2014-05-17 23:45:31 +02:00
Florian Bruhin
0f943f747c
Reorder some functions
2014-05-17 23:15:42 +02:00
Florian Bruhin
c7cf0aaf9a
Clean up webview and move commands
2014-05-17 22:38:07 +02:00
Florian Bruhin
d901fe69e6
Rename some commands
2014-05-16 23:01:40 +02:00
Florian Bruhin
5c4ce7ae09
Reimplement wheelEvent of WebView to fix scrolling
...
Hiding scrollbars in 1bfbdd79e4
broke
scrolling because the WebKit implementation wants a scrollbar to do
scrolling.
We fix this by just handling the mouse wheel ourselves.
2014-05-16 21:37:43 +02:00
Florian Bruhin
89cd6d87cc
Treat select elements as insert mode
2014-05-16 17:43:06 +02:00
Florian Bruhin
2c2c79af2e
Display some messages immediately
2014-05-16 17:21:43 +02:00
Florian Bruhin
bccf912958
Ignore duplicated messages
2014-05-16 16:50:53 +02:00
Florian Bruhin
39249bce9d
Display texts immediately if possible
2014-05-16 16:43:14 +02:00
Florian Bruhin
7eb19e2a1e
Start implementing message-timeout
2014-05-16 15:33:36 +02:00
Florian Bruhin
1bfbdd79e4
Make scroll bars hideable
2014-05-16 14:20:37 +02:00
Florian Bruhin
480e222d6d
Log load status changes
2014-05-16 07:47:06 +02:00
Florian Bruhin
7bd6302d13
Connect load_status_changed signal correctly
2014-05-16 07:12:27 +02:00
Florian Bruhin
e41d8f1e46
Fix link colors (except for LoadStatus).
...
This was broken when splitting statusbar into files as the class name
had changed.
2014-05-16 07:05:55 +02:00
Florian Bruhin
b14ff27e0c
Remove unused import
2014-05-15 22:52:37 +02:00
Florian Bruhin
b91274cfcf
Fix some other small bugs with new signal implementation
2014-05-15 22:31:01 +02:00
Florian Bruhin
a70aa212e0
Fix lint
2014-05-15 22:02:43 +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
0d104b5813
Revert "Open startpage with :tabopen/:backtabopen if no URL is given"
...
This reverts commit 68556a0e87
.
This broke keybindings with partial commands, e.g. o/O.
2014-05-15 16:54:08 +02:00
Florian Bruhin
68556a0e87
Open startpage with :tabopen/:backtabopen if no URL is given
2014-05-15 16:32:00 +02:00
Florian Bruhin
326280f910
Fix consistency and spelling in docstrings/comments
2014-05-15 16:27:34 +02:00
Florian Bruhin
537c45f518
Check zoom percentage is >= 0%
2014-05-15 15:41:54 +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
ec75382a6d
Allow text in crash dialog to be copied
2014-05-15 10:54:24 +02:00
Florian Bruhin
5a6326922e
Don't cache cur_ssl_errors
2014-05-15 10:50:07 +02:00
Florian Bruhin
d801c35e3f
Fix typo
2014-05-15 00:03:54 +02:00
Florian Bruhin
b96efddbdc
Make tab close buttons work
2014-05-15 00:02:40 +02:00
Florian Bruhin
603fbdf239
Range-check all values passed to C code.
2014-05-15 00:02:20 +02:00
Florian Bruhin
daf42fdc0d
Split WebView.mouseEvent into smaller chunks
2014-05-14 20:59:21 +02:00
Florian Bruhin
a045511962
Use exceptions for command errors
2014-05-14 18:00:40 +02:00
Florian Bruhin
876dcad28f
Fix some more escaped quotes
2014-05-13 22:18:59 +02:00
Florian Bruhin
f448aeebda
Use property to iterate over tabs
2014-05-13 21:25:16 +02:00
Florian Bruhin
c52caa1427
Leave hint mode when page loading started.
2014-05-13 11:17:36 +02:00
Florian Bruhin
d9bb1e904f
Support back/forward mouse buttons
2014-05-13 09:53:29 +02:00
Florian Bruhin
4b78e9a9f5
Add missing docstring
2014-05-13 07:11:46 +02:00
Florian Bruhin
55ea24e431
Split statusbar into multiple files
2014-05-13 07:10:50 +02:00
Florian Bruhin
3c4866f3d9
Add show-favicons option
2014-05-12 23:03:55 +02:00
Florian Bruhin
297a0e65c4
Work around the tabbar cut font issue
2014-05-12 21:23:16 +02:00
Florian Bruhin
fd6e739281
Change _error and _urltype to class attributes.
2014-05-12 18:35:26 +02:00
Florian Bruhin
0c4e7c5fe3
Fix class name in url stylesheet
2014-05-12 18:35:16 +02:00
Florian Bruhin
512625cee1
Support to show SSL status with URL color
2014-05-12 18:00:44 +02:00
Florian Bruhin
c76819a8b0
Use loggings.warning instead of warn
2014-05-12 17:39:17 +02:00
Florian Bruhin
c3816b2820
Make min/max tab width configurable
2014-05-12 16:04:43 +02:00
Florian Bruhin
7b2961f23e
Fix some backslash-quotes
2014-05-12 15:58:09 +02:00
Florian Bruhin
31a1e91866
Make hitTestResult work with frames correctly
2014-05-12 08:28:44 +02:00
Florian Bruhin
c2af513ae2
Split CompletionDelegate into own file
2014-05-09 20:25:16 +02:00
Florian Bruhin
5f1cb2ede3
Restyle completion to be dark
2014-05-09 20:25:16 +02:00
Florian Bruhin
6417c7d875
Turn off horizontal scrollbar in completer
2014-05-09 19:12:46 +02:00
Florian Bruhin
5a6208862e
Add cmdutils.arg_or_count
2014-05-09 19:12:08 +02:00
Florian Bruhin
63ce8e0966
Set min-/max-width for tabs
2014-05-09 17:59:13 +02:00
Florian Bruhin
edc9d0810c
Use QCoreApplication.instance()
2014-05-09 17:01:05 +02:00
Florian Bruhin
3c098060d1
Don't handle auto-insert-mode when not needed
2014-05-09 16:43:08 +02:00
Florian Bruhin
5044f98f2e
Don't leave insert mode when loading finished
2014-05-09 16:36:53 +02:00
Florian Bruhin
502cb20c2d
Only leave insert mode if mainFrame started loading
2014-05-09 16:18:04 +02:00
Florian Bruhin
59a89d31fe
Add reasons why modes are entered/left
2014-05-09 16:03:46 +02:00
Florian Bruhin
91d1be1020
Split tab_move into _tab_move_absolute/relative
2014-05-09 15:52:03 +02:00
Florian Bruhin
1785294a43
Fix some lint
2014-05-09 15:30:27 +02:00
Florian Bruhin
f7e6dc0244
Add zoom command.
2014-05-09 14:20:26 +02:00
Florian Bruhin
4361220a48
Add bindings for xo/xO (backtabopen(cur))
2014-05-09 12:10:03 +02:00
Florian Bruhin
96d456fdee
New command: tab_focus_last / Ctrl-Tab
2014-05-09 11:58:49 +02:00
Florian Bruhin
4e7eb41cb9
Add command tab_move (gm/gl/gr)
2014-05-09 11:47:25 +02:00
Florian Bruhin
87e94a2c68
Add T command / refactor focus_tab
2014-05-09 11:29:25 +02:00
Florian Bruhin
e6af8bb7ae
Add only/co command
2014-05-09 11:24:33 +02:00
Florian Bruhin
8fc12fea5f
Refactor tabclose
2014-05-09 11:20:17 +02:00
Florian Bruhin
ed0d0d8ff7
Handle tab titles via onUrlChanged
2014-05-08 21:04:27 +02:00
Florian Bruhin
bf19cb7536
Add window-open-behaviour setting
2014-05-08 20:43:40 +02:00
Florian Bruhin
e2a2ed8850
Support QWebView::createWindow (opening windows via js)
2014-05-08 20:36:05 +02:00
Florian Bruhin
586455bbad
Fix scrollbar click bug
2014-05-08 11:50:46 +02:00
Florian Bruhin
214cda91bd
Nicer error messages for focus_tab
2014-05-08 09:03:48 +02:00
Florian Bruhin
4999a59470
Add pastebin button to crash dialog
2014-05-06 15:36:15 +02:00
Florian Bruhin
5656921a22
Don't add empty URLs to URL stack
2014-05-06 14:08:40 +02:00
Florian Bruhin
de7c6a63b4
Fix shutdown of networkmanager
2014-05-06 10:53:38 +02:00
Florian Bruhin
e02b84d7ef
Add some debug logging for click targets
2014-05-06 09:09:23 +02:00
Florian Bruhin
42c1ea5788
Rename _tabopen to tabopen and tabopen to tabopen_cmd
2014-05-06 08:53:40 +02:00
Florian Bruhin
f8195dc600
Connect tab.open_tab to correct internal slot.
2014-05-06 08:51:10 +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
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
ae95b5ea3b
Basic cookie handling
2014-05-05 16:28:43 +02:00
Florian Bruhin
85c4bb823f
Fix lint
2014-05-05 10:09:19 +02:00
Florian Bruhin
4ebe643ea6
Use simple enums for constants
2014-05-05 07:45:36 +02:00
Florian Bruhin
4ff5431436
Fix checks
2014-05-04 01:33:01 +02:00
Florian Bruhin
ec6066c7ba
Show favicons
2014-05-04 01:28:34 +02:00
Florian Bruhin
8ada39ff8b
Add focus_tab command
2014-05-03 00:32:43 +02:00
Florian Bruhin
c33fc62d2f
Fix lint
2014-05-02 17:53:59 +02:00
Florian Bruhin
5933585a23
Resize model columns properly by hand
2014-05-02 16:23:35 +02:00
Florian Bruhin
204cffc4cf
Add logging when tabbing
2014-05-02 15:24:36 +02:00
Florian Bruhin
cbb9a2656f
Spelling fix
2014-05-02 15:24:26 +02:00
Florian Bruhin
b961cb8907
Regenerate CommandCompletionModel if necessary.
2014-05-02 15:23:25 +02:00
Florian Bruhin
b74a97580f
Handle completions for ValueList sections correctly
2014-05-02 14:18:40 +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
de5f85982f
Add new _tabopen method for tabopen and backtabopen.
2014-05-02 10:11:47 +02:00
Florian Bruhin
4137e5de53
Don't use QShortcut for space scrolling
2014-05-01 23:25:51 +02:00
Florian Bruhin
3babead395
Don't crash if frame is none in mouseDownEvent
2014-05-01 21:35:24 +02:00
Florian Bruhin
427fe0b8fb
Make tab seperator 2px broad
2014-05-01 21:30:29 +02:00
Florian Bruhin
5d80831752
prevpage/nextpage updates
2014-05-01 16:35:26 +02:00
Florian Bruhin
533d82417e
Refactor completion handling
2014-05-01 00:23:53 +02:00
Florian Bruhin
b04adca059
Scroll to first item when wrapping completion
2014-04-30 13:52:16 +02:00
Florian Bruhin
7ce0bd8bc8
Force textEdited emit on set_cmd_text
2014-04-30 12:06:23 +02:00
Florian Bruhin
f1942b0ce0
Use selectionChanged to select completions
2014-04-30 12:03:24 +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
1eabbfbfcf
Replace QAbstractItemModel by QStandardItemModel.
...
This is probably the most depressing commit ever.
For some reason I didn't find this while searching for models I could
use and rolled my own one. This uses A LOT less code, and is A LOT
faster...
2014-04-30 07:32:51 +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
da91907656
Unfiy completions into single file
2014-04-25 12:29:00 +02:00
Florian Bruhin
875666265b
s/BrowserTab/WebView/g
2014-04-25 12:24:26 +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
f437bc25bf
Fix lint/cleanup
2014-04-25 11:21:00 +02:00
Florian Bruhin
7787a67c45
Add modes=[]/not_modes=[] to cmdutils.register
2014-04-25 10:10:58 +02:00
Florian Bruhin
43c8a96621
s/command_item/completion_item/
2014-04-25 09:28:02 +02:00
Florian Bruhin
2d0225a292
Hide command_item_{prev,next}
2014-04-25 09:27:30 +02:00
Florian Bruhin
aeb4980f7e
Also handle Return via config
2014-04-25 09:26:52 +02:00
Florian Bruhin
74374df5fd
Leave command mode on return press
2014-04-25 09:24:40 +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
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
c674d96cfe
Reorganize input modules into keyinput subpackage
2014-04-24 21:03:45 +02:00
Florian Bruhin
6f7391d7d1
Leave insert mode in loadStarted
2014-04-24 19:06:51 +02:00
Florian Bruhin
b372c23b80
Move hint webelem code to utils.webelem
2014-04-24 16:30:59 +02:00
Florian Bruhin
6fb52e610d
Leave insert mode when loadFinished with ok=False
2014-04-24 16:27:18 +02:00
Florian Bruhin
1c5ae25b68
Start implementing auto_insert_mode
2014-04-24 16:03:16 +02:00
Florian Bruhin
10d7d887ec
Pass keypresses to statusbar correctly
2014-04-24 15:47:38 +02:00
Florian Bruhin
b3418cae5d
Improve _is_editable()
2014-04-24 13:13:58 +02:00
Florian Bruhin
a82ab6d707
Go to insert mode when plugin clicked
2014-04-24 07:41:20 +02:00
Florian Bruhin
95691e1e11
Show passthrough modes in statusbar
2014-04-24 06:59:39 +02:00
Florian Bruhin
3d292fbc27
Use a stack for current modes
2014-04-24 06:44:58 +02:00
Florian Bruhin
f3db29c010
Enter normal mode when clicking non-editable elem
2014-04-23 23:26:02 +02:00
Florian Bruhin
b4b9b6c69d
Enter/leave command mode for Command widget
2014-04-23 23:25:06 +02:00
Florian Bruhin
8f44b56923
Start implementing eventFilter in ModeManager
2014-04-23 23:20:39 +02:00
Florian Bruhin
a33c9827d6
Check for editable fields in mousePressEvent
2014-04-23 21:18:05 +02:00
Florian Bruhin
8b5daad367
Add ModeManager
2014-04-23 21:15:47 +02:00
Florian Bruhin
a67ed4d054
Override mousePressEvent instead of event
2014-04-23 07:34:23 +02:00
Florian Bruhin
7acd32a5d7
Display error when there's nothing to undo
2014-04-23 06:17:36 +02:00
Florian Bruhin
61802725a6
Actually use message.error for errors
2014-04-23 06:17:29 +02:00
Florian Bruhin
21bb9840d9
Simplify padding in Qt-CSS
2014-04-22 23:02:51 +02:00
Florian Bruhin
06ff2e00e9
Always draw categories correctly in completion
2014-04-22 21:38:06 +02:00
Florian Bruhin
fb9ac1bc4c
Restyle tabbar
2014-04-22 20:49:16 +02:00
Florian Bruhin
55e3aca702
linting cleanup
2014-04-22 17:53:27 +02:00
Florian Bruhin
8dfc44da59
Remove another FIXME
2014-04-22 15:58:44 +02:00
Florian Bruhin
76f4917ae9
Implement wrapping/message when switching tabs
2014-04-22 15:57:38 +02:00
Florian Bruhin
963066b4bd
Remove some old FIXMEs
2014-04-22 14:45:24 +02:00
Florian Bruhin
0de249e904
Support frames correctly in HintManager
2014-04-22 14:23:55 +02:00
Florian Bruhin
b794739d94
Remove unneeded assignment
2014-04-22 13:56:25 +02:00
Florian Bruhin
af1ba0edf6
Re-sort some functions
2014-04-22 10:45:07 +02:00
Florian Bruhin
1a68bdb9a9
Clean up signal connections
2014-04-22 10:40:33 +02:00
Florian Bruhin
78060fc879
Get rid of temp_message signal
2014-04-22 10:08:56 +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
1740d4c60f
Ignore empty js statusbar messages.
2014-04-22 09:05:53 +02:00
Florian Bruhin
ba7f56f5e9
Add different hinting modes (yank, backtab, rapid)
2014-04-21 23:33:36 +02:00
Florian Bruhin
05e3fb8650
Add :backtabopen command
2014-04-21 23:33:19 +02:00
Florian Bruhin
1c5686f5e3
Handle crashes before config is loaded correctly
2014-04-21 21:09:15 +02:00
Florian Bruhin
695ab70d7c
Style fixes
2014-04-21 21:05:39 +02:00
Florian Bruhin
a6789095b3
Fix paste when clipboard is empty
2014-04-21 20:29:58 +02:00
Florian Bruhin
4f58d067b4
Clear errors when key is pressed
2014-04-21 20:21:42 +02:00
Florian Bruhin
a11b14fd2d
Implement more hinting modes
2014-04-21 19:29:11 +02:00
Florian Bruhin
0741326e5d
Make it possible to open tabs in background
2014-04-21 19:03:04 +02:00
Florian Bruhin
20dd33fb7a
Set focus on webview before processing click
2014-04-21 17:23:22 +02:00
Florian Bruhin
de0e96ab2d
Add clicking on links
2014-04-21 16:59:03 +02:00
Florian Bruhin
d7b87e09c9
Implement modes and hint input.
2014-04-21 15:24:19 +02:00
Florian Bruhin
5a3966ca82
Fix lint, add documentation
2014-04-21 11:03:43 +02:00
Florian Bruhin
e6569f946c
Add proof-of-concept hinting
2014-04-21 11:03:41 +02:00
Florian Bruhin
39f580d9f1
Cleanup
2014-04-17 17:44:27 +02:00
Florian Bruhin
975d83b50e
Respect inspector height for completion
2014-04-17 15:58:09 +02:00
Florian Bruhin
dea30e3f4d
Ensure developer extras are enabled for webinspector
2014-04-17 15:46:29 +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
72340575af
Remove value from on_config_changed signal again.
...
Turns out this causes more trouble than it's worth, and it's unintuitive
from which layer we get the value.
2014-04-17 11:39:25 +02:00
Florian Bruhin
c0236b8d22
Use a proper separated model for cmd history
2014-04-17 11:08:14 +02:00
Florian Bruhin
6b72c3dbdf
Fix long line
2014-04-17 09:51:05 +02:00
Florian Bruhin
4b1dcbd82a
Refactor tab/browser widgets
2014-04-17 09:44:26 +02:00
Florian Bruhin
58ae1f7441
Add comment about CurCommandDispatcher
2014-04-17 08:24:59 +02:00
Florian Bruhin
57baafbf30
Change configdata from function to attribute
2014-04-16 16:32:14 +02:00
Florian Bruhin
2adcde1c89
Implement web inspector
2014-04-16 14:12:04 +02:00
Florian Bruhin
e878fc538d
Fix some checks
2014-04-16 10:02:34 +02:00
Florian Bruhin
4ca8cc9537
Add value to config.changed signal
2014-04-16 09:50:24 +02:00
Florian Bruhin
a410d56a78
Implement command history
2014-04-16 09:08:56 +02:00
Florian Bruhin
dad6451b7e
style fixes
2014-04-15 17:21:12 +02:00
Florian Bruhin
88b522fa16
Only clear selection model if it exists
2014-04-15 17:16:28 +02:00
Florian Bruhin
f959c0c137
Add completion for settings values
2014-04-14 17:54:11 +02:00
Florian Bruhin
44ce804bdf
Highlight all rows in completion
2014-04-13 23:06:41 +02:00
Florian Bruhin
27046b5186
Give completion items a bit more space
2014-04-13 22:35:55 +02:00
Florian Bruhin
f59f8cac6c
Clear completion model after an item is selected
2014-04-13 22:11:47 +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
175eabdc80
Remove fallback values from config
2014-04-10 14:40:02 +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
c26430d08d
Remove annoying two-word completions
2014-04-10 06:58:58 +02:00
Florian Bruhin
782242de04
Fix marking of items
2014-04-09 21:21:15 +02:00
Florian Bruhin
18bcae40c5
Fix completing when text ends with space #2
2014-04-09 21:15:18 +02:00
Florian Bruhin
d485d8cc4e
Remove strech from statusbar
2014-04-09 21:11:11 +02:00
Florian Bruhin
7eb27c86ee
Fix some completion bugs
2014-04-09 20:57:25 +02:00
Florian Bruhin
3f7635619a
Complete multi-part values correctly
2014-04-09 17:54:41 +02:00
Florian Bruhin
3c343ecff7
Handle prefixes correctly in on_change_completed_part
2014-04-09 16:03:35 +02:00
Florian Bruhin
ad742d51d8
Set text correctly when completing
2014-04-09 07:14:26 +02:00
Florian Bruhin
fd3262e2ba
Move split_cmdline to commands.parsers
2014-04-09 07:07:32 +02:00
Florian Bruhin
deb286272c
Use command parser for completions
2014-04-09 06:58:17 +02:00
Florian Bruhin
361dc7d037
Fix checks and spellings
2014-04-07 17:20:14 +02:00
Florian Bruhin
c865cc1b84
Don't set pattern etc. when model is None
2014-03-26 20:20:09 +01:00
Florian Bruhin
3635a40c56
Always set model when needed.
2014-03-26 20:19:46 +01:00
Florian Bruhin
1132f7bb6c
Lint fixes
2014-03-24 11:48:56 +01:00
Florian Bruhin
678b4d54af
Refactor completion chosing
2014-03-24 11:37:41 +01:00
Florian Bruhin
a5702c781f
Actually append cmd text on append_cmd_text
2014-03-23 21:36:01 +01:00
Florian Bruhin
8ebd2929fd
Rename model to _model for completionview
2014-03-23 21:34:02 +01:00
Florian Bruhin
ea0ef4fb01
Add FIXME for backspacing
2014-03-23 21:15:17 +01:00
Florian Bruhin
cea6c0934f
Don't set model in init
2014-03-21 20:17:03 +01:00
Florian Bruhin
384e7c1927
Don't append space when completing
2014-03-21 20:12:49 +01:00
Florian Bruhin
b9492d0f1e
Revert "Remove ignore_next"
...
This reverts commit df6c1fd26d
.
2014-03-21 20:11:20 +01:00
Florian Bruhin
bd2aa2d723
Only change completion when necessary
2014-03-21 20:11:18 +01:00
Florian Bruhin
df6c1fd26d
Remove ignore_next
2014-03-21 20:02:17 +01:00
Florian Bruhin
fa6f464e23
Refactor completion model changing
2014-03-21 20:01:13 +01:00
Florian Bruhin
a643bcd617
Store complete model correctly
2014-03-21 19:19:55 +01:00
Florian Bruhin
ed4f168779
Attempt to use separate QSFPMs
2014-03-21 17:00:20 +01:00
Florian Bruhin
df26d4ad91
Completion pattern update
2014-03-10 00:39:15 +01:00
Florian Bruhin
ecf405c7af
Set source model properly
2014-03-10 00:39:15 +01:00
Florian Bruhin
e33b87f713
sourcemodel and logging updates
2014-03-10 00:39:15 +01:00
Florian Bruhin
bd4dba1ed3
Broken setting completion
2014-03-10 00:39:15 +01:00
Florian Bruhin
4e78775d3c
Fix checks
2014-03-10 00:39:14 +01:00
Florian Bruhin
98d15de460
Fix style issues
2014-03-10 00:39:14 +01:00
Florian Bruhin
f079d6bf3b
More config update/adoption
2014-03-10 00:39:14 +01:00
Florian Bruhin
6f093d33c1
Fix paste command
2014-03-04 16:52:56 +01:00
Florian Bruhin
9ee4e93e0a
Split browser.py into smaller files
2014-03-03 21:35:13 +01:00
Florian Bruhin
98fb1a0250
Remove unused imports
2014-03-03 21:24:33 +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
66852aa736
Add FIXME for CompletionItemDelegate
2014-02-26 21:54:24 +01:00
Florian Bruhin
a9a4b2ac92
Add profile.py
2014-02-26 21:18:53 +01:00
Florian Bruhin
4925d25c36
Remove wrong 'cur.' for BrowserTab
2014-02-24 17:37:48 +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
b59f0e9a34
Rename types.py to usertypes.py
2014-02-23 16:30:07 +01:00
Florian Bruhin
5f78b96cb1
Move cur_* methods for TabbedBrowser to CurCommandDispatcher class
2014-02-21 22:00:41 +01:00
Florian Bruhin
e47d13d725
Fix initial tab opening
2014-02-21 20:06:42 +01:00
Florian Bruhin
38ef8fe8c7
First attempt at proper AboutSchemeHandler
2014-02-20 23:08:27 +01:00
Florian Bruhin
ec1951c56c
Move abouthandler to network subpackage
2014-02-20 22:26:25 +01:00
Florian Bruhin
65ae1882f0
Move NetworkManager to own file
2014-02-20 22:26:25 +01:00
Florian Bruhin
82f7e46459
Use NeighborList for history in statusbar.
2014-02-20 20:47:26 +01:00
Florian Bruhin
cf2133bb96
Add zoomin/zoomout commands.
2014-02-20 19:55:35 +01:00
Florian Bruhin
dc179a65bb
Add temp_message signal to BrowserTab
2014-02-20 19:55:35 +01:00
Florian Bruhin
ab8fef3cdb
Add new NeighborList datatype
2014-02-20 19:55:35 +01:00
Florian Bruhin
561a7e1cdd
Add workaround to keystring so it gets cleared properly.
2014-02-19 23:08:38 +01:00
Florian Bruhin
1c921a77f6
Set scroll percentage to 0 in __init__
2014-02-19 16:25:15 +01:00
Florian Bruhin
21cf1cc700
Remove unnecessary lambda
2014-02-19 15:57:13 +01:00
Florian Bruhin
3a140b9a1c
Split text to normal/error/tmp again, show text.
...
This splits the text shown in the statusbar into normal/error/temporary
text again, and shows the text when idle instead of the command.
2014-02-19 15:40:43 +01:00
Florian Bruhin
c2e3039702
Only hide temporary error message on non-modifiers
2014-02-19 14:57:31 +01:00
Florian Bruhin
cb47ae1b43
Fix pyqtSlot() decorations.
2014-02-19 14:57:16 +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
c57e78b765
Display temporary messages in statusbar.
...
For some odd reason, old messages still don't get cleared properly.
2014-02-19 14:44:37 +01:00
Florian Bruhin
4b91915090
Bugfix: initialize _url_stack for Browser properly.
2014-02-19 14:44:00 +01:00
Florian Bruhin
93065188a7
All-caps constants
2014-02-19 11:11:19 +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
6d709d9fd8
Allow completion widget height to be configured in %
2014-02-18 19:05:56 +01:00
Florian Bruhin
9318558eb6
Make completion height configurable
2014-02-18 18:42:43 +01:00
Florian Bruhin
9568be3d2a
Use default geometry if no geometry was saved.
2014-02-18 18:38:48 +01:00
Florian Bruhin
96747c9d58
Reordering in widget submodules
2014-02-18 18:32:07 +01:00
Florian Bruhin
034f85b1d4
Use property for CompletionFilterModel.srcmodel
2014-02-18 17:57:58 +01:00
Florian Bruhin
0425ce7b48
Extend paintEvent instead of using an eventFilter
2014-02-18 17:26:26 +01:00
Florian Bruhin
2fe2ca85c2
Set WA_StyledBackground for statusbar instead of overriding paintEvent
2014-02-18 16:57:10 +01:00
Florian Bruhin
911d5d3b4a
Refactor ALL the things
2014-02-18 16:51:01 +01:00
Florian Bruhin
3d37b22fb0
Cleanup
2014-02-18 14:21:39 +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
8ba4661838
bugfix: Fix command history
2014-02-18 10:50:41 +01:00
Florian Bruhin
d349a987c7
CrashDialog: add Stretch before buttons.
2014-02-18 08:52:37 +01:00
Florian Bruhin
8c1619236b
CrashDialog: fix layout setting issue
2014-02-18 08:52:25 +01:00
Florian Bruhin
8d9280d1d8
Set more parents
2014-02-18 08:37:05 +01:00
Florian Bruhin
2779b2f42e
Fix cur_scroll_page regression.
2014-02-17 22:24:17 +01:00
Florian Bruhin
14a090c087
More shutdown/crashing improvments.
2014-02-17 20:30:09 +01:00
Florian Bruhin
9c0f0e8ac5
Add last_close setting.
2014-02-17 16:50:41 +01:00
Florian Bruhin
01096b995c
Store more Qt properties as class attributes.
2014-02-17 16:09:27 +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
9257f0c98a
Don't keep static references to QPainter.
...
For some reason, this seems to cause a segfault.
2014-02-17 08:42:12 +01:00
Florian Bruhin
76a459f604
Add more hard references.
...
This should prevent some segfaults, as pointed out by [1].
[1]: https://github.com/integricho/path-of-a-pyqter/tree/master/qttut02
2014-02-17 08:19:30 +01:00
Florian Bruhin
933296f47f
Move models to qutebrowser.models
2014-02-14 17:41:12 +01:00
Florian Bruhin
434a904335
Add icon= to error html format()
2014-02-14 07:50:31 +01:00
Florian Bruhin
e56ed54102
Add broken error pages
2014-02-14 07:17:36 +01:00
Florian Bruhin
203fa3eb34
Docstring grammar fixes
2014-02-13 18:57:19 +01:00
Florian Bruhin
62f140cf88
Remove unneeded self.show()s
2014-02-13 18:47:39 +01:00
Florian Bruhin
176c1aa7d6
Use float() where applicable, not int()
2014-02-13 11:48:25 +01:00
Florian Bruhin
029813c8eb
Implement page-wise scrolling.
2014-02-13 10:28:09 +01:00
Florian Bruhin
7deab20820
Cleanup, more checks
2014-02-13 09:10:53 +01:00
Florian Bruhin
963b90ae74
Disable pylint maybe-no-member in TabWidget._init_config
2014-02-13 09:00:07 +01:00
Florian Bruhin
5b0e24b799
Make tabbar configurable.
2014-02-13 08:56:01 +01:00
Florian Bruhin
d7f58015bb
Set sizePolicy of Command to minimumExpanding.
2014-02-13 07:16:47 +01:00
Florian Bruhin
4271200846
Emit urlChanged immediately when opening a new tab.
2014-02-13 07:11:18 +01:00
Florian Bruhin
ca97a50820
Call tab.openurl _after_ connecting signals.
2014-02-13 07:10:41 +01:00
Florian Bruhin
0326a66758
Don't color progress bar anymore.
2014-02-13 07:06:34 +01:00
Florian Bruhin
6538dbbdf1
Colorize URLs in statusbar, fix hovering.
...
Before, when hovering from an URL to another URL, the old hover-URL was
saved as old-url. This is now fixed.
2014-02-13 06:58:17 +01:00
Florian Bruhin
76ba7921d4
Elide statusbar text/URLs correctly.
2014-02-12 23:56:23 +01:00
Florian Bruhin
626b9fc3b8
Ignore StatusBar sizehint
2014-02-12 23:04:46 +01:00
Florian Bruhin
d343ea26af
Don't use QMainWindow
2014-02-12 23:04:46 +01:00
Florian Bruhin
f893b11f1b
Fix progress bar being red hopefully.
2014-02-12 17:13:31 +01:00
Florian Bruhin
5342b88519
linting update
2014-02-12 17:00:50 +01:00
Florian Bruhin
c0dc9f8622
Use Qt properties for condition coloring.
2014-02-12 17:00:39 +01:00
Florian Bruhin
002118953c
Use separate QHBoxLayout elements for statusbar.
2014-02-12 08:48:54 +01:00
Florian Bruhin
c77589a821
Make SignalCache an own class.
2014-02-11 14:04:36 +01:00
Florian Bruhin
d4e69c955e
Show hovered link in statusbar.
2014-02-11 13:33:33 +01:00
Florian Bruhin
1134461953
Make it possible to ignore signals for cache.
2014-02-11 13:27:26 +01:00
Florian Bruhin
d37318b851
Immediately emit cur_url_changed when opening new tab.
2014-02-11 13:08:15 +01:00
Florian Bruhin
9aa49b7fe8
Pad scroll percentage.
2014-02-11 13:06:02 +01:00
Florian Bruhin
d89098582f
Show URL in statusbar.
2014-02-11 11:50:37 +01:00
Florian Bruhin
7486cb628a
Revert "Delete QWebViews when tabs are closed."
...
This reverts commit 83276b9576
.
This causes lots of segfaults and other strange stuff when a tab is
closed.
2014-02-11 11:31:20 +01:00
Florian Bruhin
83276b9576
Delete QWebViews when tabs are closed.
2014-02-11 11:17:53 +01:00