mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-09 23:55:44 +01:00
Fix :viu!.
--HG-- extra : rebase_source : e9f4ea7ad0d59656167aeb2e0fca276c8375c8ee
This commit is contained in:
@@ -1157,7 +1157,7 @@ const Dactyl = Module("dactyl", {
|
|||||||
// show a usage index either in the MOW or as a full help page
|
// show a usage index either in the MOW or as a full help page
|
||||||
showHelpIndex: function (tag, items, inMow) {
|
showHelpIndex: function (tag, items, inMow) {
|
||||||
if (inMow)
|
if (inMow)
|
||||||
dactyl.echo(template.usage(items), commandline.FORCE_MULTILINE);
|
commandline.commandOutput(template.usage(array(items).sort(function (a, b) String.localeCompare(a.name, b.name))));
|
||||||
else
|
else
|
||||||
dactyl.help(tag);
|
dactyl.help(tag);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -186,7 +186,13 @@ const Mappings = Module("mappings", {
|
|||||||
|
|
||||||
// NOTE: just normal mode for now
|
// NOTE: just normal mode for now
|
||||||
/** @property {Iterator(Map)} @private */
|
/** @property {Iterator(Map)} @private */
|
||||||
__iterator__: function () this._mappingsIterator([modes.NORMAL], this._main),
|
__iterator__: function () {
|
||||||
|
let mode = modes.NORMAL;
|
||||||
|
let seen = {};
|
||||||
|
for (let map in iterAll(values(this._user[mode]), values(this._main[mode])))
|
||||||
|
if (!set.add(seen, map.name))
|
||||||
|
yield map;
|
||||||
|
},
|
||||||
|
|
||||||
// used by :mkpentadactylrc to save mappings
|
// used by :mkpentadactylrc to save mappings
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1013,7 +1013,7 @@ function octal(decimal) parseInt(decimal, 8);
|
|||||||
*/
|
*/
|
||||||
const array = Class("array", Array, {
|
const array = Class("array", Array, {
|
||||||
init: function (ary) {
|
init: function (ary) {
|
||||||
if (isinstance(ary, ["Iterator", "Generator"]))
|
if (isinstance(ary, ["Iterator", "Generator"]) || "__iterator__" in ary)
|
||||||
ary = [k for (k in ary)];
|
ary = [k for (k in ary)];
|
||||||
else if (ary.length)
|
else if (ary.length)
|
||||||
ary = Array.slice(ary);
|
ary = Array.slice(ary);
|
||||||
|
|||||||
@@ -17,7 +17,6 @@ REFACTORING:
|
|||||||
- remove unnecessary usage of "self"
|
- remove unnecessary usage of "self"
|
||||||
|
|
||||||
BUGS:
|
BUGS:
|
||||||
- :viusage! doesn't work
|
|
||||||
- insert abbreviations broken on <space>
|
- insert abbreviations broken on <space>
|
||||||
- :sidebar improvements (:sidebar! Downloads while downloads is open should refocus the sidebar)
|
- :sidebar improvements (:sidebar! Downloads while downloads is open should refocus the sidebar)
|
||||||
- ;s saves the page rather than the image
|
- ;s saves the page rather than the image
|
||||||
@@ -37,7 +36,7 @@ FEATURES:
|
|||||||
8 :redir and 'verbosefile'
|
8 :redir and 'verbosefile'
|
||||||
8 middleclick in content == p, and if command line is open, paste there the clipboard buffer
|
8 middleclick in content == p, and if command line is open, paste there the clipboard buffer
|
||||||
8 all search commands should start searching from the top of the visible viewport
|
8 all search commands should start searching from the top of the visible viewport
|
||||||
8 <C-o>/<C-i> should work as in vim (i.e., save page positions as well as
|
8 <C-o>/<C-i> should work as in Vim (i.e., save page positions as well as
|
||||||
locations in the history list).
|
locations in the history list).
|
||||||
8 jump to the next heading with ]h, next image ]i, previous textbox [t and so on
|
8 jump to the next heading with ]h, next image ]i, previous textbox [t and so on
|
||||||
7 add source location links to the output of certain commands (e.g. :viusage! or describe-key)
|
7 add source location links to the output of certain commands (e.g. :viusage! or describe-key)
|
||||||
|
|||||||
Reference in New Issue
Block a user