1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-30 08:22:27 +01:00

add fold markers

This commit is contained in:
Doug Kearns
2007-06-21 14:29:09 +00:00
parent 8680e36d8c
commit 2165705ab2

View File

@@ -2,11 +2,11 @@
* also includes methods for dealing with
* keywords and search engines
*/
function Bookmarks()
function Bookmarks()//{{{
{
////////////////////////////////////////////////////////////////////////////////
////////////////////// PRIVATE SECTION /////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////{{{
const search_service = Components.classes["@mozilla.org/browser/search-service;1"].
getService(Components.interfaces.nsIBrowserSearchService);
const rdf_service = Components.classes["@mozilla.org/rdf/rdf-service;1"].
@@ -38,9 +38,9 @@ function Bookmarks()
}
}
////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////}}}
////////////////////// PUBLIC SECTION //////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////{{{
/*
* @return a new Array() of our bookmarks
*/
@@ -261,10 +261,14 @@ function Bookmarks()
}
return res;
}
}
//}}}
}//}}}
function History()
function History()//{{{
{
////////////////////////////////////////////////////////////////////////////////
////////////////////// PRIVATE SECTION /////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////{{{
const rdf_service = Components.classes["@mozilla.org/rdf/rdf-service;1"].
getService( Components.interfaces.nsIRDFService );
const global_history_service = Components.classes["@mozilla.org/browser/global-history;2"].
@@ -314,9 +318,9 @@ function History()
history.push([url, title]);
}
}
////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////}}}
////////////////////// PUBLIC SECTION //////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////{{{
/*
* @return a new Array() of our bookmarks
*/
@@ -340,11 +344,14 @@ function History()
history.unshift([url, title]);
return true;
};
}
//}}}
}//}}}
function Marks()
function Marks()//{{{
{
////////////////////////////////////////////////////////////////////////////////
////////////////////// PRIVATE SECTION /////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////{{{
var marks = {};
var pendingMarks = [];
var appcontent = document.getElementById("appcontent");
@@ -402,6 +409,9 @@ function Marks()
return ok;
}
/////////////////////////////////////////////////////////////////////////////}}}
////////////////////// PUBLIC SECTION //////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////{{{
this.add = function(mark)
{
var win = vimperator.getCurrentBuffer();
@@ -516,6 +526,7 @@ function Marks()
{
return this;
}
}
//}}}
}//}}}
// vim: set fdm=marker sw=4 ts=4 et: