16 ožu 2016, 01:00
17 ožu 2016, 04:10
03 svi 2016, 16:03
bind '"\e[1;5C": vi-forward-word'
bind '"\e[5C": vi-forward-word'
bind '"\eOc": vi-forward-word'
$include /etc/inputrc
"\e[1;5C": vi-forward-word
"\e[5C": vi-forward-word
"\eOc": vi-forward-word
[
{ "keys": ["ctrl+right"], "command": "move", "args": {"by": "words", "forward": true} }
]
04 svi 2016, 14:59
binding "vi-forward-word"
{
bind "<Control>Right" { "move-cursor" (words, 1, 0) "move-cursor" (logical-positions, 1, 0) }
bind "<Control><Shift>Right" { "move-cursor" (words, 1, 1) "move-cursor" (logical-positions, 1, 1) }
}
class "GtkEntry" binding "vi-forward-word"
class "GtkTextView" binding "vi-forward-word"
@binding-set vi-forward-word
{
bind "<Control>Right" { "move-cursor" (words, 1, 0) "move-cursor" (logical-positions, 1, 0) };
bind "<Control><Shift>Right" { "move-cursor" (words, 1, 1) "move-cursor" (logical-positions, 1, 1) };
}
GtkEntry {
gtk-key-bindings: vi-forward-word;
}
GtkTextView {
gtk-key-bindings: vi-forward-word;
}
05 svi 2016, 18:49
05 svi 2016, 19:06
"The behavior of this constant depends on the platform and on the direction of the movement. For example, on Windows the stop is always at the start of the word. On GTK and Mac the stop is at the end of the word if the direction is next and at the start of the word if the direction is previous.
if ((movement & SWT.MOVEMENT_WORD) != 0) {
if (forward) {
if (logAttr.is_word_end) found = true;
} else {
if (logAttr.is_word_start) found = true;
}
}
if ((movement & SWT.MOVEMENT_WORD) != 0) {
if (forward) {
if (logAttr.is_word_start) found = true; // <------------ "is_word_start"
} else {
if (logAttr.is_word_start) found = true;
}
}
05 svi 2016, 19:12
05 svi 2016, 20:18
06 svi 2016, 10:35
06 svi 2016, 16:48
calisto053 je napisao/la:@Cooleech - nisam znao da si tako stilski osvješten