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
~~~~~
- 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 `: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 `/`).

View File

@ -211,7 +211,7 @@ Start hinting.
- `fill`: Fill the commandline with the command given as
argument.
- `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.
- `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.
==== 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.
* +*-d*+, +*--detach*+: Whether the command should be detached from qutebrowser.

View File

@ -18,7 +18,7 @@ qutebrowser to run them.
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
command or key binding).

View File

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

View File

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

View File

@ -17,7 +17,7 @@
# You should have received a copy of the GNU General Public License
# 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.path
@ -323,7 +323,7 @@ def store_source(frame):
def run(cmd, *args, win_id, env, verbose=False):
"""Convenience method to run an userscript.
"""Convenience method to run a userscript.
Args:
cmd: The userscript binary to run.

View File

@ -133,7 +133,7 @@ class Completer(QObject):
"""Get a completion model based on an enum member.
Args:
completion: An usertypes.Completion member.
completion: A usertypes.Completion member.
parts: The parts currently in the commandline.
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)
if (self._question.mode == usertypes.PromptMode.user_pwd and
self._question.user is None):
# User just entered an username
# User just entered a username
self._question.user = prompt.lineedit.text()
prompt.txt.setText("Password:")
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):
"""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:
urlstr: URL to load as a string.
@ -273,7 +273,7 @@ def is_url(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
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.
yesno: A question which can be answered with yes/no.
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.
For yesno, None (no default), True or False.
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',
'[Aa]uxillary', '[Aa]ccidentaly', '[Aa]mbigious', '[Ll]oosly',
'[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 |= {'[Ww]ebelements', '[Mm]ouseevent', '[Kk]eysequence',