Mode | Name | Size | |
-rw-r--r-- | all_tests.html | 829 | log stats plain blame |
-rw-r--r-- | curses.ascii.html | 4204 | log stats plain blame |
-rw-r--r-- | curses.html | 16152 | log stats plain blame |
-rw-r--r-- | make_doc.html | 1642 | log stats plain blame |
-rw-r--r-- | os.html | 68864 | log stats plain blame |
-rw-r--r-- | os.path.html | 9619 | log stats plain blame |
-rw-r--r-- | ranger.__main__.html | 3364 | log stats plain blame |
-rw-r--r-- | ranger.actions.html | 13879 | log stats plain blame |
-rw-r--r-- | ranger.applications.html | 13243 | log stats plain blame |
-rw-r--r-- | ranger.colorschemes.default.html | 6634 | log stats plain blame |
-rw-r--r-- | ranger.colorschemes.html | 2125 | log stats plain blame |
-rw-r--r-- | ranger.colorschemes.jungle.html | 6628 | log stats plain blame |
-rw-r--r-- | ranger.colorschemes.snow.html | 6583 | log stats plain blame |
-rw-r--r-- | ranger.commands.html | 29441 | log stats plain blame |
-rw-r--r-- | ranger.container.bookmarks.html | 8598 | log stats plain blame |
-rw-r--r-- | ranger.container.commandlist.html | 12655 | log stats plain blame |
-rw-r--r-- | ranger.container.environment.html | 7611 | log stats plain blame |
-rw-r--r-- | ranger.container.history.html | 9035 | log stats plain blame |
-rw-r--r-- | ranger.container.html | 1856 | log stats plain blame |
-rw-r--r-- | ranger.container.keybuffer.html | 5782 | log stats plain blame |
-rw-r--r-- | ranger.container.tags.html | 4232 | log stats plain blame |
-rw-r--r-- | ranger.defaults.apps.html | 7222 | log stats plain blame |
-rw-r--r-- | ranger.defaults.html | 1584 | log stats plain blame |
-rw-r--r-- | ranger.defaults.keys.html | 18878 | log stats plain blame |
-rw-r--r-- | ranger.defaults.options.html | 3921 | log stats plain blame |
-rw-r--r-- | ranger.ext.accumulator.html | 4707 | log stats plain blame |
-rw-r--r-- | ranger.ext.command_parser.html | 4468 | log stats plain blame |
-rw-r--r-- | ranger.ext.debug.html | 3344 | log stats plain blame |
-rw-r--r-- | ranger.ext.get_all_modules.html | 2918 | log stats plain blame |
-rw-r--r-- | ranger.ext.html | 2172 | log stats plain blame |
-rw-r--r-- | ranger.ext.human_readable.html | 3235 | log stats plain blame |
-rw-r--r-- | ranger.ext.move.html | 2821 | log stats plain blame |
-rw-r--r-- | ranger.ext.openstruct.html | 4149 | log stats plain blame |
-rw-r--r-- | ranger.ext.relpath.html | 3643 | log stats plain blame |
-rw-r--r-- | ranger.ext.shutil_generatorized.html | 17595 | log stats plain blame |
-rw-r--r-- | ranger.ext.waitpid_no_intr.html | 2863 | log stats plain blame |
-rw-r--r-- | ranger.fm.html | 14978 | log stats plain blame |
-rw-r--r-- | ranger.fsobject.directory.html | 22719 | log stats plain blame |
-rw-r--r-- | ranger.fsobject.file.html | 8689 | log stats plain blame |
-rw-r--r-- | ranger.fsobject.fsobject.html | 10110 | log stats plain blame |
-rw-r--r-- | ranger.fsobject.html | 6748 | log stats plain blame |
-rw-r--r-- | ranger.fsobject.loader.html | 8410 | log stats plain blame |
-rw-r--r-- | ranger.gui.bar.html | 14717 | log stats plain blame |
-rw-r--r-- | ranger.gui.color.html | 3528 | log stats plain blame |
-rw-r--r-- | ranger.gui.colorscheme.html | 6058 | log stats plain blame |
-rw-r--r-- | ranger.gui.curses_shortcuts.html | 6804 | log stats plain blame |
-rw-r--r-- | ranger.gui.defaultui.html | 11513 | log stats plain blame |
-rw-r--r-- | ranger.gui.displayable.html | 21946 | log stats plain blame |
-rw-r--r-- | ranger.gui.html | 1850 | log stats plain blame |
-rw-r--r-- | ranger.gui.mouse_event.html | 5172 | log stats plain blame |
-rw-r--r-- | ranger.gui.ui.html | 11465 | log stats plain blame |
-rw-r--r-- | ranger.gui.widgets.browsercolumn.html | 10714 | log stats plain blame | (sel->prev))) {
for(c = clients; c && c->next; c = c->next);
c = getprev(c);
}
if(c) {
focus(c);
restack();
}
}
Bool
isvisible(Client *c)
{
unsigned int i;
for(i = 0; i < ntags; i++)
if(c->tags[i] && seltag[i])
return True;
return False;
}
void
restack()
{
static unsigned int nwins = 0;
static Window *wins = NULL;
unsigned int f, fi, m, mi, n;
Client *c;
XEvent ev;
for(f = 0, m = 0, c = clients; c; c = c->next)
if(isvisible(c)) {
if(c->isfloat || arrange == dofloat)
f++;
else
m++;
}
if(!(n = 2 * (f + m))) {
drawstatus();
return;
}
if(nwins < n) {
nwins = n;
wins = erealloc(wins, nwins * sizeof(Window));
}
fi = 0;
mi = 2 * f;
if(sel->isfloat || arrange == dofloat) {
wins[fi++] = sel->twin;
wins[fi++] = sel->win;
}
else {
wins[mi++] = sel->twin;
wins[mi++] = sel->win;
}
for(c = clients; c; c = c->next)
if(isvisible(c) && c != sel) {
if(c->isfloat || arrange == dofloat) {
wins[fi++] = c->twin;
wins[fi++] = c->win;
}
else {
wins[mi++] = c->twin;
wins[mi++] = c->win;
}
}
XRestackWindows(dpy, wins, n);
drawall();
XSync(dpy, False);
while(XCheckMaskEvent(dpy, EnterWindowMask, &ev));
}
void
togglemode(Arg *arg)
{
arrange = (arrange == dofloat) ? dotile : dofloat;
if(sel)
arrange(NULL);
else
drawstatus();
}
void
toggleview(Arg *arg)
{
unsigned int i;
seltag[arg->i] = !seltag[arg->i];
for(i = 0; i < ntags && !seltag[i]; i++);
if(i == ntags)
seltag[arg->i] = True; /* cannot toggle last view */
reorder();
arrange(NULL);
}
void
view(Arg *arg)
{
unsigned int i;
for(i = 0; i < ntags; i++)
seltag[i] = False;
seltag[arg->i] = True;
reorder();
arrange(NULL);
}
void
viewall(Arg *arg)
{
unsigned int i;
for(i = 0; i < ntags; i++)
seltag[i] = True;
reorder();
arrange(NULL);
}
void
zoom(Arg *arg)
{
Client *c = sel;
if(!c || (arrange != dotile) || c->isfloat || maximized)
return;
if(c == getnext(clients))
if(!(c = getnext(c->next)))
return;
detach(c);
c->next = clients;
clients->prev = c;
clients = c;
focus(c);
arrange(NULL);
}