You are not logged in.
Can caching be disabled? I use polipo to do that.
Offline
Sorry if I missed something, but after a bit research I decided to ask. Is there a possibility to zoom in images from the keyboard? I know that "+","-" and "=" work for websites, but when it comes to looking at some images (like screenshots from this forum) I just can't figure out what to do to just zoom in without using a mouse.
And also, can someone tell me how to install userstyles?
Last edited by Gooru (2011-09-04 12:58:56)
Offline
@Gooru, do you mean this?
Offline
Is there a possibility to zoom in images from the keyboard? I know that "+","-" and "=" work for websites, but when it comes to looking at some images (like screenshots from this forum) I just can't figure out what to do to just zoom in without using a mouse.
Webkit implements two different zooms, the default one is for zooming text only ("+", "-", "zi", "zo") and then there's a full-content-zoom which also zooms images / elements / flash ("zI", "zO"). I've switched all my bindings to use the content-zoom by default.
You can see the current definition in config/binds.lua:
buf("^z[iI]$", function (w, b, m) w:zoom_in(zoom_step * m.count, b == "zI") end, {count=1}),
buf("^z[oO]$", function (w, b, m) w:zoom_out(zoom_step * m.count, b == "zO") end, {count=1}),
The conditions 'b == "zI"' and 'b == "zO"' activate full-content-zoom when you type capital letters. If you want to activate content-zoom by default everywhere, you can add/replace the second argument of all zoom_in/zoom_out functions with 'true'.
And also, can someone tell me how to install userstyles?
You can set the user-stylesheet-uri for different domains in the 'domain_props' table of config/globals.lua (at the bottom). There's also an example there.
Offline
is possible to do a sort of "follow-link" for images?
Offline
There is the binding ;i for opening image sources (and ;I for opening in new tab). They're all defined in /usr/share/luakit/lib/follow/binds.lua
Last edited by xConStruct (2011-09-07 15:56:46)
Offline
There is the binding ;i for opening image sources (and ;I for opening in new tab). They're all defined in /usr/share/luakit/lib/follow/binds.lua
Awesome, thanks
Offline
Wow, thanks guys, it was very helpful. I'm not familiar with lua and webkit, so after a little explanation I can understand how it works, that's great.
Offline
Hi,
I have 2 problems with luakit:
1. I don't understand how to enable spell checking
2. How to change to Insert mode when entering in a input field just with one click (I always have to double click on it)
EDIT for the point 2: I've just discoverd that in Google sites (google, gmail, etc) and Facebook luakit doesn't switch to Insert mode, in other sites it works.
Could anyone help me please?
Thank you!
enrico
Last edited by enricostn (2011-09-09 15:45:23)
Offline
No idea about spellchecking.
As for insert mode, luakit won't automatically switch to it when a text field is focussed by anything but user action (ie, you didn't click on it), but hitting "i" will solve that.
I find this is a feature, because I get to decide whether I want to write, or scroll around the page, or whatever. While on some sites it makes sense to automatically switch to insert (ie, google), for others it doesn't, and there's hardly a way for luakit to know what makes sense to you and what doesn't. I prefer to be given the choice, and handle things myself. That's the reason I use luakit over other browsers to begin with.
As a matter of fact, vimperator switched automatically to insert upon a textfield being focussed, and I used to find this annoying as hell. I often found myself trying to scroll around, wondering wtf, only to find some input box full of "jjjjjjjjkkkkk" xD
Fear me! I have root! Sometimes...
Offline
I find this is a feature, because I get to decide whether I want to write, or scroll around the page, or whatever. While on some sites it makes sense to automatically switch to insert (ie, google), for others it doesn't, and there's hardly a way for luakit to know what makes sense to you and what doesn't. I prefer to be given the choice, and handle things myself. That's the reason I use luakit over other browsers to begin with.
Yeah, I understand you but using gmail for example replying an email it would be great switch to insert mode just pressing "Reply" button.
Thank you for the reply and for the "i" hint
Anybody know how to set up spellcheck feature?
Thank you,
enrico
Offline
He guys, since luakit is very stable with the current most up to date versions of the dependencies in the repos, I once again activated the gnome-unstable repo to see if luakit also works fine with those newer versions of libwebkit (1.5.2-1), libsoup (2.35.90-1), glib2 (2.29.90-1) etc. It works, but it randomly crashes. Here's the output of a crash
% luakit
/usr/share/themes/MurrinaLoveGray/gtk-2.0/gtkrc:50: Murrine configuration option "scrollbar_color" is no longer supported and will be ignored.
(luakit:7058): GLib-GObject-CRITICAL **: g_object_ref: assertion `G_IS_OBJECT (object)' failed
(luakit:7058): GLib-GObject-WARNING **: invalid (NULL) pointer instance
(luakit:7058): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed
(luakit:7058): GLib-GObject-WARNING **: invalid (NULL) pointer instance
(luakit:7058): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed
(luakit:7058): GLib-GObject-CRITICAL **: g_type_instance_get_private: assertion `instance != NULL && instance->g_class != NULL' failed
[1] 7058 segmentation fault luakit
Looks like a glib2 issue right?
This is just a heads up, in case someone wants to try this repos as well. In case there's something that can be done in luakit to prevent those crashes, this information might be interesting.
And it's not supposed to be a bug report, since it's based on unstable software!
Now I'll downgrade again
Offline
When scrolling a page by pressing "j" or "k", there is a small delay between the pressing of the button and the actual scrolling. Can this delay be shortened?
Offline
Are you sure about that? There's no real delay here. I had this problem once when I tried the stuff from the f.a.q., more exactly the last entry http://luakit.org/projects/luakit/wiki/ … -a-new-tab Do you have this in your rc.lua? If so, throw it out.
Offline
I don't have that in rc.lua. Once I press j/k the page scrolls once, then pauses for half a second or so, and then resumes scrolling (always pressing j/k).
Offline
I don't have that in rc.lua. Once I press j/k the page scrolls once, then pauses for half a second or so, and then resumes scrolling (always pressing j/k).
Obviously this is the usual keyboard auto-repeat behaviour only.
To know or not to know ...
... the questions remain forever.
Offline
You can tune that, just put something like
xset r rate 250 40 &
into your ~/.xinitrc or start script of your WM / DE
Offline
Thanks! Thought it was a luakit thing
Offline
I experience random luakit crashes, it's up to date version, and previous crash was caused by flashplugin, but since then I run luakit -v and today it was different:
Requesting: https://mail.google.com/mail/images/favicon.ico
D: luakit: signal_object_emit:188: emitting "request-started" with 1 args and 0 nret
D: luakit: luaH_sqlite3_exec:256: SELECT id, name, value, host AS domain, path,
expiry AS expires, isSecure AS secure, isHttpOnly AS http_only
FROM moz_cookies
WHERE lastAccessed >= 1315860588597296;
D: luakit: luaH_sqlite3_exec:282: Query OK, 0 rows returned (0.000790 sec)
D: luakit: luaH_object_emit_signal:261: emitting "execute" on 0x2553bf8 with 2 args and 0 nret
[..]
D: luakit: luaH_object_emit_signal:261: emitting "property::text" on 0x2df3d38 with 0 args and 0 nret
D: luakit: luaH_object_emit_signal:261: emitting "property::text" on 0x2fc0148 with 0 args and 0 nret
D: lousy.signal: emit_signal: "updated" on table: 0x25823a0
D: luakit: luaH_object_emit_signal:261: emitting "page-removed" on 0x257e8c8 with 1 args and 0 nret
D: luakit: luaH_widget_destroy:237: unreffing widget 0x26ae3c8 of type 'webview'
D: luakit: luaH_object_emit_signal:261: emitting "property::text" on 0x260c1c8 with 0 args and 0 nret
D: lousy.signal: emit_signal: "updated" on table: 0x25823a0
D: luakit: luaH_object_emit_signal:261: emitting "expose" on 0x27e4048 with 0 args and 0 nret
D: luakit: luaH_object_emit_signal:261: emitting "property::text" on 0x252e8b8 with 0 args and 0 nret
Segfault
It's strange behaviour, I post it here in case you could fix it
Still great job with luakit, I enjoy every minute of using it.
Last edited by Gooru (2011-09-13 22:36:08)
Offline
I experience random luakit crashes, it's up to date version, and previous crash was caused by flashplugin, but since then I run luakit -v and today it was different:
Requesting: https://mail.google.com/mail/images/favicon.ico
D: luakit: signal_object_emit:188: emitting "request-started" with 1 args and 0 nret
[...]
D: luakit: luaH_object_emit_signal:261: emitting "property::text" on 0x252e8b8 with 0 args and 0 nret
SegfaultIt's strange behaviour, I post it here in case you could fix it
Still great job with luakit, I enjoy every minute of using it.
Sadly that output doesn't tell us anything. Can you please try and reproduce the problem while running luakit in gdb or set `ulimit -c unlimited` in your shell and get the backtrace from the core dump after a segfault.
Offline
Ok, I'm sorry the above can't be used and I'll try to reproduce the crash, but it can take me few days since I don't know the reason. Luakit crashes randomly at my computer so I will use it only from within gdb now, till the next problem
Offline
Hey guys,
I recently discovered the magnificent solarized color palette (see http://ethanschoonover.com/solarized), they show a stylesheet at http://ethanschoonover.com/solarized#features (with feature 4), but I can't get it to work with luakit. (i want to use it as a starting point for my own css file that I apply to other sites) I wonder it has something to do with the fancy css features it uses (variables, mixins). I think it doesn't, because his main site uses a similar stylesheet, and it's not JS that "expands/compiles" the fancy css stuff because his page also loads fine with javascript disabled.
yet, when pointing luakit to the stylesheet, it doesn't alter how the page looks, until i modify the css file to such an extent that it basically removes all features.
< Daenyth> and he works prolifically
4 8 15 16 23 42
Offline
Well, CSS does not support variables and mixins - the example on the page is SCSS. He wrote his main site with SCSS, too, which gets compiled and compressed into normal CSS (per build script) before going live, so that it works without JavaScript (if you open the CSS file referenced in the source code, you'll notice it's minified).
I've compiled the SCSS to regular CSS for you: https://gist.github.com/1215094
Last edited by xConStruct (2011-09-13 20:49:31)
Offline
I'm starting to use luakit for my daily browsing. Two small questions I have:
1) Is it possible to save the zoom factor or font size per tab in the global.lua per tab? I have a few pages in my session the always require to decrease font size here.
2) Is it possible to auto-save the session and not to use :wq all the time?
Offline
1) Is it possible to save the zoom factor or font size per tab in the global.lua per tab? I have a few pages in my session the always require to decrease font size here.
Per tab or per domain? You could set it per domain in domain_props of config/globals.lua by adding the properties "full-content-zoom" or "zoom-level" respectively. If you really want to specify it for different tabs instead of domains, that would require a few more code changes I think.
2) Is it possible to auto-save the session and not to use :wq all the time?
If you look in config/binds.lua, you'll see that :q / :wq are defined as:
cmd("q[uit]", function (w, a, o) w:close_win(o.bang) end),
cmd({"writequit", "wq"}, function (w, a, o) w:save_session() w:close_win(o.bang) end),
So, you could try moving w:save_session() to somewhere where auto-saving the session makes sense. Maybe into the definition of w:close_win in config/window.lua (starting around line 630) or into w:close_tab.
Offline