Commit graph

88 commits

Author SHA1 Message Date
Dave Davenport
c9701b2a91 [View] Add support for user timeout + keybinding action
Configuration looks like:

```css
configuration {
  timeout {
      delay:  15;
      action: "kb-cancel";
  }
}
```

Both delay and action need to be set.
Action can be any of the keybindings as shown in `rofi -show keys`.

(-timeout-delay 15 -timeout-action "kb-cancel"  on commandline.).

Fixes: #1066
2021-06-30 13:29:54 +02:00
Markus Gräb
4fd4fb89af
New keybinding Ctrl-Shift-Enter (#874)
This function combines accept-custom with the functionality to start
the command in terminal

Co-authored-by: Markus Gräb <m_graeb11@cs.uni-kl.de>
Co-authored-by: Dave Davenport <DaveDavenport@users.noreply.github.com>
2021-06-15 14:43:30 +02:00
Dave Davenport
9d85bcb914 Update copyright header. 2021-06-09 14:50:39 +02:00
Dave Davenport
2eefd9b191 [Run] Allow (Ctrl-L) to complete files using file-browser.
Merge old setup from #1116

issue: #1116  #659
2021-06-01 13:14:45 +02:00
Dave Davenport
b169289996 Indent all the code. 2020-02-02 13:56:37 +01:00
Dave Davenport
b03edc5cf3 Update copyright dates. 2020-01-01 12:23:12 +01:00
Simon Legner
5f57519940 Fix typo "Csutom" (#1025) 2019-11-03 20:06:48 +01:00
Dave Davenport
8d9e403659 Update copyright. 2019-09-27 11:58:32 +02:00
Dave Davenport
52c5592a6f [ListView|Textbox] Add user-settable ellipsize mode.
Fixes: #917
2019-05-04 11:04:54 +02:00
Dave Davenport
859a9c79d6 Indent the code. 2018-08-08 15:55:13 +02:00
Maxim Baz
ff9b0f5ccd Add default shortcuts: Shift+BackSpace to delete previous char, Ctrl+Left/Right for word movements (#790)
* Support Shift+BackSpace by default to delete previous char

* Support Ctrl+Arrow for word movements
2018-06-13 14:15:31 +02:00
Dave Davenport
d2576e9f1f More source code documentation updates 2018-06-12 12:31:34 +02:00
Quentin Glidic
101c4dcc26 bindings: Rework mouse bindings (#745)
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-12-26 10:10:40 +01:00
Quentin Glidic
4e4e3917aa
gitmodules: Update libnkutils and libgwater
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-10-14 16:43:02 +02:00
Dave Davenport
a25a21c65e Improve error message a little when bindings collide.
Issue: #640
2017-07-25 17:09:53 +02:00
Dave Davenport
8875118334 Don't popup error dialog, pospone error message. 2017-06-03 16:06:32 +02:00
Quentin Glidic
9b58a9bc31
xcb: Move more stuff to xcb.c
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-06-01 00:39:11 +02:00
Quentin Glidic
52aac6d3b6
gitmodules: Update libnkutils
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-05-31 20:26:12 +02:00
Quentin Glidic
4891bcd7eb
bindings: Use a wrapper around rofi_view_trigger_action
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-05-30 14:14:59 +02:00
Quentin Glidic
6d27a89b99
bindings: Drop unused (and buggy) sentinel
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-05-30 13:45:19 +02:00
Quentin Glidic
a9199e3e17
Use libnkutils for keybindings
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-05-29 16:51:06 +02:00
Quentin Glidic
9a68b22009
Fix licenses headers
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-04-15 12:32:05 +02:00
Dave Davenport
9ae1344d56 Improve error message when called with -show 2017-03-31 13:47:44 +02:00
Dave Davenport
6de992bda8 Remove unneeded tab binding. 2017-03-29 12:25:57 +02:00
Dave Davenport
042e123765 Change default from Shift+Tab to ISO_Left_Tab 2017-03-29 11:56:19 +02:00
Dave Davenport
268b0fa3b0 Super-1..10 keybinding activates row 1..10.
Allowing fore quick switching to entry.
https://forum.qtools.org/t/select-entry-by-offset/84/5
2017-01-10 07:41:37 +01:00
Dave Davenport
baab2047ad Indent magic, rework makefile so lexer and yacc file are not passed. 2017-01-08 21:36:06 +01:00
Dave Davenport
c9b5667a3f Issue: #39 remove delay (until next blink) when triggering on release 2016-11-30 16:35:34 +01:00
Dave Davenport
a9dbd787cf Include in error mesg, what key failed to bind. 2016-11-14 18:42:41 +01:00
Dave Davenport
62879ee739 Continue parsing when keybinding fail, only show errors after all are done. 2016-11-14 16:53:01 +01:00
Dave Davenport
fcf3c33415 Fix keybinding with Shift in name. Alt-Shift-S -> Alt-S. Alt-Shift-1 -> Alt-exclam
+ indent.
2016-11-14 16:25:04 +01:00
Dave Davenport
e3af1efaef Fix crash when clicked out of window. 2016-11-11 09:30:44 +01:00
Dave Davenport
217290479e Merge two functions that no longer have a reason to be split.
Fixes: #491
2016-10-28 08:51:53 +02:00
Dave Davenport
163934fa8c Simplify some code, more comments. (90% docu) 2016-10-25 22:45:11 +02:00
fice-t
a657f81145 Bind Control+g to kb-cancel (#452)
Control+g is the Emacs/readline standard for abort, so it would be nice
to have this by default.
2016-08-25 07:52:54 +02:00
Dave Davenport
8478b427f1 Fix Control+u behaviour 2016-07-27 08:10:55 +02:00
Dave Davenport
fe230eb95c Fix #432, Control+k removes till eol. 2016-07-25 11:32:30 +02:00
Dave Davenport
1f4af41e96 Split Custom and Alternate command. 2016-06-19 18:02:49 +02:00
Dave Davenport
72ffebc8fe Remove Tab from row-down list 2016-06-18 21:18:28 +02:00
Dave Davenport
0170aef0e6 Add Control-Backspace as keybinding. 2016-06-06 09:31:48 +02:00
Dave Davenport
ed7aeb7722 Fix 'Tab' binding description 2016-05-31 08:05:09 +02:00
Dave Davenport
10e3526237 Fix description, -switchers does not exist. 2016-05-31 07:59:40 +02:00
marduk
be5a66c9b5 Added the descriptions of the keybindings 2016-05-31 07:47:17 +02:00
Dave Davenport
1b5bcaa9f4 Issue #411: Show list of Keyboard bindings with rofi, from rofi. 2016-05-30 10:25:58 +02:00
Dave Davenport
8f6c9ee070 Fix indenting 2016-05-08 11:13:11 +02:00
Quentin Glidic
67b0ce036f keybindings: Implement on-release bindings
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2016-05-07 11:31:04 +02:00
Quentin Glidic
54f85fabaa keybindings: Rework the matching
Now we check all bindings in one place, allowing for future naughty
matching.

Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2016-05-07 11:25:04 +02:00
Dave Davenport
c4b65d975c Cleanup unused type specifier. 2016-03-24 22:13:19 +01:00
Quentin Glidic
20c9abf0a2 keybindings: Merge accept-custom and accept-entry-continue
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2016-03-20 10:39:34 +01:00
Dave Davenport
a2869ef39d Make clang static code analyzer happy (300+ -> 5) 2016-03-19 13:29:04 +01:00