Thumbnail

rani/cscroll.git

Clone URL: https://git.buni.party/rani/cscroll.git

commit f45eef2703780d261cb3c19caeecbd67c11b0c24 Author: Raniconduh <clagv.randomgames@gmail.com> Date: Mon Oct 11 10:31:19 2021 +0000 switched key binding for xdg-open command diff --git a/src/main.c b/src/main.c index 5e5602f..030c2ff 100644 --- a/src/main.c +++ b/src/main.c @@ -9514 +9518 @@ int main(int argc, char ** argv) {   break;   case ARROW_RIGHT:   case 'l': + case '\n':   if (!n_dir_entries) break; - if (dir_entries[cursor - 1]->file_type != FILE_DIR) break; - enter_dir(dir_entries[cursor - 1]->name); - free_dir_entries(); - list_dir(cwd); - cursor = 1; - first_f = 0; - last_f = LAST_F; + if (dir_entries[cursor - 1]->file_type == FILE_DIR) { + enter_dir(dir_entries[cursor - 1]->name); + free_dir_entries(); + list_dir(cwd); + cursor = 1; + first_f = 0; + last_f = LAST_F; + } else { + ext_open(dir_entries[cursor - 1]->name); + }   break;   case 'g':   cursor = 1; @@ -1449 +1486 @@ int main(int argc, char ** argv) {   last_f = LAST_F;   }   break; - case 'o': - ext_open(dir_entries[cursor - 1]->name); - break;   case 'q':   goto done;   default: