Fix 'an user' spelling.

This commit is contained in:
Florian Bruhin 2015-06-29 17:48:30 +02:00
parent db06eeded5
commit 7b8490b6c0
11 changed files with 16 additions and 16 deletions

View File

@ -20,7 +20,7 @@ v0.3.0
Added Added
~~~~~ ~~~~~
- New commands `:message-info`, `:message-error` and `:message-warning` to show messages in the statusbar, e.g. from an userscript. - New commands `:message-info`, `:message-error` and `:message-warning` to show messages in the statusbar, e.g. from a userscript.
- New command `:scroll-px` which replaces `:scroll` for pixel-exact scrolling. - New command `:scroll-px` which replaces `:scroll` for pixel-exact scrolling.
- New command `:jseval` to run a javascript snippet on the current page. - New command `:jseval` to run a javascript snippet on the current page.
- New (hidden) command `:follow-selected` (bound to `Enter`/`Ctrl-Enter` by default) to follow the link which is currently selected (e.g. after searching via `/`). - New (hidden) command `:follow-selected` (bound to `Enter`/`Ctrl-Enter` by default) to follow the link which is currently selected (e.g. after searching via `/`).

View File

@ -211,7 +211,7 @@ Start hinting.
- `fill`: Fill the commandline with the command given as - `fill`: Fill the commandline with the command given as
argument. argument.
- `download`: Download the link. - `download`: Download the link.
- `userscript`: Call an userscript with `$QUTE_URL` set to the - `userscript`: Call a userscript with `$QUTE_URL` set to the
link. link.
- `spawn`: Spawn a command. - `spawn`: Spawn a command.
@ -539,7 +539,7 @@ Note the {url} variable which gets replaced by the current URL might be useful h
* +'cmdline'+: The commandline to execute. * +'cmdline'+: The commandline to execute.
==== optional arguments ==== optional arguments
* +*-u*+, +*--userscript*+: Run the command as an userscript. * +*-u*+, +*--userscript*+: Run the command as a userscript.
* +*-v*+, +*--verbose*+: Show notifications when the command started/exited. * +*-v*+, +*--verbose*+: Show notifications when the command started/exited.
* +*-d*+, +*--detach*+: Whether the command should be detached from qutebrowser. * +*-d*+, +*--detach*+: Whether the command should be detached from qutebrowser.

View File

@ -18,7 +18,7 @@ qutebrowser to run them.
Getting information Getting information
------------------- -------------------
The following environment variables will be set when an userscript is launched: The following environment variables will be set when a userscript is launched:
- `QUTE_MODE`: Either `hints` (started via hints) or `command` (started via - `QUTE_MODE`: Either `hints` (started via hints) or `command` (started via
command or key binding). command or key binding).

View File

@ -942,7 +942,7 @@ class CommandDispatcher:
useful here. useful here.
Args: Args:
userscript: Run the command as an userscript. userscript: Run the command as a userscript.
verbose: Show notifications when the command started/exited. verbose: Show notifications when the command started/exited.
detach: Whether the command should be detached from qutebrowser. detach: Whether the command should be detached from qutebrowser.
cmdline: The commandline to execute. cmdline: The commandline to execute.
@ -976,7 +976,7 @@ class CommandDispatcher:
@cmdutils.register(instance='command-dispatcher', scope='window', @cmdutils.register(instance='command-dispatcher', scope='window',
deprecated='Use :spawn --userscript instead!') deprecated='Use :spawn --userscript instead!')
def run_userscript(self, cmd, *args: {'nargs': '*'}, verbose=False): def run_userscript(self, cmd, *args: {'nargs': '*'}, verbose=False):
"""Run an userscript given as argument. """Run a userscript given as argument.
Args: Args:
cmd: The userscript to run. cmd: The userscript to run.

View File

@ -519,7 +519,7 @@ class HintManager(QObject):
download_manager.get(url, elem.webFrame().page()) download_manager.get(url, elem.webFrame().page())
def _call_userscript(self, elem, context): def _call_userscript(self, elem, context):
"""Call an userscript from a hint. """Call a userscript from a hint.
Args: Args:
elem: The QWebElement to use in the userscript. elem: The QWebElement to use in the userscript.
@ -731,7 +731,7 @@ class HintManager(QObject):
- `fill`: Fill the commandline with the command given as - `fill`: Fill the commandline with the command given as
argument. argument.
- `download`: Download the link. - `download`: Download the link.
- `userscript`: Call an userscript with `$QUTE_URL` set to the - `userscript`: Call a userscript with `$QUTE_URL` set to the
link. link.
- `spawn`: Spawn a command. - `spawn`: Spawn a command.

View File

@ -17,7 +17,7 @@
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with qutebrowser. If not, see <http://www.gnu.org/licenses/>. # along with qutebrowser. If not, see <http://www.gnu.org/licenses/>.
"""Functions to execute an userscript.""" """Functions to execute a userscript."""
import os import os
import os.path import os.path
@ -323,7 +323,7 @@ def store_source(frame):
def run(cmd, *args, win_id, env, verbose=False): def run(cmd, *args, win_id, env, verbose=False):
"""Convenience method to run an userscript. """Convenience method to run a userscript.
Args: Args:
cmd: The userscript binary to run. cmd: The userscript binary to run.

View File

@ -133,7 +133,7 @@ class Completer(QObject):
"""Get a completion model based on an enum member. """Get a completion model based on an enum member.
Args: Args:
completion: An usertypes.Completion member. completion: A usertypes.Completion member.
parts: The parts currently in the commandline. parts: The parts currently in the commandline.
cursor_part: The part the cursor is in. cursor_part: The part the cursor is in.

View File

@ -230,7 +230,7 @@ class Prompter(QObject):
prompt = objreg.get('prompt', scope='window', window=self._win_id) prompt = objreg.get('prompt', scope='window', window=self._win_id)
if (self._question.mode == usertypes.PromptMode.user_pwd and if (self._question.mode == usertypes.PromptMode.user_pwd and
self._question.user is None): self._question.user is None):
# User just entered an username # User just entered a username
self._question.user = prompt.lineedit.text() self._question.user = prompt.lineedit.text()
prompt.txt.setText("Password:") prompt.txt.setText("Password:")
prompt.lineedit.clear() prompt.lineedit.clear()

View File

@ -141,7 +141,7 @@ def _is_url_dns(urlstr):
def fuzzy_url(urlstr, cwd=None, relative=False, do_search=True): def fuzzy_url(urlstr, cwd=None, relative=False, do_search=True):
"""Get a QUrl based on an user input which is URL or search term. """Get a QUrl based on a user input which is URL or search term.
Args: Args:
urlstr: URL to load as a string. urlstr: URL to load as a string.
@ -273,7 +273,7 @@ def is_url(urlstr):
def qurl_from_user_input(urlstr): def qurl_from_user_input(urlstr):
"""Get a QUrl based on an user input. Additionally handles IPv6 addresses. """Get a QUrl based on a user input. Additionally handles IPv6 addresses.
QUrl.fromUserInput handles something like '::1' as a file URL instead of an QUrl.fromUserInput handles something like '::1' as a file URL instead of an
IPv6, so we first try to handle it as a valid IPv6, and if that fails we IPv6, so we first try to handle it as a valid IPv6, and if that fails we

View File

@ -257,7 +257,7 @@ class Question(QObject):
mode: A PromptMode enum member. mode: A PromptMode enum member.
yesno: A question which can be answered with yes/no. yesno: A question which can be answered with yes/no.
text: A question which requires a free text answer. text: A question which requires a free text answer.
user_pwd: A question for an username and password. user_pwd: A question for a username and password.
default: The default value. default: The default value.
For yesno, None (no default), True or False. For yesno, None (no default), True or False.
For text, a default text as string. For text, a default text as string.

View File

@ -82,7 +82,7 @@ def check_spelling():
'[Oo]ccur[^r .]', '[Ss]eperator', '[Ee]xplicitely', '[Rr]esetted', '[Oo]ccur[^r .]', '[Ss]eperator', '[Ee]xplicitely', '[Rr]esetted',
'[Aa]uxillary', '[Aa]ccidentaly', '[Aa]mbigious', '[Ll]oosly', '[Aa]uxillary', '[Aa]ccidentaly', '[Aa]mbigious', '[Ll]oosly',
'[Ii]nitialis', '[Cc]onvienence', '[Ss]imiliar', '[Uu]ncommited', '[Ii]nitialis', '[Cc]onvienence', '[Ss]imiliar', '[Uu]ncommited',
'[Rr]eproducable'} '[Rr]eproducable', '[Aa]n [Uu]ser'}
# Words which look better when splitted, but might need some fine tuning. # Words which look better when splitted, but might need some fine tuning.
words |= {'[Ww]ebelements', '[Mm]ouseevent', '[Kk]eysequence', words |= {'[Ww]ebelements', '[Mm]ouseevent', '[Kk]eysequence',