ranger.actions
index
/home/hut/ranger/ranger/actions.py

# Copyright (c) 2009, 2010 hut <hut@lavabit.com>
#
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

 
Modules
       
ranger.gui.widgets.console_mode
ranger.fsobject
os
ranger
shutil

 
Classes
       
ranger.shared.EnvironmentAware(ranger.shared.Awareness)
Actions(ranger.shared.EnvironmentAware, ranger.shared.settings.SettingsAware)
ranger.shared.settings.SettingsAware(__builtin__.object)
Actions(ranger.shared.EnvironmentAware, ranger.shared.settings.SettingsAware)

 
class Actions(ranger.shared.EnvironmentAware, ranger.shared.settings.SettingsAware)
    
Method resolution order:
Actions
ranger.shared.EnvironmentAware
ranger.shared.Awareness
ranger.shared.settings.SettingsAware
__builtin__.object

Methods defined here:
cd(self, path, remember=True)
enter the directory at the given path, remember=True
copy(self)
Copy the selected items
cut(self)
delete(self)
display_command_help(self, console_widget)
display_file(self)
display_help(self, topic='index', narg=None)
display_log(self)
edit_file(self, file=None)
Calls execute_file with the current file and app='editor'
enter_bookmark(self, key)
Enter the bookmark with the name <key>
enter_dir(self, path, remember=False)
Enter the directory at the given path
execute_command(self, cmd, **kw)
execute_file(self, files, **kw)
Execute a file.
app is the name of a method in Applications, without the "app_"
flags is a string consisting of runner.ALLOWED_FLAGS
mode is a positive integer.
Both flags and mode specify how the program is run.
exit(self)
Exit the program
force_load_preview(self)
handle_mouse(self)
Handle mouse-buttons if one was pressed
history_go(self, relative)
Move back and forth in the history
mark(self, all=False, toggle=False, val=None, movedown=None, narg=1)
A wrapper for the directory.mark_xyz functions.
 
Arguments:
all - change all files of the current directory at once?
toggle - toggle the marked-status?
val - mark or unmark?
mkdir(self, name)
move_left(self, narg=1)
Enter the parent directory
move_pointer(self, relative=0, absolute=None, narg=None)
Move the pointer down by <relative> or to <absolute>
move_pointer_by_pages(self, relative)
Move the pointer down by <relative> pages
move_pointer_by_percentage(self, relative=0, absolute=None, narg=None)
Move the pointer down by <relative>% or to <absolute>%
move_right(self, mode=0, narg=None)
Enter the current directory or execute the current file
notify(self, text, duration=4, bad=False)
open_console(self, mode=':', string='')
Open the console if the current UI supports that
paste(self, overwrite=False)
Paste the selected items into the current directory
paste_symlink(self)
redraw_window(self)
Redraw the window
reload_cwd(self)
rename(self, src, dest)
reset(self)
Reset the filemanager, clearing the directory buffer
resize(self)
Update the size of the UI
scroll(self, relative)
Scroll down by <relative> lines
search(self, order=None, forward=True)
set_bookmark(self, key)
Set the bookmeight: bold } /* Literal.Number.Oct */ .highlight .sa { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Affix */ .highlight .sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */ .highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */ .highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
# Configuration for the Bochs x86 CPU emulator to run baremetal Mu programs
# See boot.subx for more details.
#
# Installing Bochs:
#   On Mac OS:
#     brew install bochs
#   On Ubuntu Linux 20.04:
#     sudo apt install bochs bochs-sdl bochsbios vgabios

display_library: sdl2

ata0-master: type=disk, path="code.img", mode=flat, cylinders=20, heads=16, spt=63  # 10MB, 512 bytes per sector
boot: disk
mouse: enabled=1, toggle=ctrl+f10
log: -
/body>