1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-18 14:45:45 +01:00

-TODO: :<Tab> leaves the cursor at the head of the line

This commit is contained in:
Kris Maglione
2008-12-02 09:03:45 +00:00
parent 3671422a3b
commit 4336e740a7
3 changed files with 9 additions and 15 deletions

1
TODO
View File

@@ -39,7 +39,6 @@ BUGS:
- :runtime is broken, possibly Windows only - :runtime is broken, possibly Windows only
- :regressions is broken, also now blanks the MOW when run - :regressions is broken, also now blanks the MOW when run
- more prompt now reads "-- More --" at the end of multipage output when there is no more content - more prompt now reads "-- More --" at the end of multipage output when there is no more content
- :<Tab> leaves the cursor at the head of the line
- wildmode= doesn't work - perhaps it never worked despite being documented - wildmode= doesn't work - perhaps it never worked despite being documented
FEATURES: FEATURES:

View File

@@ -169,17 +169,10 @@ function CommandLine() //{{{
if (full) if (full)
{ {
if (event.shiftKey) if (event.shiftKey)
{
completionIndex--; completionIndex--;
if (completionIndex < -1)
completionIndex = completions.items.length - 1;
}
else else
{
completionIndex++; completionIndex++;
if (completionIndex > completions.items.length) completionIndex = Math.max(0, Math.min(completions.items.length - 1, completionIndex));
completionIndex = 0;
}
statusTimer.tell(); statusTimer.tell();
} }
@@ -209,7 +202,8 @@ function CommandLine() //{{{
previewClear(); previewClear();
let editor = commandWidget.inputField.editor; let editor = commandWidget.inputField.editor;
editor.selection.focusNode.textContent = command.substring(0, completions.start) + compl + completionPostfix; commandWidget.value = command.substring(0, completions.start) + compl + completionPostfix;
editor.selection.focusNode.textContent = commandWidget.value;
let range = editor.selection.getRangeAt(0); let range = editor.selection.getRangeAt(0);
range.setStart(range.startContainer, completions.start + compl.length); range.setStart(range.startContainer, completions.start + compl.length);

View File

@@ -349,11 +349,12 @@ ____
Change the behaviour of [m]<Return>[m] in hint mode. Possible values: Change the behaviour of [m]<Return>[m] in hint mode. Possible values:
`---------`---------------------------------------------------------------------------------------------------------------------------------------------------------- `---------`----------------------------------------------------------
*0* Default behavior. Link is followed as soon as text uniquely identifies it. Pressing [m]<Return>[m] follows the tab selected hint (if any) or the first link. *0* Follow the first hint as soon as typed text uniquely identifies it.
*1* Like 0, but don't follow link automatically if text has uniquely identified it. Follow the selected hint on [m]<Return>[m].
*2* Like 1, but don't follow first link if there are more than 1 possibilities. *1* Follow the selected hint on [m]<Return>[m].
--------------------------------------------------------------------------------------------------------------------------------------------------------------------- *2* Follow the selected hint on [m]<Return>[m] only it's been [m]<Tab>[m]-selected.
---------------------------------------------------------------------
____ ____