Re: using "alt-t" to switch to single-panel mode
On 6/11/17, Karelwrote: >> On 2017-06-08 20:08, Mooffie wrote: >> >> Open src/filemanager/panel.c and search for " % ". > > did you mean this section of src/filemanager/panel.c ? > [...] No, I erred: open src/filemanager/cmd.c instead. The % operator is used there to cycle the modes. It goes from 0 to 3 and back to 0. (You're interested in modes 2 and 3: see panel.h for 'list_long' and 'list_user'.) The code there is simple enough if you know basic C. (You may email me privately if you don't want to pollute this list; but I'm not available 24/7.) > > I cannot use mc^2 (Tip: Don't use "can't" on mailing lists. It gives no real information and only raises more questions. Use "won't" instead.) ___ mc mailing list https://mail.gnome.org/mailman/listinfo/mc
Re: using "alt-t" to switch to single-panel mode
> On 2017-06-08 20:08, Mooffie wrote: > > Open src/filemanager/panel.c and search for " % ". did you mean this section of src/filemanager/panel.c ? 1860: /* Expand the available space */ 1861: if ((usable_columns > total_cols) && expand_top) 1862: { 1863: int spaces = (usable_columns - total_cols) / expand_top; 1864: int extra = (usable_columns - total_cols) % expand_top; 1865: 1866: for (i = 0, darr = home; darr && (i < expand_top); darr = darr->next) 1867: if (darr->expand) 1868: { 1869: darr->field_len += (spaces + ((i == 0) ? extra : 0)); 1870: i++; 1871: } 1872: } 1873: return home; 1874: } > Or, since you're comfortable with compiling, use mc^2. This snippet > does what you want: https://pastebin.com/U3QV550k . I cannot use mc^2 I would like to fix this in mc thanks, Karel ___ mc mailing list https://mail.gnome.org/mailman/listinfo/mc