-
Notifications
You must be signed in to change notification settings - Fork 6
Home
Adding following command to menus or lanchers of your DE makes quick search / open of selected text
wyeb newselection ""
Also 'newselection' accepts values of the search section of the conf. Following command means search selection text in urban dictionary
wyeb newselection u
and following command means use the I'm Feeling Lucky
wyeb newselection f
Since the Adblock Extension takes boot time, using other suffix for
quick searching is good idea. The reldomaindataonly
of the conf
for adblock is enough for that purpose.
You can add The setting 'set:*' and it can be swiched by set/set2/setstack actions.
If you want change it par process.
env http_proxy=http://foo:9999/ wyeb
For example, fast-forward
wyeb // setstack script
wyeb // shjs "`cat .navnext.js`" 'wyeb // showmsg "$RESULT"'
wyeb // setstack ""
Make sure the enable-javascript of the set:script is true.
.navnext.js : most part is from the dwb page of the arch's wiki
(function(){
if(e=document.querySelector("[rel='next']")){
location=e.href;
return "Next rel"
}
var f=document.getElementsByTagName("a");
var i=f.length;
while((e=f[--i])) if(e.text.search(
/(\bnext\b|^>$|^(>>|»)$|^(>|»)|(>|»)$|^more$)/i
)>-1){
e.style.color="red";
e.focus();
location=e.href;
return "Next elm";
}
location=location.href.replace(/(\d+)([^\/\d]*|\/)$/,
function(a,b,c){return ++b+c})
return "Next uri";
})();
export DEBUG=1
make
./wyeb
This searches the extention ext.so in current working directory.
main.conf's keys are added often when wyeb is updated. Basicary lacking keys is not a problem though if you want to use new keys, following steps are usefull. Open a wyeb's window and open conf dir. Rename/remove main.conf and click the wyeb's window. Then main.conf being added new keys will be created.
Though search, raw, set:* and uri:* sections are not added.
Rename the menudir. Right click the wyeb's window. Then copy files from renamed dir to created menu dir if you've added files.
See the set:image
And there are 3 types of URIs for icon images.
- wyeb:F : converted automatically to wyeb:f/uri
- wyeb:f/uri : returns a visited page's favicon
- wyeb:i/name : returns a desktop theme's icon.
tohintrange accepts enter key just after start of range settled. So hintrangemax of the set and it make less type.
The hinting looks random because there are 3 types of hinting.
- tohint with hackedhint4js: searches clickable elms by area and makes pure click event.
- tohint: searches clickable tags and makes click event of html(DOM).
- others: searches uri of tags which selected by type (e.g. tohintopen/new/back searches only a and area tags) and dl/callback/opens the uri.
If you want to see current URI not truncated, Just type O or W. O and W also show focused element's URI if it was.
In hint mode, tab key makes focus at first element of hinted.
markdown(discount) treats text in tags as text. So <div>[link](URI)</div>
outputs [link](URI)
but <div><div>[link](URI)</div>
outputs link
as a link, I don't know why though.
If you made a menu item file with underscore in its name, the char following the underscore becames a access key.
You can make bookmarks openning outer processes on wyeb:main
mainpage.md
[foo](wyeb:dummy/foo/arg)
main.conf
[uri:^wyeb:dummy/foo/(.*)]
handler=foo %s
sh -c 'echo "a[href^=\"$LINK_OR_URI\"]{opacity:.3!important}" >> $CONFDIR/user.css'
wyeb // showmsg dimmed\ $LINK_OR_URI
or a::before
Selection of the entry is available even while it hidden. So just use context-menu > editLabelOrTitle on a link to select a part.
topointerright(Ctrl + p) and tohint(f)
It stops even by /. So if you want go parent path, shift-o + ctrl-w + enter
The pointer mode's click is separated press and release. So press spece key and move pointer.
Scroll zooms the thumbs to a full size image of a page. Also right click closes it.
cd "$CONFDIR" && cat mainpage.md | grep -v "($LINK_OR_URI)$" > mainpage.md.temp && mv mainpage.md.temp mainpage.md