File: single-key-shortcuts.css

package info (click to toggle)
geary 46.0-13
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 15,092 kB
  • sloc: javascript: 972; ansic: 722; sql: 247; xml: 183; python: 30; makefile: 28; sh: 24
file content (39 lines) | stat: -rw-r--r-- 1,063 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/*
 * Copyright 2019 Michael Gratton <mike@vee.net>
 *
 * This software is licensed under the GNU Lesser General Public License
 * (version 2.1 or later). See the COPYING file in this distribution.
 */

/*
 * These match Gmail's as of time of commit. Taken from:
 * https://support.google.com/mail/answer/6594
 */
@binding-set SingleKeyShortcuts {
  bind "r" { "reply-conversation-sender" () };
  bind "a" { "reply-conversation-all" () };
  bind "f" { "forward-conversation" () };

  bind "<Shift>i" { "mark-conversations-read" (1) };
  bind "<Shift>u" { "mark-conversations-read" (0) };
  bind "s" { "mark-conversations-starred" (1) };

  bind "l" { "show-copy-menu" () };
  bind "v" { "show-move-menu" () };

  bind "e" { "archive-conversations" () };
   /* ! */
  bind "exclam" { "junk-conversations" () };
   /* # */
  bind "numbersign" { "delete-conversations" () };

  /* / */
  bind "slash" { "find" () };

  bind "k" { "navigate" (step-up) };
  bind "j" { "navigate" (step-down) };
}

window.geary-main-window {
  -gtk-key-bindings: SingleKeyShortcuts;
}