aboutsummaryrefslogtreecommitdiff
path: root/sysutils
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-06-09 12:50:48 +0200
committerJohn Ankarström <john@ankarstrom.se>2021-06-09 12:50:48 +0200
commit177085b47d2234442867b42288a4a19852427d94 (patch)
treef56589dba7ef2160d0f0a122ffee64257ce2bf66 /sysutils
parent652b789d1b3045293da297bcdccf3264c435bae8 (diff)
downloadpatches-177085b47d2234442867b42288a4a19852427d94.tar.gz
Add sys/utils/sysutils/rox/{patch-keys,patch-select-by-name}
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/rox/patch-keys38
-rw-r--r--sysutils/rox/patch-select-by-name21
2 files changed, 59 insertions, 0 deletions
diff --git a/sysutils/rox/patch-keys b/sysutils/rox/patch-keys
new file mode 100644
index 0000000..ddbf243
--- /dev/null
+++ b/sysutils/rox/patch-keys
@@ -0,0 +1,38 @@
+$NetBSD
+
+Change default key bindings.
+
+--- ROX-Filer/src/filer.c.orig 2021-06-09 12:27:42.485755107 +0200
++++ ROX-Filer/src/filer.c
+@@ -1228,9 +1228,6 @@ gint filer_key_press_event(GtkWidget *widget,
+ case GDK_Tab:
+ filer_next_selected(filer_window, 1);
+ break;
+- case GDK_BackSpace:
+- change_to_parent(filer_window);
+- break;
+ case GDK_backslash:
+ {
+ ViewIter iter;
+--- ROX-Filer/src/menu.c.orig 2021-06-09 12:29:31.430071590 +0200
++++ ROX-Filer/src/menu.c
+@@ -238,7 +238,7 @@ static GtkItemFactoryEntry filer_menu_def[] = {
+ {">" N_("Blank file"), NULL, new_file, 0, "<StockItem>", GTK_STOCK_NEW},
+ {">" N_("Customise Menu..."), NULL, customise_new, 0, NULL},
+ {N_("Window"), NULL, NULL, 0, "<Branch>"},
+-{">" N_("Parent, New Window"), NULL, open_parent, 0, "<StockItem>", GTK_STOCK_GO_UP},
++{">" N_("Parent, New Window"), "BackSpace", open_parent, 0, "<StockItem>", GTK_STOCK_GO_UP},
+ {">" N_("Parent, Same Window"), NULL, open_parent_same, 0, NULL},
+ {">" N_("New Window"), NULL, new_window, 0, NULL},
+ {">" N_("Home Directory"), "<Ctrl>Home", home_directory, 0, "<StockItem>", GTK_STOCK_HOME},
+--- ROX-Filer/src/menu.c.orig 2021-06-09 12:44:32.990200434 +0200
++++ ROX-Filer/src/menu.c
+@@ -248,7 +248,7 @@ static GtkItemFactoryEntry filer_menu_def[] = {
+ {">" N_("Resize Window"), "<Ctrl>E", resize, 0, NULL},
+ /* {">" N_("New, As User..."), NULL, new_user, 0, NULL}, */
+
+-{">" N_("Close Window"), "<Ctrl>Q", close_window, 0, "<StockItem>", GTK_STOCK_CLOSE},
++{">" N_("Close Window"), "Q", close_window, 0, "<StockItem>", GTK_STOCK_CLOSE},
+ {">", NULL, NULL, 0, "<Separator>"},
+ {">" N_("Enter Path..."), "slash", mini_buffer, MINI_PATH, NULL},
+ {">" N_("Shell Command..."), "<Shift>exclam", mini_buffer, MINI_SHELL, NULL},
diff --git a/sysutils/rox/patch-select-by-name b/sysutils/rox/patch-select-by-name
new file mode 100644
index 0000000..5b5efc8
--- /dev/null
+++ b/sysutils/rox/patch-select-by-name
@@ -0,0 +1,21 @@
+$NetBSD
+
+Use pattern ** by default, placing the cursor between the two
+asterisks.
+
+
+--- ROX-Filer/src/minibuffer.c.orig 2021-06-09 12:31:39.534115313 +0200
++++ ROX-Filer/src/minibuffer.c
+@@ -153,9 +153,10 @@ void minibuffer_show(FilerWindow *filer_window, MiniType mini_type)
+ filer_window->mini_cursor_base = -1; /* History */
+ break;
+ case MINI_SELECT_BY_NAME:
+- gtk_entry_set_text(mini, "*.");
++ gtk_entry_set_text(mini, "**");
++ pos = 1;
+ filer_window->mini_cursor_base = -1; /* History */
+- view_select_if(filer_window->view, select_if_glob, "*.");
++ view_select_if(filer_window->view, select_if_glob, "**");
+ break;
+ case MINI_FILTER:
+ if(filer_window->filter!=FILER_SHOW_GLOB ||