[gnome-builder] editor: Add shortcut to sort selected lines



commit 62b9fffd1c3ff49b8f35dc4895e6a5a1e695b665
Author: vanadiae <vanadiae35 gmail com>
Date:   Thu Feb 18 18:45:18 2021 +0100

    editor: Add shortcut to sort selected lines
    
    Currently if someone needs to sort lines like for e.g. a list of files,
    there's no shortcut to do it so one needs to go find the correct menu
    item with the right click menu.
    
    Since there's already a lot of other shortcuts for those kind of things,
    it makes sense to add a shortcut for it.

 src/plugins/editor/default.css | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/src/plugins/editor/default.css b/src/plugins/editor/default.css
index 2a59876b7..5a981d092 100644
--- a/src/plugins/editor/default.css
+++ b/src/plugins/editor/default.css
@@ -15,6 +15,7 @@
   bind "<ctrl>k" { "action" ("frame", "show-list", "") };
   bind "<ctrl>d" { "delete-from-cursor" (paragraphs, 1) };
   bind "<ctrl>j" { "join-lines" () };
+  bind "<ctrl><shift>j" { "sort" (0, 0) };
   bind "<ctrl>u" { "change-case" (upper) };
   bind "<ctrl>l" { "change-case" (lower) };
   bind "<ctrl>i" { "action" ("editor-page", "goto-line", "") };


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]