1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-03-10 23:25:45 +01:00

merge new <C-g> and g<C-g> mappings and improved :pageinfo

This commit is contained in:
Doug Kearns
2007-10-30 08:48:09 +00:00
parent a712bf01ea
commit 4c799598a4
3 changed files with 46 additions and 26 deletions

View File

@@ -835,6 +835,25 @@ vimperator.Mappings = function() //{{{
}
));
// page info
addDefaultMap(new vimperator.Map([vimperator.modes.NORMAL], ["<C-g>"],
function(count) { vimperator.buffer.pageInfo(false); },
{
short_help: "Print the current file name",
help: "Also shows some additional file information like file size or the last modified date. " +
"If <code class='argument'>{count}</code> is given print the current file name with full path.",
flags: vimperator.Mappings.flags.COUNT
}
));
addDefaultMap(new vimperator.Map([vimperator.modes.NORMAL], ["g<C-g>"],
function(count) { vimperator.buffer.pageInfo(true); },
{
short_help: "Print file information",
help: "Same as <code class='command'>:pa[geinfo]</code>."
}
));
// history manipulation and jumplist
addDefaultMap(new vimperator.Map(vimperator.modes.NORMAL, ["<C-o>"],
function(count) { vimperator.history.stepTo(-(count > 1 ? count : 1)); },