Skip to content

Instantly share code, notes, and snippets.

@nfbvieira
nfbvieira / binds.lua
Created August 2, 2012 21:20
Ctrl+Enter uri expansion
-- Expand ':open example' to ':open www.example.com' when Ctrl+Return is pressed
add_binds("command", {
key({"Control"}, "Return", function (w)
local tld = "com" -- The top level domain to be used on completion
local input_tokens = split(w.ibar.input.text, "%s+")
if input_tokens[1] == ":open" and #input_tokens == 2 then
w:enter_cmd(":open www." .. input_tokens[2] .. '.' .. tld)
end
w:activate()
end)
@nfbvieira
nfbvieira / globals.lua
Created July 26, 2012 23:25
Minimum font size luakit
domain_props = {
["all"] = {
sans_serif_font_family = "dejavu sans",
serif_font_family = "dejavu serif",
monospace_font_family = "inconsolata",
default_font_size = 10,
default_monospace_font_size = 11,
minimum_font_size = 10,
user_stylesheet_uri = nil,
},