summary refs log tree commit diff stats
path: root/doc/ranger.1
Commit message (Expand)AuthorAgeFilesLines
...
* ranger.__init__, ranger.1: updated rangers descriptionhut2011-10-081-3/+3
* Updated man pagehut2011-10-081-12/+6
* ranger.1: added doc for --dont-copy-confighut2011-10-081-5/+4
* Write "ranger" with a lowercase "r"hut2011-10-081-2/+2
* updated manpage and config_examples/rc.confhut2011-10-081-1/+4
* general updateshut2011-10-081-5/+10
* manpage: updatehut2011-10-051-15/+16
* defaults/commands: added cunmap, punmap, tunmaphut2011-10-051-4/+34
* Changed version to 1.5.0hut2011-10-021-1/+1
* doc/ranger.1: updated manpagehut2011-10-011-45/+70
* doc/ranger.1: added missing documentationhut2011-09-291-4/+121
* core.main: added --list-unused-keys optionhut2011-09-291-1/+6
* another correction of the bash wrapper scriptshut2011-09-281-2/+3
* sanitized bash wrapper scripts, reformulated BUGS section in manualhut2011-09-281-6/+6
* improved bash wrappers in ranger.py and man pagehut2011-09-281-11/+13
* documented and improved DaPangus' changeshut2011-09-251-3/+2
* extended manpage and fixed {load,save}_copy_buffer commandshut2011-09-251-25/+39
* doc/ranger.pod: extended the man pagehut2011-09-241-62/+384
* Overhauled manpage. It's in POD format now.hut2011-09-241-194/+383
* This gonna be cool once it's finished v1.4.3hut2011-04-051-1/+1
* Improved manpagehut2011-04-031-4/+5
* Next version will run on pure Lisp Machines only v1.4.2hut2011-03-051-1/+1
* If ranger won't run, you still got peanut butter to live for. v1.4.1hut2011-01-041-1/+1
* We are not authorized to disclose the commit message v1.4.0hut2010-12-221-1/+1
* core.main: extended --copy-config optionhut2010-10-121-2/+3
* Merge branch 'cp+preview'hut2010-10-121-0/+4
|\
| * core.main: added --copy-config flaghut2010-10-111-0/+4
* | new version: 1.3.1, merge with cp+preview branchhut2010-10-121-1/+1
|/
* Incremented version number to 1.3 (testing)hut2010-09-131-1/+1
* Beware of low-flying butterflies v1.2.0hut2010-09-131-1/+1
* Tuned versioning scheme to be more intuitive, back to 1.1.2hut2010-08-281-1/+1
* Changed version number to 1.2 (testing) to adhere with versioning schemehut2010-08-281-1/+1
* Changed default config dir to $XDG_CONFIG_HOME/rangerhut2010-08-281-4/+5
* Why did the astrophysicist order three hamburgers? v1.1.2hut2010-07-121-1/+1
* version = version + 1 v1.1.1hut2010-06-181-1/+1
* new stable version v1.1.0hut2010-06-091-1/+1
* updated manpagehut2010-06-091-5/+4
* renamed "--fail-if-run" to the more accurate "--fail-unless-cd"hut2010-06-091-3/+3
* Fixed bug #65 by adding flag "--fail-if-run"hut2010-04-261-1/+5
* ranger.1: added S key to man pagehut2010-04-161-0/+3
* Fixed suggested cd-after-exit-script for zshhut2010-04-131-1/+1
* corrected documentationhut2010-04-061-1/+1
* Improved tabshut2010-04-061-0/+3
* updated keybindings and documentationhut2010-04-061-1/+21
* ranger.1: updatehut2010-04-011-4/+7
* ranger.1: updatedhut2010-04-011-1/+1
* added a man pagehut2010-04-011-0/+187
ndline args after '..arg[1]) end if rawget(_G, 'jit') then jit.off() jit.flush() end end function load_settings() local settings = json.decode(love.filesystem.read('config')) love.graphics.setFont(love.graphics.newFont(settings.font_height)) -- maximize window to determine maximum allowable dimensions App.screen.width, App.screen.height, App.screen.flags = love.window.getMode() -- set up desired window dimensions love.window.setPosition(settings.x, settings.y, settings.displayindex) App.screen.flags.resizable = true App.screen.flags.minwidth = math.min(App.screen.width, 200) App.screen.flags.minheight = math.min(App.screen.width, 200) App.screen.width, App.screen.height = settings.width, settings.height love.window.setMode(App.screen.width, App.screen.height, App.screen.flags) Editor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width-Margin_right, settings.font_height, math.floor(settings.font_height*1.3)) Editor_state.filename = settings.filename Editor_state.screen_top1 = settings.screen_top Editor_state.cursor1 = settings.cursor end function initialize_default_settings() local font_height = 20 love.graphics.setFont(love.graphics.newFont(font_height)) local em = App.newText(love.graphics.getFont(), 'm') initialize_window_geometry(App.width(em)) Editor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width-Margin_right) Editor_state.font_height = font_height Editor_state.line_height = math.floor(font_height*1.3) Editor_state.em = em end function initialize_window_geometry(em_width) -- maximize window love.window.setMode(0, 0) -- maximize App.screen.width, App.screen.height, App.screen.flags = love.window.getMode() -- shrink height slightly to account for window decoration App.screen.height = App.screen.height-100 App.screen.width = 40*em_width App.screen.flags.resizable = true App.screen.flags.minwidth = math.min(App.screen.width, 200) App.screen.flags.minheight = math.min(App.screen.width, 200) love.window.setMode(App.screen.width, App.screen.height, App.screen.flags) end function App.resize(w, h) --? print(("Window resized to width: %d and height: %d."):format(w, h)) App.screen.width, App.screen.height = w, h Text.redraw_all(Editor_state) Editor_state.selection1 = {} -- no support for shift drag while we're resizing Editor_state.right = App.screen.width-Margin_right Editor_state.width = Editor_state.right-Editor_state.left Text.tweak_screen_top_and_cursor(Editor_state, Editor_state.left, Editor_state.right) Last_resize_time = App.getTime() end function App.filedropped(file) -- first make sure to save edits on any existing file if Editor_state.next_save then save_to_disk(Editor_state) end -- clear the slate for the new file App.initialize_globals() Editor_state.filename = file:getFilename() file:open('r') Editor_state.lines = load_from_file(file) file:close() Text.redraw_all(Editor_state) edit.fixup_cursor(Editor_state) love.window.setTitle('lines.love - '..Editor_state.filename) end function App.draw() Button_handlers = {} edit.draw(Editor_state) end function App.update(dt) Cursor_time = Cursor_time + dt -- some hysteresis while resizing if App.getTime() < Last_resize_time + 0.1 then return end edit.update(Editor_state, dt) end function love.quit() edit.quit(Editor_state) -- save some important settings local x,y,displayindex = love.window.getPosition() local filename = Editor_state.filename if filename:sub(1,1) ~= '/' then filename = love.filesystem.getWorkingDirectory()..'/'..filename -- '/' should work even on Windows end local settings = { x=x, y=y, displayindex=displayindex, width=App.screen.width, height=App.screen.height, font_height=Editor_state.font_height, filename=filename, screen_top=Editor_state.screen_top1, cursor=Editor_state.cursor1} love.filesystem.write('config', json.encode(settings)) end function App.mousepressed(x,y, mouse_button) Cursor_time = 0 -- ensure cursor is visible immediately after it moves return edit.mouse_pressed(Editor_state, x,y, mouse_button) end function App.mousereleased(x,y, mouse_button) Cursor_time = 0 -- ensure cursor is visible immediately after it moves return edit.mouse_released(Editor_state, x,y, mouse_button) end function App.focus(in_focus) if in_focus then Last_focus_time = App.getTime() end end function App.textinput(t) -- ignore events for some time after window in focus if App.getTime() < Last_focus_time + 0.01 then return end Cursor_time = 0 -- ensure cursor is visible immediately after it moves return edit.textinput(Editor_state, t) end function App.keychord_pressed(chord, key) -- ignore events for some time after window in focus if App.getTime() < Last_focus_time + 0.01 then return end Cursor_time = 0 -- ensure cursor is visible immediately after it moves return edit.keychord_pressed(Editor_state, chord, key) end function App.keyreleased(key, scancode) -- ignore events for some time after window in focus if App.getTime() < Last_focus_time + 0.01 then return end Cursor_time = 0 -- ensure cursor is visible immediately after it moves return edit.key_released(Editor_state, key, scancode) end