Oliver Caldwell
54ff2aa46c
Merge remote-tracking branch 'TheCompiler/master' into relax-editor-templating
2016-01-31 22:43:58 +00:00
Oliver Caldwell
e9128ebb2a
Relax editor templating
...
I tried to set my editor to `termite -e "vim -f {}"`, termite being a
pretty cool and light terminal I use within my i3wm Arch linux box.
So when I open my editor I want it to launch a terminal with Vim inside
instead of GVim for various reasons.
The validation rejected this at first because it was looking for '{}'
inside ['foo', 'bar', 'baz {}'], essentially. So I need it to look
inside the sub-strings, not just the list.
Then after validation I need to perform the '{}' replacement inside the
sub-string too, not just replacing the whole string.
2016-01-26 09:18:43 +00:00
Jakub Klinkovský
4d7e39470e
Added paste-primary command
...
The Shift+Ins key should arguably insert primary selection, not the
clipboard selection as every Qt program does. This commit makes it
possible via the hidden paste-primary command (enabled by default).
Unfortunately QtWebKit does not provide any straightforward way to
insert text at cursor position into editable fields, so we work around
this by executing a JavaScript snippet - inspired by this SO answer:
http://stackoverflow.com/a/11077016
2016-01-21 22:30:43 +01:00
Florian Bruhin
c02183652f
Fix starting with -c "" and add test.
...
Fixes #1169 .
2016-01-20 18:20:19 +01:00
Florian Bruhin
c8538bdbb8
Fix config validation for String types.
...
Fixes #1231 .
2016-01-18 07:29:15 +01:00
Florian Bruhin
df03099468
Fix completion for String config type.
...
Since 2a705e2eb6
non-specialized config types are
String. However, String had an overloaded complete() which defaulted to
returning None.
Now we use the normal complete() which relies on valid_values if completions
isn't given instead.
Fixes #1223 .
2016-01-12 18:53:53 +01:00
Florian Bruhin
a97ba9aa09
Merge branch 'pdfjs' of https://github.com/Kingdread/qutebrowser into Kingdread-pdfjs
2016-01-05 07:21:26 +01:00
Florian Bruhin
a5f2ac5f03
Adjust copyright years.
2016-01-04 07:12:39 +01:00
Daniel Schadt
3a13e46c25
disable pdfjs by default
2015-12-20 19:24:41 +01:00
Daniel Schadt
8b141037ef
Add setting value to enable/disable pdf.js
2015-12-20 19:24:41 +01:00
Florian Bruhin
24607fda8b
Mark tabs -> auto-hide as removed as well.
...
tabs -> hide-auto was removed in d8017a04a8
because it was easier to do so compared to transforming it correctly when tabs
-> show was introduced. However, tabs -> auto-hide (the even older version)
wasn't removed, breaking config migration from earlier versions.
Fixes #1171 .
2015-12-11 08:50:26 +01:00
Florian Bruhin
10dd1b50b9
Split ConfigManager.read from constructor.
2015-12-11 08:50:26 +01:00
dylan araps
1bc8d10ac7
Added config option to change tab title alignment
2015-12-07 19:43:43 +11:00
Corentin Jule
d8d873f044
Fix typo for Pep257
2015-12-04 00:28:58 +01:00
Corentin Jule
1941af8add
Fix TypeError on ConfigManager.remove_option
2015-12-03 20:48:50 +01:00
Florian Bruhin
7df01440a3
pylint: Remove unsubscriptable-object workaround.
...
https://bitbucket.org/logilab/pylint/issues/685/ was fixed in pylint 1.5.1.
2015-12-02 17:55:46 +01:00
Florian Bruhin
150a83d8f4
pylint: Remove unneeded supressions.
2015-12-01 22:03:58 +01:00
Florian Bruhin
a156d51844
Don't use for-else when returning.
2015-12-01 21:56:38 +01:00
Florian Bruhin
5f13fd2ece
Merge branch 'log-javascript-console' of https://github.com/flv0/qutebrowser into flv0-log-javascript-console
2015-11-30 08:08:31 +01:00
Florian Bruhin
f93785a0be
Merge branch 'conf-remove-special' of https://github.com/flv0/qutebrowser into flv0-conf-remove-special
2015-11-30 07:42:04 +01:00
Florian Bruhin
6e392f0f09
Add workarounds for pylint/astroid update.
2015-11-30 07:16:12 +01:00
Patric Schmitz
a8b808819a
update log-javascript-console option documentation
2015-11-29 19:24:09 +01:00
Patric Schmitz
b9aa40ea74
remove config types special variable
2015-11-29 18:53:37 +01:00
Patric Schmitz
98a454a428
log-javascript-console -> [none, debug, info]
2015-11-29 18:37:11 +01:00
Patric Schmitz
03ba38578e
set valid_values after __init__ consistently, move type validation out of class into pytest
2015-11-28 18:29:51 +01:00
Patric Schmitz
fdde05569c
remove redundant __init__ and rely on base class
2015-11-28 18:29:51 +01:00
Patric Schmitz
c322130dc0
style changes
2015-11-28 18:29:51 +01:00
Patric Schmitz
6f65397dfe
always set valid_values in __init__ instead of class scope variable
2015-11-28 18:29:51 +01:00
Patric Schmitz
9b453aaad5
revert config transformation
2015-11-28 18:29:51 +01:00
Patric Schmitz
9aaf5c18c1
set valid_values in __init__ methods, except for BaseType s.t. variable is shared across derived class scopes
2015-11-28 18:29:51 +01:00
Patric Schmitz
55edd9cda7
add valid_values = None to config basetype
2015-11-28 18:29:51 +01:00
Patric Schmitz
2867df4c21
revert log-javascript-console changes
2015-11-28 18:29:51 +01:00
Patric Schmitz
6431542eba
fixes to config types, remove unneeded derived __init__ and call base __init__
2015-11-28 18:29:51 +01:00
Patric Schmitz
2a705e2eb6
Make non-specialized config types String. Closes #1103
2015-11-28 18:29:51 +01:00
Patric Schmitz
75f9f2af8d
get rid of redundant option description
2015-11-28 18:29:51 +01:00
Patric Schmitz
ff6d3e05a6
log-javascript-console now String option: none, debug, info
...
Make BaseType.valid_values per-instance variable
2015-11-28 18:29:51 +01:00
Daniel Schadt
d082c248a8
Disallow empty values in url-incdec-segments
2015-11-25 19:35:37 +01:00
Florian Bruhin
c73de6ea4d
Change "Added binding ..." logs to vdebug.
2015-11-23 21:41:31 +01:00
xd1le
b9163c5079
doc: Document <unbound> in keys.conf.
...
Closes #1117 .
2015-11-20 00:55:33 +11:00
Florian Bruhin
f20ffca540
Merge branch 'issue923' of https://github.com/lamarpavel/qutebrowser into lamarpavel-issue923
2015-11-17 19:43:35 +01:00
Lamar Pavel
46d335cdee
Update list of user agents with new script.
2015-11-14 16:06:45 +01:00
Lamar Pavel
d745819715
Improve script to print entries grouped by browser
...
The ua_fetch.py has been re-written entirely to find specific entries for
each browser based on diversity rather than sole popularity. The output
is now formatted to print the entries for each browser grouped together.
2015-11-14 15:57:24 +01:00
Florian Bruhin
1da7996c3b
Style fixes.
2015-11-13 22:27:41 +01:00
Florian Bruhin
d99f9a3a20
Improve :set error messages.
2015-11-10 22:09:36 +01:00
Florian Bruhin
54e2cea460
Fix some corner cases with :set.
2015-11-10 21:27:42 +01:00
Florian Bruhin
3fcc27636a
Improve documentation for general -> editor.
2015-11-06 07:02:17 +01:00
Florian Bruhin
6c20190473
Merge branch 'master' of https://github.com/forkbong/qutebrowser into forkbong-master
2015-11-04 07:12:32 +01:00
Florian Bruhin
702842c977
configtypes: Handle max. recursion depth for Regex.
2015-11-04 07:02:23 +01:00
Panagiotis Ktistakis
dc06787f83
Make key config migration for clearing downloads.
2015-11-04 01:01:27 +02:00
Panagiotis Ktistakis
7dadd97f01
Implement :download-clear command.
...
Fixes #1013 .
2015-11-03 20:27:02 +02:00