_shortcuts.html.haml 7.53 KB
Newer Older
1
#modal-shortcuts.modal{tabindex: -1}
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
2 3 4 5
  .modal-dialog
    .modal-content
      .modal-header
        %a.close{href: "#", "data-dismiss" => "modal"} ×
6
        %h4
7
          Keyboard Shortcuts
8
          %small
9 10 11 12 13 14 15 16 17
            = link_to '(Show all)', '#', class: 'js-more-help-button'
      .modal-body.shortcuts-cheatsheet
        .col-lg-4
          %table.shortcut-mappings
            %tbody
              %tr
                %th
                %th Global Shortcuts
              %tr
18
                %td.shortcut
19 20 21
                  .key s
                %td Focus Search
              %tr
22
                %td.shortcut
23
                  .key ?
Alfredo Sumaran's avatar
Alfredo Sumaran committed
24
                %td Show/hide this dialog
25 26
              %tr
                %td.shortcut
Timothy Andrew's avatar
Timothy Andrew committed
27
                  - if browser.platform.mac?
Baldinof's avatar
Baldinof committed
28
                    .key ⌘ shift p
29 30
                  - else
                    .key ctrl shift p
31
                %td Toggle Markdown preview
32 33 34 35 36
              %tr
                %td.shortcut
                  .key
                    %i.fa.fa-arrow-up
                %td Edit last comment (when focused on an empty textarea)
37 38 39 40 41 42 43
            %tbody
              %tr
                %th
                %th Project Files browsing
              %tr
                %td.shortcut
                  .key
44
                    %i.fa.fa-arrow-up
45 46 47 48
                %td Move selection up
              %tr
                %td.shortcut
                  .key
49
                    %i.fa.fa-arrow-down
50 51
                %td Move selection down
              %tr
52
                %td.shortcut
53 54
                  .key enter
                %td Open Selection
55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76
            %tbody
              %tr
                %th
                %th Finding Project File
              %tr
                %td.shortcut
                  .key
                    %i.fa.fa-arrow-up
                %td Move selection up
              %tr
                %td.shortcut
                  .key
                    %i.fa.fa-arrow-down
                %td Move selection down
              %tr
                %td.shortcut
                  .key enter
                %td Open Selection
              %tr
                %td.shortcut
                  .key esc
                %td Go back
77

78 79 80 81 82 83 84
        .col-lg-4
          %table.shortcut-mappings
            %tbody{ class: 'hidden-shortcut project', style: 'display:none' }
              %tr
                %th
                %th Global Dashboard
              %tr
85
                %td.shortcut
86 87 88 89 90
                  .key g
                  .key a
                %td
                  Go to the activity feed
              %tr
91
                %td.shortcut
92 93 94 95 96
                  .key g
                  .key p
                %td
                  Go to projects
              %tr
97
                %td.shortcut
98 99 100 101 102
                  .key g
                  .key i
                %td
                  Go to issues
              %tr
103
                %td.shortcut
104 105 106 107 108 109 110 111 112
                  .key g
                  .key m
                %td
                  Go to merge requests
            %tbody
              %tr
                %th
                %th Project
              %tr
113
                %td.shortcut
114
                  .key g
115
                  .key p
116 117 118 119 120 121
                %td
                  Go to the project's home page
              %tr
                %td.shortcut
                  .key g
                  .key e
122
                %td
123
                  Go to the project's activity feed
124
              %tr
125
                %td.shortcut
126 127 128 129 130
                  .key g
                  .key f
                %td
                  Go to files
              %tr
131
                %td.shortcut
132 133 134 135
                  .key g
                  .key c
                %td
                  Go to commits
Kamil Trzcinski's avatar
Kamil Trzcinski committed
136 137 138 139 140 141
              %tr
                %td.shortcut
                  .key g
                  .key b
                %td
                  Go to builds
142
              %tr
143
                %td.shortcut
144 145 146 147 148
                  .key g
                  .key n
                %td
                  Go to network graph
              %tr
149
                %td.shortcut
150 151 152 153 154
                  .key g
                  .key g
                %td
                  Go to graphs
              %tr
155
                %td.shortcut
156 157 158 159 160
                  .key g
                  .key i
                %td
                  Go to issues
              %tr
161
                %td.shortcut
162 163 164 165 166 167 168 169 170 171
                  .key g
                  .key m
                %td
                  Go to merge requests
              %tr
                %td.shortcut
                  .key g
                  .key s
                %td
                  Go to snippets
172 173 174 175
              %tr
                %td.shortcut
                  .key t
                %td Go to finding file
Alfredo Sumaran's avatar
Alfredo Sumaran committed
176 177 178 179
              %tr
                %td.shortcut
                  .key i
                %td New issue
180 181 182 183 184 185 186 187 188
        .col-lg-4
          %table.shortcut-mappings
            %tbody{ class: 'hidden-shortcut network', style: 'display:none' }
              %tr
                %th
                %th Network Graph
              %tr
                %td.shortcut
                  .key
189
                    %i.fa.fa-arrow-left
190 191 192 193 194 195
                  \/
                  .key h
                %td Scroll left
              %tr
                %td.shortcut
                  .key
196
                    %i.fa.fa-arrow-right
197 198 199 200 201 202
                  \/
                  .key l
                %td Scroll right
              %tr
                %td.shortcut
                  .key
203
                    %i.fa.fa-arrow-up
204 205 206 207 208 209
                  \/
                  .key k
                %td Scroll up
              %tr
                %td.shortcut
                  .key
210
                    %i.fa.fa-arrow-down
211 212 213 214 215 216 217
                  \/
                  .key j
                %td Scroll down
              %tr
                %td.shortcut
                  .key
                    shift
218
                    %i.fa.fa-arrow-up
219 220 221 222 223 224 225 226
                  \/
                  .key
                    shift k
                %td Scroll to top
              %tr
                %td.shortcut
                  .key
                    shift
227
                    %i.fa.fa-arrow-down
228 229 230 231 232 233 234 235 236
                  \/
                  .key
                    shift j
                %td Scroll to bottom
            %tbody{ class: 'hidden-shortcut issues', style: 'display:none' }
              %tr
                %th
                %th Issues
              %tr
237
                %td.shortcut
238 239 240
                  .key a
                %td Change assignee
              %tr
241
                %td.shortcut
242 243
                  .key m
                %td Change milestone
244 245 246 247
              %tr
                %td.shortcut
                  .key r
                %td Reply (quoting selected text)
248 249 250 251
              %tr
                %td.shortcut
                  .key e
                %td Edit issue
Alfredo Sumaran's avatar
Alfredo Sumaran committed
252 253 254 255
              %tr
                %td.shortcut
                  .key l
                %td Change Label
Robert Speicher's avatar
Robert Speicher committed
256
            %tbody{ class: 'hidden-shortcut merge_requests', style: 'display:none' }
257 258 259 260
              %tr
                %th
                %th Merge Requests
              %tr
261
                %td.shortcut
262 263 264
                  .key a
                %td Change assignee
              %tr
265
                %td.shortcut
266 267
                  .key m
                %td Change milestone
268 269 270 271
              %tr
                %td.shortcut
                  .key r
                %td Reply (quoting selected text)
272 273 274 275
              %tr
                %td.shortcut
                  .key e
                %td Edit merge request
Alfredo Sumaran's avatar
Alfredo Sumaran committed
276 277 278 279
              %tr
                %td.shortcut
                  .key l
                %td Change Label