Fix feedback from #690
This commit is contained in:
parent
c76221c14e
commit
d20872d576
@ -27,6 +27,6 @@
|
||||
path=/tmp/qutebrowser_$(mktemp XXXXXXXX).html
|
||||
|
||||
curl "$QUTE_URL" > $path
|
||||
urxvt -e vim "$path"
|
||||
xterm -e vim "$path"
|
||||
|
||||
rm "$path"
|
||||
|
@ -70,7 +70,7 @@ def run(args):
|
||||
sys.exit(usertypes.Exit.ok)
|
||||
|
||||
if args.temp_basedir:
|
||||
args.basedir = tempfile.mkdtemp()
|
||||
args.basedir = tempfile.mkdtemp(prefix='qutebrowser-prefix-')
|
||||
|
||||
quitter = Quitter(args)
|
||||
objreg.register('quitter', quitter)
|
||||
|
@ -122,8 +122,8 @@ class ExternalEditor(QObject):
|
||||
raise ValueError("Already editing a file!")
|
||||
self._text = text
|
||||
try:
|
||||
self._oshandle, self._filename = tempfile.mkstemp(text=True,
|
||||
prefix='qutebrowser_editor_')
|
||||
self._oshandle, self._filename = tempfile.mkstemp(
|
||||
text=True, prefix='qutebrowser-editor-')
|
||||
if text:
|
||||
encoding = config.get('general', 'editor-encoding')
|
||||
with open(self._filename, 'w', encoding=encoding) as f:
|
||||
|
@ -166,6 +166,7 @@ def fuzzy_url(urlstr, cwd=None, relative=False, do_search=True):
|
||||
path = None
|
||||
|
||||
stripped = urlstr.strip()
|
||||
|
||||
if path is not None and os.path.exists(path):
|
||||
log.url.debug("URL is a local file")
|
||||
url = QUrl.fromLocalFile(path)
|
||||
@ -181,6 +182,7 @@ def fuzzy_url(urlstr, cwd=None, relative=False, do_search=True):
|
||||
url = qurl_from_user_input(stripped)
|
||||
log.url.debug("Converting fuzzy term {} to URL -> {}".format(
|
||||
urlstr, url.toDisplayString()))
|
||||
|
||||
if do_search and config.get('general', 'auto-search'):
|
||||
qtutils.ensure_valid(url)
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user