mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-07 02:04:11 +01:00
added :buffers [filter]
This commit is contained in:
3
NEWS
3
NEWS
@@ -12,6 +12,9 @@
|
|||||||
special versions for the old behavior
|
special versions for the old behavior
|
||||||
* IMPORTANT: renamed Startup and Quit autocmd events to VimperatorEnter and
|
* IMPORTANT: renamed Startup and Quit autocmd events to VimperatorEnter and
|
||||||
VimperatorLeave respectively
|
VimperatorLeave respectively
|
||||||
|
* :buffers supports a filter now to only list buffers matching filter (vim incompatible,
|
||||||
|
but consistent with other commands)
|
||||||
|
* Favicon support in many places
|
||||||
* add 'Fullscreen' autocommmand
|
* add 'Fullscreen' autocommmand
|
||||||
* add :colorscheme
|
* add :colorscheme
|
||||||
* multibyte support for hints (thanks Xie&Tian)
|
* multibyte support for hints (thanks Xie&Tian)
|
||||||
|
|||||||
@@ -787,7 +787,7 @@ function Completion() //{{{
|
|||||||
// FIXME: liberator.has("tabs")
|
// FIXME: liberator.has("tabs")
|
||||||
let items = [];
|
let items = [];
|
||||||
let xml = <table/>
|
let xml = <table/>
|
||||||
filter = filter || "";
|
filter = (filter || "").toLowerCase();
|
||||||
|
|
||||||
for (let [i, browser] in tabs.browsers)
|
for (let [i, browser] in tabs.browsers)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -478,8 +478,8 @@ function Tabs() //{{{
|
|||||||
|
|
||||||
commands.add(["buffers", "files", "ls", "tabs"],
|
commands.add(["buffers", "files", "ls", "tabs"],
|
||||||
"Show a list of all buffers",
|
"Show a list of all buffers",
|
||||||
function (args) { tabs.list(); },
|
function (args) { tabs.list(args.string); },
|
||||||
{ argCount: "0" });
|
{ argCount: "*" });
|
||||||
|
|
||||||
commands.add(["quita[ll]", "qa[ll]"],
|
commands.add(["quita[ll]", "qa[ll]"],
|
||||||
"Quit " + config.name,
|
"Quit " + config.name,
|
||||||
|
|||||||
@@ -9,10 +9,11 @@ result many buffer and tab commands are interchangeable.
|
|||||||
section:Listing{nbsp}tabs[listing-tabs]
|
section:Listing{nbsp}tabs[listing-tabs]
|
||||||
|
|
||||||
|B| |:tabs| |:ls| |:files| |:buffers|
|
|B| |:tabs| |:ls| |:files| |:buffers|
|
||||||
||:buffers|| +
|
||:buffers [filter]|| +
|
||||||
||B||
|
||B||
|
||||||
________________________________________________________________________________
|
________________________________________________________________________________
|
||||||
Show a list of all buffers (=tabs).
|
Show a list of buffers (=tabs) matching [filter]. Without [filter] list all
|
||||||
|
tabs.
|
||||||
________________________________________________________________________________
|
________________________________________________________________________________
|
||||||
|
|
||||||
section:Opening{nbsp}tabs[listing-tabs]
|
section:Opening{nbsp}tabs[listing-tabs]
|
||||||
|
|||||||
Reference in New Issue
Block a user