1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-06 22:04:18 +01:00

y can yank the selection in visual caret mode now

This commit is contained in:
Martin Stubenschrott
2008-01-09 17:50:47 +00:00
parent 74310ca17a
commit 6605e4fa19
2 changed files with 11 additions and 2 deletions

3
TODO
View File

@@ -16,6 +16,9 @@ FEATURES:
8 add more autocommands (BrowserStart, BrowserQuit, TabClose, TabOpen, TabChanged, LocationChanged, any more?)
8 ;?<hint> will show information about <hint> like id, class, image filename, etc.
8 there should be a listbox/combobox mode
8 y and Y should be changed to: yy and yl=yank location, ys=yank selection,
yd=yank domain name, yt=yank title, yw=yank current word,
yS=yank selection, if no selection then yank current word (other things to yank?)
7 use ctrl-n/p in insert mode for word completion
7 implement LocationList window, and get rid off/change PreviewWindow to be a real preview window being able to display html pages
7 [ctrl-o/i] to Go back to a Previous Position (done partly, however currenty does not use a per tab jumplist)

View File

@@ -844,7 +844,7 @@ vimperator.Mappings = function () //{{{
help: "When running in X11 the location is also put into the selection, which can be pasted with the middle mouse button."
}
));
addDefaultMap(new vimperator.Map([vimperator.modes.NORMAL], ["Y"],
addDefaultMap(new vimperator.Map([vimperator.modes.NORMAL, vimperator.modes.VISUAL], ["Y"],
function ()
{
var sel = window.content.document.getSelection();
@@ -1676,7 +1676,13 @@ vimperator.Mappings = function () //{{{
vimperator.modes.set(vimperator.modes.TEXTAREA);
}
else
vimperator.beep(); // TODO: yanking is possible for caret mode
{
var sel = window.content.document.getSelection();
if (sel)
vimperator.copyToClipboard(sel, true);
else
vimperator.beep();
}
},
{ }
));