You are not logged in.

#551 2011-09-01 11:04:39

el mariachi
Member
Registered: 2007-11-30
Posts: 595

Re: luakit browser framework (almost with jQuery!)

Can caching be disabled? I use polipo to do that.

Offline

#552 2011-09-03 20:44:22

Gooru
Member
From: Poland
Registered: 2010-08-25
Posts: 53

Re: luakit browser framework (almost with jQuery!)

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? wink

Last edited by Gooru (2011-09-04 12:58:56)

Offline

#553 2011-09-04 16:19:18

Army
Member
Registered: 2007-12-07
Posts: 1,784

Re: luakit browser framework (almost with jQuery!)

@Gooru, do you mean this?

Offline

#554 2011-09-04 19:22:03

xConStruct
Member
From: Germany
Registered: 2010-12-29
Posts: 20
Website

Re: luakit browser framework (almost with jQuery!)

Gooru wrote:

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'.


Gooru wrote:

And also, can someone tell me how to install userstyles? wink

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

#555 2011-09-07 09:07:32

SuNjACk
Member
Registered: 2011-02-27
Posts: 102

Re: luakit browser framework (almost with jQuery!)

is possible to do a sort of "follow-link" for images?

Offline

#556 2011-09-07 15:55:47

xConStruct
Member
From: Germany
Registered: 2010-12-29
Posts: 20
Website

Re: luakit browser framework (almost with jQuery!)

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

#557 2011-09-07 18:03:06

SuNjACk
Member
Registered: 2011-02-27
Posts: 102

Re: luakit browser framework (almost with jQuery!)

xConStruct wrote:

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 wink

Offline

#558 2011-09-08 20:21:04

Gooru
Member
From: Poland
Registered: 2010-08-25
Posts: 53

Re: luakit browser framework (almost with jQuery!)

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

#559 2011-09-09 15:18:31

enricostn
Member
Registered: 2011-08-09
Posts: 57

Re: luakit browser framework (almost with jQuery!)

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

#560 2011-09-09 15:55:00

mkaito
Member
From: Spain
Registered: 2010-06-12
Posts: 126
Website

Re: luakit browser framework (almost with jQuery!)

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

#561 2011-09-09 16:04:03

enricostn
Member
Registered: 2011-08-09
Posts: 57

Re: luakit browser framework (almost with jQuery!)

mkaito wrote:

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 smile

Anybody know how to set up spellcheck feature?

Thank you,

enrico

Offline

#562 2011-09-09 20:09:43

Army
Member
Registered: 2007-12-07
Posts: 1,784

Re: luakit browser framework (almost with jQuery!)

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 wink

Offline

#563 2011-09-11 11:18:42

el mariachi
Member
Registered: 2007-11-30
Posts: 595

Re: luakit browser framework (almost with jQuery!)

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

#564 2011-09-11 13:37:24

Army
Member
Registered: 2007-12-07
Posts: 1,784

Re: luakit browser framework (almost with jQuery!)

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

#565 2011-09-11 14:18:24

el mariachi
Member
Registered: 2007-11-30
Posts: 595

Re: luakit browser framework (almost with jQuery!)

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

#566 2011-09-11 14:28:15

bernarcher
Forum Fellow
From: Germany
Registered: 2009-02-17
Posts: 2,281

Re: luakit browser framework (almost with jQuery!)

el mariachi wrote:

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

#567 2011-09-11 18:13:56

Army
Member
Registered: 2007-12-07
Posts: 1,784

Re: luakit browser framework (almost with jQuery!)

You can tune that, just put something like

xset r rate 250 40 &

into your ~/.xinitrc or start script of your WM / DE

Offline

#568 2011-09-11 19:38:18

el mariachi
Member
Registered: 2007-11-30
Posts: 595

Re: luakit browser framework (almost with jQuery!)

Thanks! Thought it was a luakit thing wink

Offline

#569 2011-09-12 20:57:59

Gooru
Member
From: Poland
Registered: 2010-08-25
Posts: 53

Re: luakit browser framework (almost with jQuery!)

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 wink
Still great job with luakit, I enjoy every minute of using it.

Last edited by Gooru (2011-09-13 22:36:08)

Offline

#570 2011-09-13 04:18:20

mason.larobina
Member
From: Australia
Registered: 2009-07-02
Posts: 200
Website

Re: luakit browser framework (almost with jQuery!)

Gooru wrote:

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
Segfault

It's strange behaviour, I post it here in case you could fix it wink
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

#571 2011-09-13 17:50:35

Gooru
Member
From: Poland
Registered: 2010-08-25
Posts: 53

Re: luakit browser framework (almost with jQuery!)

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 wink

Offline

#572 2011-09-13 18:47:47

Dieter@be
Forum Fellow
From: Belgium
Registered: 2006-11-05
Posts: 2,001
Website

Re: luakit browser framework (almost with jQuery!)

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

#573 2011-09-13 20:47:07

xConStruct
Member
From: Germany
Registered: 2010-12-29
Posts: 20
Website

Re: luakit browser framework (almost with jQuery!)

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

#574 2011-09-13 20:49:18

AndyRTR
Developer
From: Magdeburg/Germany
Registered: 2005-10-07
Posts: 1,641

Re: luakit browser framework (almost with jQuery!)

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

#575 2011-09-13 21:03:22

xConStruct
Member
From: Germany
Registered: 2010-12-29
Posts: 20
Website

Re: luakit browser framework (almost with jQuery!)

AndyRTR wrote:

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.

AndyRTR wrote:

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

Board footer

Powered by FluxBB