Commit Graph

6683 Commits

Author SHA1 Message Date
Florian Bruhin
47c3866f51 Change default config handling.
Now the default config only gets applied (and written to disk) when no
config file doesn't exist yet.
2014-01-22 16:52:35 +01:00
Florian Bruhin
97c6d9f1c9 Don't freak out if no keybind section exists 2014-01-22 16:43:24 +01:00
Florian Bruhin
bdd42a5413 Merge branch 'master' of ssh://lupin/qutebrowser 2014-01-22 08:55:15 +01:00
Florian Bruhin
dca4f8de68 Remove implemented stuff from dwb in TODO 2014-01-22 08:53:42 +01:00
Florian Bruhin
2f65d99d73 TODO update 2014-01-22 08:51:02 +01:00
Florian Bruhin
bf33836dcf Remove QCompleter from statusbar.text 2014-01-21 18:02:07 +01:00
Florian Bruhin
bcd4273672 Split statusbar into multiple files 2014-01-21 17:54:21 +01:00
Florian Bruhin
f87e9c3546 Move CmdValidator out of StatusCommand, add CmdCompleter example 2014-01-21 17:44:50 +01:00
Florian Bruhin
d56344f46a Move some things from x.foo.foo to x.foo (__init__.py) 2014-01-21 15:46:41 +01:00
Florian Bruhin
d18162d902 History fixes 2014-01-21 12:06:23 +01:00
Florian Bruhin
06b1683033 Add colon in set_cmd 2014-01-21 12:01:28 +01:00
Florian Bruhin
133e4c4b61 Improve history
Also adds partial history completion, like zsh
2014-01-21 11:59:01 +01:00
Florian Bruhin
485c7a6316 Implement command history 2014-01-21 11:32:56 +01:00
Florian Bruhin
ca86eea4ae Handle up/down/tab keypresses in StatusCommand 2014-01-21 11:00:52 +01:00
Florian Bruhin
7e3144964e Simplify/cleanup stylesheets and statusbar 2014-01-21 10:48:03 +01:00
Florian Bruhin
b14070845c Use scroll bars and their values for percentage.
For both gg/G and the statusbar indicator, we now use scrollBarValue()
instead of scrollPosition(). This makes a lot of things easier, but
unfortunately this also means we need to have visible scrollbars.
2014-01-21 10:15:25 +01:00
Florian Bruhin
d03f23979d Fix typo 2014-01-21 09:39:30 +01:00
Florian Bruhin
690ff68a99 Add FIXME 2014-01-21 09:07:12 +01:00
Florian Bruhin
8da88f67d0 Set window title 2014-01-21 09:05:31 +01:00
Florian Bruhin
621839dc17 First attempt at a scrolling indicator 2014-01-21 08:37:21 +01:00
Florian Bruhin
373b22690d Add missing config.py 2014-01-21 07:33:54 +01:00
Florian Bruhin
fdf765b267 Implement ScrollPercent{X,Y}, gg and G with count 2014-01-20 17:59:27 +01:00
Florian Bruhin
ac570be7aa Catch ValueError when parsing commands from keybindings 2014-01-20 17:52:39 +01:00
Florian Bruhin
5644eb94a4 Update TODO 2014-01-20 17:36:15 +01:00
Florian Bruhin
5c8043a275 Add aliases for commands 2014-01-20 17:32:04 +01:00
Florian Bruhin
1373b4dab2 Use multiple CommandParser instances 2014-01-20 17:20:17 +01:00
Florian Bruhin
46e846afb9 Add FIXME 2014-01-20 17:05:56 +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
da7a95d6ec Remove usersettings.py again
it's approach is too unflexible for my taste, e.g. I want to be able to
use config sections.
2014-01-20 11:44:43 +01:00
Florian Bruhin
930f84906e Adopt appdirs/usersettings for py3 and qutebrowser 2014-01-20 11:33:47 +01:00
Florian Bruhin
97c2e7aae9 Add usersettings.py
source: https://github.com/glvnst/usersettings
2014-01-20 11:23:48 +01:00
Florian Bruhin
a59535c79c Add appdirs.py
source: https://github.com/ActiveState/appdirs
2014-01-20 11:23:18 +01:00
Florian Bruhin
646ad5efd4 Refactor partial matching in KeyParser._handle() 2014-01-20 09:09:57 +01:00
Florian Bruhin
8d8cc25344 Add FIXME for cmd parsing IndexError 2014-01-20 08:58:56 +01:00
Florian Bruhin
a18f3f5aa5 Fix tab title when webpage has no title 2014-01-20 08:58:49 +01:00
Florian Bruhin
7341193cf0 More FIXME 2014-01-20 08:42:08 +01:00
Florian Bruhin
b5527c834b Add a FIXME for ambigious keys 2014-01-20 08:38:15 +01:00
Florian Bruhin
35dffad869 Fix parsing of single args 2014-01-20 08:36:36 +01:00
Florian Bruhin
044d24903c Add TODO 2014-01-20 07:15:05 +01:00
Florian Bruhin
6acac5cb71 Display keystring in statusbar 2014-01-20 07:01:39 +01:00
Florian Bruhin
289f08f7a7 Start statusbar text widget system 2014-01-20 06:52:41 +01:00
Florian Bruhin
d635cbd3fd Fix shlex parsing 2014-01-20 06:51:59 +01:00
Florian Bruhin
fd9ab82e8b Add :pyeval 2014-01-19 23:54:22 +01:00
Florian Bruhin
bd28c00cf1 Use shlex to split command args, add split_args property 2014-01-19 23:33:13 +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
114c2c01d3 First broken attempt at implementing count 2014-01-19 22:25:54 +01:00
Florian Bruhin
bf99519046 More key refactoring 2014-01-19 20:45:01 +01:00
Florian Bruhin
a6aa95cba8 Clean up esc pressing in statusbar 2014-01-19 20:20:35 +01:00
Florian Bruhin
90cbf5362f Don't always clear status cmd text on focusOut 2014-01-19 20:17:51 +01:00
Florian Bruhin
014f73a2dd Remove esc FIXME
We can't do anything about this, see
https://bugreports.qt-project.org/browse/QTBUG-31527
2014-01-19 20:14:33 +01:00
Florian Bruhin
fb54eb58c1 Start reworking key parsing 2014-01-19 19:41:34 +01:00
Florian Bruhin
3fa18c5599 Remove all the pyqtSlot decorators 2014-01-19 18:45:14 +01:00
Florian Bruhin
bba3696630 commands: Implement scrollstart and scrollend 2014-01-19 18:43:47 +01:00
Florian Bruhin
8ca98da6c4 commands: Add debug output when command is called 2014-01-19 18:43:34 +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
4a95745b71 webview: Turn off scrollbars 2014-01-19 17:39:06 +01:00
Florian Bruhin
26a22d498a Hide progress bar at prog=100% 2014-01-19 17:34:07 +01:00
Florian Bruhin
f816e27c77 Refactor error display/clearing 2014-01-19 17:30:31 +01:00
Florian Bruhin
50b5f84f1d Add TODO 2014-01-19 17:18:46 +01:00
Florian Bruhin
5bab3aa79d tab bar: make font smaller 2014-01-19 17:08:45 +01:00
Florian Bruhin
457c422f5d tabbar: elide text 2014-01-19 16:56:33 +01:00
Florian Bruhin
ee3eedbfb5 status: Hide progress bar when finished loading 2014-01-19 16:56:19 +01:00
Florian Bruhin
0100dcf119 Style progress bar 2014-01-19 16:25:33 +01:00
Florian Bruhin
e1934929b1 Fix progress bar 2014-01-19 15:35:48 +01:00
Florian Bruhin
f96d420619 Add broken progress bar 2014-01-18 00:02:53 +01:00
Florian Bruhin
d500c8b9dd Get rid of tabs list 2014-01-17 23:22:49 +01:00
Florian Bruhin
ff938fc0d5 Add undo command 2014-01-17 23:17:24 +01:00
Florian Bruhin
321c00bbfb Set title correctly 2014-01-17 22:57:00 +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
1b08b88b2b Move signal filtering to generic function 2014-01-17 21:31:14 +01:00
Florian Bruhin
09467abe7e Log progress changes 2014-01-17 20:29:20 +01:00
Florian Bruhin
dfcba88179 Emit progress_changed in tab init 2014-01-17 20:29:07 +01:00
Florian Bruhin
7cdad8e30d Fix esc key 2014-01-17 20:22:50 +01:00
Florian Bruhin
5efa56c5bb Add logging 2014-01-17 20:03:21 +01:00
Florian Bruhin
2b84768902 Remove debug output 2014-01-17 19:42:33 +01:00
Florian Bruhin
294c5fa138 Update cur_progress on tab switch 2014-01-17 13:16:13 +01:00
Florian Bruhin
688b22eaac Move progress handling to TabbedBrowser 2014-01-17 13:08:44 +01:00
Florian Bruhin
c0320a911b First implementation of a progress bar 2014-01-17 12:24:38 +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
4e9527fb4c More fixups 2014-01-17 11:55:16 +01:00
Florian Bruhin
df48208524 tolower() -> lower() 2014-01-17 11:29:06 +01:00
Florian Bruhin
6e700ba4ad Fix inspect namespacing 2014-01-17 11:28:46 +01:00
Florian Bruhin
f61debd2f4 Fix circular import 2014-01-17 11:28:35 +01:00
Florian Bruhin
04140d9777 Remove explicit command name 2014-01-17 11:14:19 +01:00
Florian Bruhin
61c90f293c Split commands to commands/utils 2014-01-17 10:57:27 +01:00
Florian Bruhin
bcc2fa9653 Move browser to widgets 2014-01-17 10:43:50 +01:00
Florian Bruhin
9a20d60c13 Add tab{prev,next} command 2014-01-17 08:39:14 +01:00
Florian Bruhin
c392993c79 Don't close last tab 2014-01-17 08:28:04 +01:00
Florian Bruhin
26df5a8076 Add monospace font for Windows 2014-01-17 08:26:45 +01:00
Florian Bruhin
517fcb02ab Add defaults for signal emitting 2014-01-17 08:12:28 +01:00
Florian Bruhin
19d8202b01 Default to argv=None for commands 2014-01-17 08:11:29 +01:00
Florian Bruhin
928bdbe160 Add tabclose command 2014-01-17 08:03:42 +01:00
Florian Bruhin
ad52436875 Immediately run cmds without args in keyhandler 2014-01-17 07:56:30 +01:00
Florian Bruhin
08207d6f9d Handle focus loss for cmd bar 2014-01-17 07:18:48 +01:00
Florian Bruhin
7d285fa5a3 Add keys to MainWindow, not to tabs 2014-01-17 07:08:56 +01:00
Florian Bruhin
020d079b85 Add error for invalid arg count 2014-01-17 07:06:49 +01:00
Florian Bruhin
cb0c2604f3 Display error on unknown command 2014-01-17 07:04:24 +01:00
Florian Bruhin
837f53edea Add empty command 2014-01-17 06:56:18 +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
a691cc10af Enforce : in status bar command 2014-01-16 21:42:46 +01:00
Florian Bruhin
1736eb20c8 Fix command argument handling 2014-01-16 16:05:31 +01:00
Florian Bruhin
8f9bfb02c3 Fix typo 2014-01-16 16:00:25 +01:00
Florian Bruhin
7c9b6bdbde Use objects in cmd_dict 2014-01-16 15:59:57 +01:00
Florian Bruhin
1d88bb7c9c Connect signals properly 2014-01-16 15:55:52 +01:00
Florian Bruhin
0250f61b8a Import pyqtsignal in statusbar.py 2014-01-16 15:55:44 +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
ef9a5d569e Check argument count 2014-01-16 17:34:45 +01:00
Florian Bruhin
bc6d7fee25 Rewrite command parsing 2014-01-16 17:12:55 +01:00
Florian Bruhin
64568de851 Add commands.py 2013-12-16 22:07:22 +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
f0c9977fa4 Add actual browser 2013-12-15 21:40:15 +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
7bd7c4d84d Use monospace font for tab bar 2013-12-15 20:20:29 +01:00
Florian Bruhin
768622d294 Set document mode to true for tabbar 2013-12-15 20:18:40 +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
Florian Bruhin
2461d74647 Layout changes 2013-12-14 23:25:59 +01:00
Florian Bruhin
ae08f0e33a First real layout 2013-12-14 22:53:37 +01:00
Florian Bruhin
11a94957dc Initial commit 2013-12-14 22:15:16 +01:00