about summary refs log tree commit diff stats
path: root/config.default.h
Commit message (Collapse)AuthorAgeFilesLines
* removed viewnext/viewprevAnselm R.Garbe2006-08-141-2/+0
|
* made shortcuts like proposed by Sander, renamed viewextend to toggleview ↵Anselm R.Garbe2006-08-131-10/+10
| | | | (more clear)
* implemented viewextend and added M-S-C-n shortcuts for extending the current ↵Anselm R.Garbe2006-08-111-26/+31
| | | | view... updated man page (works great!) nice feature
* readded border color, this sucks leastAnselm R.Garbe2006-08-101-0/+1
|
* removed unnecessary border colorAnselm R.Garbe2006-08-101-1/+0
|
* switched to regexp matching for Rulesarg@10ksloc.org2006-08-041-4/+3
|
* fixed a bug in dmenu callarg@10ksloc.org2006-08-041-3/+0
|
* using execl now, argv changed, using cmd and const char defs directly in the ↵arg@10ksloc.org2006-08-041-2/+4
| | | | KEYS struct
* s/tag2/two/garg@10ksloc.org2006-08-031-2/+2
|
* stylistic chnagearg@10ksloc.org2006-08-031-2/+2
|
* removed TLast tag enum, now tags is simple defined as char *[] array, the ↵arg@10ksloc.org2006-08-031-27/+21
| | | | rest is calculated correctly, rules take an int array for the tags
* changed Client->tags and Rule->tags to be Bool (I'll also try to remove the ↵arg@10ksloc.org2006-08-031-2/+2
| | | | TLast enum)
* changing MASTERW value from 52 to 60 (in both, default and arg), I feel this ↵arg@10ksloc.org2006-08-021-1/+1
| | | | is better now
* removed the CONFIG variable from config.mk, renamed config.h into ↵arg@10ksloc.org2006-08-021-0/+62
config.default.h, after first clone/extract one needs to copy config.default.h to config.h, that is easier than always heavy typing make CONFIG=blafasel
an class="p">:close() end end function load_from_file(infile) local result = {} if infile then local infile_next_line = infile:lines() -- works with both Lua files and LÖVE Files (https://www.love2d.org/wiki/File) while true do local line = infile_next_line() if line == nil then break end table.insert(result, {data=line}) end end if #result == 0 then table.insert(result, {data=''}) end return result end function save_to_disk(State) local outfile = App.open_for_writing(State.filename) if outfile == nil then error('failed to write to "'..State.filename..'"') end for _,line in ipairs(State.lines) do outfile:write(line.data) outfile:write('\n') end outfile:close() end -- for tests function load_array(a) local result = {} local next_line = ipairs(a) local i,line,drawing = 0, '' while true do i,line = next_line(a, i) if i == nil then break end table.insert(result, {data=line}) end if #result == 0 then table.insert(result, {data=''}) end return result end function is_absolute_path(path) local os_path_separator = package.config:sub(1,1) if os_path_separator == '/' then -- POSIX systems permit backslashes in filenames return path:sub(1,1) == '/' elseif os_path_separator == '\\' then if path:sub(2,2) == ':' then return true end -- DOS drive letter followed by volume separator local f = path:sub(1,1) return f == '/' or f == '\\' else error('What OS is this? LÖVE reports that the path separator is "'..os_path_separator..'"') end end function is_relative_path(path) return not is_absolute_path(path) end