mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 01:27:59 +01:00
[+] marker in the statusline
This commit is contained in:
1
NEWS
1
NEWS
@@ -2,6 +2,7 @@
|
|||||||
2007-xx-xx:
|
2007-xx-xx:
|
||||||
* version 0.6
|
* version 0.6
|
||||||
* THIS VERSION ONLY WORKS WITH FIREFOX 3.0
|
* THIS VERSION ONLY WORKS WITH FIREFOX 3.0
|
||||||
|
* [+], [-] and [+-] in the statusline, whether we can go back, forward, or both
|
||||||
* :set showtabline now finally works as expected for all values
|
* :set showtabline now finally works as expected for all values
|
||||||
* added full zoom, and changed keybindings slightly for text zoom
|
* added full zoom, and changed keybindings slightly for text zoom
|
||||||
* :buffer partial_string works now as in vim, and with ! even better
|
* :buffer partial_string works now as in vim, and with ! even better
|
||||||
|
|||||||
@@ -1057,10 +1057,16 @@ function StatusLine() //{{{
|
|||||||
status_bar.setAttribute("class", "chromeclass-status " + highlight_group);
|
status_bar.setAttribute("class", "chromeclass-status " + highlight_group);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// if "url" is ommited, build a usable string for the URL
|
||||||
this.updateUrl = function(url)
|
this.updateUrl = function(url)
|
||||||
{
|
{
|
||||||
if (!url || typeof url != "string")
|
if (typeof url == "string")
|
||||||
url = vimperator.buffer.URL;
|
{
|
||||||
|
url_widget.value = url;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
url = vimperator.buffer.URL;
|
||||||
|
|
||||||
// make it even more vim-like
|
// make it even more vim-like
|
||||||
if (url == "about:blank")
|
if (url == "about:blank")
|
||||||
@@ -1073,6 +1079,16 @@ function StatusLine() //{{{
|
|||||||
url = "[No Name]";
|
url = "[No Name]";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var sh = getWebNavigation().sessionHistory;
|
||||||
|
var modified = "";
|
||||||
|
if (sh.index > 0)
|
||||||
|
modified += "+";
|
||||||
|
if (sh.index < sh.count -1)
|
||||||
|
modified += "-";
|
||||||
|
|
||||||
|
if (modified)
|
||||||
|
url += " [" + modified + "]"
|
||||||
|
|
||||||
url_widget.value = url;
|
url_widget.value = url;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user