Florian Bruhin
75a8938e83
Add flake8-bugbear
2017-11-26 21:50:12 +01:00
Florian Bruhin
248a12a8b9
Add flake8-comprehensions
2017-11-26 21:42:50 +01:00
Florian Bruhin
b5dd647678
Upgrade pydocstyle/flake8-docstrings
...
See #3320
2017-11-26 20:30:32 +01:00
狼耳
e8db59a9ef
Use socat exit status to determine if the socket is usable
...
Instead of checking, if *any* qutebrowser process is running (which may or may not have an IPC socket where we expect it), simply launch a new instance *if socat fails*.
Which it does, if:
* the socket file doesn't exist (qutebrowser simply not running), or
* the socket isn't connectable (qutebrowser crashed, left orphaned socket)
Also put new instances into background, so the script behaves a bit more consistently. (Else it *sometimes* blocks and *sometimes doesn't*, when run.)
2017-11-25 11:09:57 +01:00
狼耳
765a22189c
check if qutebrowser process is running
...
Sometimes when qutebrowser crashes, it leaves the IPC socket file behind. In those cases this script still tried to use it, failed, and didn't open your URL at all.
2017-11-24 14:52:33 +01:00
Josefson Fraga
3131d3d3bc
Flake8 warnings pointed by travis.
2017-11-17 11:48:34 -03:00
Josefson Fraga
96599b9684
revisions set by The Compiler
2017-11-17 02:38:56 -03:00
Florian Bruhin
9febcc2e76
Use https:// links for qutebrowser.org
...
Fixes #3289
2017-11-14 10:43:05 +01:00
Florian Bruhin
f6cc6677dd
Remove hiding of commands
...
This was often confusing for people - let's instead just hide commands which are
not available in normal mode.
2017-11-13 09:02:16 +01:00
Florian Bruhin
f6e6f9d27b
Make qutebrowser aware of settings requiring a restart
...
See #3270
2017-11-12 17:17:19 +01:00
Florian Bruhin
78f4abf5a1
Merge pull request #3257 from ryan-farley/import-chrome
...
importer: Chrome support
2017-11-10 09:02:09 +01:00
Ryan Farley
2b7210f6d1
importer: trailing commas
2017-11-08 15:11:07 -06:00
Ryan Farley
8a695648d3
:%s/Qutebrowser/qutebrowser/g
2017-11-08 15:08:20 -06:00
Ryan Farley
f5d719dfd4
importer: Chrome support
...
This adds Chrome/Chromium support to the importer (which ought to be the
last of these). Bookmarks are read from JSON, while keywords/search
engines (the same thing here) are read from the Web Data sqlite3
database, and converted from OpenSearch format.
importer: add tests for opensearch
2017-11-06 21:19:57 -06:00
Michal Siedlaczek
855d0312b5
Review fixes
2017-11-05 18:12:15 -05:00
Michal Siedlaczek
9ea986a569
Fixed typo
2017-11-04 20:02:49 -04:00
Michal Siedlaczek
3ac2cfdf73
Support updating dictionaries and removing old versions.
2017-11-04 18:16:05 -04:00
Florian Bruhin
568bb5d540
Merge pull request #3229 from ryan-farley/import-moz-bookmarks
...
importer: add mozilla places.sqlite support
2017-11-03 14:41:10 +01:00
Florian Bruhin
4a1cdef887
Fix indent
2017-11-02 11:03:19 +01:00
Ryan Farley
2e051ab008
importer: add mozilla places.sqlite support
...
This adds supports for the places.sqlite format as used by Firefox,
Seamonkey, Pale Moon, and presumably others. Search engine support is
limited to keyword-style '%s' functionality.
vulture whitelist for row_factory
2017-11-01 15:33:13 -05:00
Gyorgy Orban
bb54a954fe
use subprocess run
...
The usage of subprocess.run is recommended since python 3.5.
Popen, check_call, call and check_output calls were replaced with run.
2017-11-01 09:59:32 +01:00
Florian Bruhin
0b86b302a2
pylint: Turn off some more too-many-* stuff globally
...
Humans are just better at judging what's okay here than a machine.
2017-10-31 07:35:00 +01:00
Florian Bruhin
2becc17099
Merge remote-tracking branch 'origin/pr/2966'
2017-10-31 07:15:52 +01:00
Ryan Farley
879e8dfb2c
fix D401 in importer
2017-10-26 17:09:45 -05:00
Florian Bruhin
dc01b4eaf0
Use Pygments for syntax highlighting
2017-10-26 22:42:55 +02:00
Ryan Farley
5d2975293b
remove unused import
2017-10-25 16:49:12 -05:00
Ryan Farley
3d87f4ebdf
default to Netscape format for importer
2017-10-25 14:52:53 -05:00
Ryan Farley
38e3c1ee8f
fix whitespace
2017-10-24 19:58:38 -05:00
Ryan Farley
137a7114e1
importer: documentation of bookmark types
2017-10-24 19:41:22 -05:00
Ryan Farley
4ed7fe731d
removed wrong option
2017-10-24 17:31:42 -05:00
Florian Bruhin
984dd1ba8c
Fix remaining pylint/flake8 issues
2017-10-24 09:37:10 +02:00
siddhugolu
570f1a849f
modified as requested
2017-10-24 12:20:07 +05:30
siddhugolu
bc9d305354
modified as requested
2017-10-23 01:46:02 +05:30
siddhugolu
4862b2faf9
modified pylint pragmas
2017-10-22 23:52:35 +05:30
Ryan Farley
31f1025ff8
escape search engine URLs in importer
2017-10-21 18:12:25 -05:00
Ryan Farley
af8a5c58da
use sys.exit
2017-10-17 14:48:56 -05:00
Ryan Farley
73c5666ff9
various importer fixes
...
* Line breaks reinserted
* None in place of ''
* Check for browser before selecting default input format (to fix
KeyError)
* Remove redundant -S option and clarify help to make it slightly more
obvious what output formats make sense
* Added long-form arguments and slightly more sensible names (not really a
fix, but I personally like having them)
2017-10-17 14:48:56 -05:00
Ryan Farley
a6ed079011
make browser argument optional
2017-10-17 14:48:56 -05:00
Ryan Farley
84b2b05254
help text mod
...
Browser choices are now formatted in the help text rather than listed
manually. Redundant line regarding output default removed from epilogue
2017-10-17 14:48:56 -05:00
Ryan Farley
d85a15f0a2
style, variable name typo
2017-10-17 14:48:56 -05:00
Ryan Farley
aa0613c6d8
support multiple input formats
...
This restructures things to better support future implementations of
other input formats. The default formats are specified in a global dict
of browsers, which prevents duplicating the list of choices for browser
in bother get_args() and main(), and a new option enables overriding of
the default.
2017-10-17 14:48:56 -05:00
Ryan Farley
799fe5deb3
default to new search format
2017-10-17 14:48:56 -05:00
Ryan Farley
898dde566d
fix whitespace issues
2017-10-17 14:48:56 -05:00
Ryan Farley
c163f702c2
fix config.val in format
2017-10-17 14:48:56 -05:00
Ryan Farley
31bbc8c5b3
importer support for keywords and search engines
...
This allows importer.py to process Netscape HTML exports from Firefox
(and other Mozilla browsers) with three distinct types:
* bookmarks (sans shortcuturl attribute)
* keywords (bookmarks with a shortcuturl attribute)
* searches (keywords with a URL containing a %s substitution)
The first two can be combined at will in either quickmark or bookmark
output formats, the only difference being that keywords will be used in
place of titles when exporting to quickmark format. Searches are
exported to qutebrowser.conf format, or the new config.py format.
Dictionaries are used in the import function for readability's sake, but
the command line arguments follow the same general formula of true-false
flags used to select input bookmark types and the output format.
2017-10-17 14:48:55 -05:00
Florian Bruhin
807b7701d5
Re-add blank line
2017-10-17 21:11:14 +02:00
Jay Kamat
62b6d62cd7
Clean up sub-module import and unneeded +
2017-10-17 14:22:18 -04:00
Jay Kamat
95761c5023
Fix crashes on qute_pylint module when not running in the root
...
Useful for editors that run from non-root directories for
integrations, but skips some tests. Shouldn't impact tests run normally.
2017-10-17 10:36:37 -04:00
Florian Bruhin
8d169597ae
Fix lint for standardpaths_tester
2017-10-17 09:06:52 +02:00
Florian Bruhin
db874d8bba
Show apps with/without QApplication in standardpaths_tester
2017-10-17 06:34:08 +02:00
Florian Bruhin
544c508fac
Add standardpaths_tester.py
2017-10-17 06:22:40 +02:00
Jay Kamat
4ff44eff7b
Clean up logic for finding git hash
...
Also add implementation for release scripts as well
2017-10-14 18:08:52 -04:00
Florian Bruhin
1b5f1aaebf
Merge remote-tracking branch 'origin/pr/3055'
2017-10-11 14:37:59 +02:00
Florian Bruhin
5f7ce74e66
Install LibYAML on macOS on Travis
...
See #2777
2017-10-11 13:15:15 +02:00
Florian Bruhin
d78c184b6a
Break long lines in travis_run.sh
2017-10-11 13:15:15 +02:00
Florian Bruhin
1a8de3b504
Check for YAML C extensions on Travis
...
See #2777
2017-10-11 13:15:15 +02:00
Florian Bruhin
6c300f41dd
Don't use urllib.parse.urljoin to concatenate URLs
...
It doesn't support more than two arguments, and it's not really needed with the
predictable URLs we have anyways.
See #2891 .
2017-10-08 16:46:15 +02:00
Florian Bruhin
277daa334d
Merge remote-tracking branch 'origin/pr/2891'
2017-10-08 15:23:01 +02:00
Michal Siedlaczek
4bac2f3e44
Initialize profiles with spellchecking turn on by default.
2017-10-06 07:58:26 -04:00
Michal Siedlaczek
fd9a5fa334
Style fixes
2017-10-05 09:56:13 -04:00
Florian Bruhin
618586f8b0
Merge branch 'config-write-py'
2017-10-05 11:30:50 +02:00
Anton S
0f1444125f
[osx] proper plist to show up in browsers list (by The-Compiler)
2017-10-05 01:16:43 +03:00
Anton S
5350b948ea
[review] gather plist params in one place
2017-10-05 01:13:23 +03:00
Florian Bruhin
09f2b06081
build_release: Fix casing for framework name
2017-10-04 19:09:54 +02:00
Michal Siedlaczek
6d9f04355c
Strip JSON response from Google API of the 5-byte prefix
...
Read more here:
* https://github.com/google/gitiles/issues/22
* https://github.com/google/gitiles/issues/82
2017-10-04 10:06:14 -04:00
Michał Siedlaczek
e20ad95666
Merge branch 'master' into spell
2017-10-04 09:47:42 -04:00
Michal Siedlaczek
6a486058c5
Review fixes
2017-10-04 09:22:35 -04:00
Florian Bruhin
36857d9250
Remove valid values for Bool from docs
2017-10-04 11:46:42 +02:00
Michal Siedlaczek
932e7a9ab9
Review fixes
2017-10-03 20:07:06 -04:00
Anton S
68481bc989
[osx] declare html files support as well
2017-10-04 00:02:03 +03:00
Josefson Fraga
92f9a8503e
add required redirect (url,title,atime,redirect)
2017-10-03 01:55:31 -04:00
Josefson Fraga
665a76561e
add insertions to ComandHistory table as well
2017-10-02 22:50:52 -04:00
Florian Bruhin
64e0313090
Fix commas in settings docs
...
Otherwise, asciidoc interprets it as a third parameter to the xref...
Fixes #3046
2017-10-02 20:12:32 +02:00
Josefson Fraga
4dc232f259
pylint fixes
2017-10-02 13:54:24 -04:00
Florian Bruhin
a8fc561707
Split config commands off to their own file.
2017-10-02 07:08:30 +02:00
Josefson Fraga
c6d140a40a
adding script to import history data from other browsers
2017-10-02 00:26:47 -04:00
Josefson Fraga
8cb6b832d1
script to import history data from other browsers
2017-10-02 00:24:59 -04:00
Anton S
a576fae893
[osx] declare URLs support in Info.plist
2017-10-02 01:04:12 +03:00
Florian Bruhin
1a381bf0a5
eslint: Report unused disables
2017-09-29 22:29:18 +02:00
Florian Bruhin
9607f3de59
Improve type documentation of settings
...
Use .get_name() for the docs
2017-09-27 08:25:52 +02:00
Florian Bruhin
474bf8ad06
Remove unneeded as-import
2017-09-26 10:47:07 +02:00
Florian Bruhin
5a60630450
Don't use utils.is_* in build_release.py
...
This partially reverts ef1c83862b
Otherwise, we'd have to have PyQt5 installed in the environment which runs
build_release.py.
2017-09-26 07:25:59 +02:00
Florian Bruhin
e766cf5ed1
build_release: print artifacts if not releasing
2017-09-26 07:13:54 +02:00
Florian Bruhin
459bbc3a6f
Add configinit to PERFECT_FILES
2017-09-22 20:26:56 +02:00
Florian Bruhin
69d19e49df
Fix flake8
2017-09-22 13:20:18 +02:00
Florian Bruhin
43ab27634f
Fix vulture
2017-09-22 11:07:54 +02:00
Florian Bruhin
cd9fe57d84
build_release: Also run asciidoc2html on Linux
2017-09-21 23:03:02 +02:00
Florian Bruhin
c74236dd96
Move some data from setupcommon to setup.py
...
We can't get rid of setupcommon entirely (it's needed by PyInstaller), but at
least we can get the data back to setup.py.
Fixes #2996
2017-09-21 22:54:58 +02:00
Michal Siedlaczek
95592770a7
Fixing test dependencies and other test issues
2017-09-21 09:53:51 -04:00
Michal Siedlaczek
c2197102a3
Enable spell checking and installing dictionaries for QtWebEngine
2017-09-21 09:51:52 -04:00
Florian Bruhin
ef1c83862b
Use utils.is_* for platform checks everywhere
2017-09-20 11:10:24 +02:00
Florian Bruhin
54ceb52eaf
Switch to using Item.get_report() for vulture
2017-09-20 08:17:04 +02:00
Florian Bruhin
1de25c14e4
Add attrs to setup.py
2017-09-19 22:36:37 +02:00
Florian Bruhin
3a5241b642
Start using attrs
...
Closes #1073
2017-09-19 22:21:45 +02:00
Florian Bruhin
505321c336
Drop support for Python 3.4
...
See #2742
2017-09-18 23:01:17 +02:00
Florian Bruhin
7b42e38dae
Fix more file move issues
2017-09-17 22:10:06 +02:00
Florian Bruhin
2398a58526
Fix more file move issues
2017-09-17 21:54:42 +02:00
Florian Bruhin
4c616a5733
Move all documentation files to doc/
2017-09-17 21:27:38 +02:00
Florian Bruhin
413c7ec1ac
Add config type docstrings to settings.asciidoc
2017-09-15 17:21:11 +02:00
Florian Bruhin
ee5dd7fad2
Remove interpolation FIXME and DEFAULT_FONT_SIZE
...
This is just not going to happen, and with the new config we have no good way of
supporting a DEFAULT_FONT_SIZE.
2017-09-15 14:11:10 +02:00