mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-21 23:17:59 +01:00
added Y command
This commit is contained in:
2
AUTHORS
2
AUTHORS
@@ -4,7 +4,7 @@ Main developer:
|
|||||||
|
|
||||||
Developers:
|
Developers:
|
||||||
* Viktor Kojouharov (Виктор Кожухаров)
|
* Viktor Kojouharov (Виктор Кожухаров)
|
||||||
* Doug Kearns
|
* Doug Kearns (dougkearns@gmail.com)
|
||||||
|
|
||||||
Patches:
|
Patches:
|
||||||
* Muthu Kannan (ctrl-v support)
|
* Muthu Kannan (ctrl-v support)
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
<pre>
|
<pre>
|
||||||
2007-05-02:
|
2007-05-02:
|
||||||
* version ???
|
* version ???
|
||||||
|
* temporary shortcut Y to yank current selection (for non UNIX-users)
|
||||||
* Flashing frame with ]f now works as expected
|
* Flashing frame with ]f now works as expected
|
||||||
* many help fixes (most of them by Doug Kearns)
|
* many help fixes (most of them by Doug Kearns)
|
||||||
* new :reloadall command
|
* new :reloadall command
|
||||||
|
|||||||
1
TODO
1
TODO
@@ -4,7 +4,6 @@ Priority list:
|
|||||||
|
|
||||||
BUGS:
|
BUGS:
|
||||||
- switching tabs while HINT_MODE_ALWAYS is on does not redisplay hints in new tabs, but exits hint mode
|
- switching tabs while HINT_MODE_ALWAYS is on does not redisplay hints in new tabs, but exits hint mode
|
||||||
- flashing frame is not perfect
|
|
||||||
- The RSS feed button in the address bar no longer works.
|
- The RSS feed button in the address bar no longer works.
|
||||||
- autoupdate does not work
|
- autoupdate does not work
|
||||||
- multiple windows to not work at all, so :q will close the whole browser session, even when there are other windows which has tabs
|
- multiple windows to not work at all, so :q will close the whole browser session, even when there are other windows which has tabs
|
||||||
|
|||||||
@@ -409,7 +409,7 @@ var g_commands = [/*{{{*/
|
|||||||
["tabo[nly]"],
|
["tabo[nly]"],
|
||||||
"Close all other tabs",
|
"Close all other tabs",
|
||||||
null,
|
null,
|
||||||
function() { vimperator.tabs.removeAllOthers(getBrowser().mCurrentTab); },
|
function() { vimperator.tabs.keepOnly(getBrowser().mCurrentTab); },
|
||||||
null
|
null
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
@@ -676,6 +676,14 @@ var g_mappings = [/*{{{*/
|
|||||||
"Under UNIX the location is also put into the selection, which can be pasted with the middle mouse button.",
|
"Under UNIX the location is also put into the selection, which can be pasted with the middle mouse button.",
|
||||||
yankCurrentLocation
|
yankCurrentLocation
|
||||||
],
|
],
|
||||||
|
[
|
||||||
|
["Y"],
|
||||||
|
["Y"],
|
||||||
|
"Copy selected text",
|
||||||
|
"The currently selected text is copied to the system clipboard.",
|
||||||
|
yankCurrentSelection,
|
||||||
|
null
|
||||||
|
],
|
||||||
[
|
[
|
||||||
["zi", "+"],
|
["zi", "+"],
|
||||||
["zi", "+"],
|
["zi", "+"],
|
||||||
@@ -1509,6 +1517,12 @@ function yankCurrentLocation()
|
|||||||
copyToClipboard(loc);
|
copyToClipboard(loc);
|
||||||
vimperator.echo("Yanked " + loc);
|
vimperator.echo("Yanked " + loc);
|
||||||
}
|
}
|
||||||
|
function yankCurrentSelection()
|
||||||
|
{
|
||||||
|
var sel = window.content.document.getSelection();
|
||||||
|
copyToClipboard(sel);
|
||||||
|
vimperator.echo("Yanked " + sel);
|
||||||
|
}
|
||||||
|
|
||||||
// return null, if no link with a href focused
|
// return null, if no link with a href focused
|
||||||
function getCurrentLinkLocation()
|
function getCurrentLinkLocation()
|
||||||
|
|||||||
@@ -1217,7 +1217,7 @@ function Tabs()
|
|||||||
getBrowser().removeTab(tab);
|
getBrowser().removeTab(tab);
|
||||||
}
|
}
|
||||||
|
|
||||||
this.removeAllOthers = function(tab)
|
this.keepOnly = function(tab)
|
||||||
{
|
{
|
||||||
getBrowser().removeAllTabsBut(tab);
|
getBrowser().removeAllTabsBut(tab);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user