wdlkmpx
f529279ce5
completionline.c: CTRL-S/CTRL-R: search matches anywhere in strings
...
partially restores old behavior
2020-10-07 15:45:18 +08:00
wdlkmpx
c5fb31c030
gtkcompletionline: get rid of cl->cmpl
...
complete_from_list()
add param 'cword' with a string to strdup if completion window is not displayed
complete_line()
rename GList *ls to FileList, and move it a few lines up
use FileList instead of cl->cmpl
if num_items == 1 then pass FileList->data as the second param to complete_from_list()
2020-10-07 14:17:23 +08:00
wdlkmpx
03a98addb3
gtkcompletionline.c: set completion window transient for main window
2020-10-07 00:57:32 +08:00
wdlkmpx
ed2760ac97
Relicense project to ISC
...
thanks to @mishoo
closes #2
2020-10-07 00:56:48 +08:00
wdlkmpx
571d6f428c
complete_from_list: fix memory leak
2020-10-05 17:36:47 +08:00
wdlkmpx
a48ae4b973
complete_line: items > 1: always use 1st item from GtkTreeView
2020-10-05 17:03:22 +08:00
wdlkmpx
4930aa9240
gtkcompletionline.c: (scandir) use standard alphasort
2020-10-05 17:03:12 +08:00
wdlkmpx
90a73af854
gtkcompletionline.c: simplify my_alphasort()
2020-10-05 17:03:07 +08:00
wdlkmpx
ea07442da2
generate_dir_list(): don't use GString
2020-10-05 17:01:18 +08:00
wdlkmpx
3c4519a534
gtkcompletionline.c: remove unused GEN_COMP...
2020-10-03 21:06:49 +08:00
wdlkmpx
0f94a8cad3
gtkcompletionline.c: use only cl->cmpl to get filelist
2020-10-03 21:06:43 +08:00
wdlkmpx
30929fe68d
gtkcompletionline: set/unset prefix in generate_execs_list/dirlist()
2020-10-03 21:06:41 +08:00
wdlkmpx
2c254aad92
gtkcompletionline.c: properly sort completion list
2020-10-03 21:05:30 +08:00
wdlkmpx
496a0782b4
gtkcompletionline.c: fix segfault with gtk3
...
the gtk_list_store is used after it's been destroyed
on_cursor_changed was being triggered inappropriately
block the signal in destroy_completion_window()
2020-10-02 12:29:44 +08:00
wdlkmpx
53de437b97
gtkcompletionline: remove unused cl->first_key
2020-10-02 12:28:19 +08:00
wdlkmpx
70a9bde3f6
get_words(): add empty string if glist is empty
...
move hack from tab_pressed()
2020-10-02 12:28:09 +08:00
wdlkmpx
669f9094cc
gtkcompletionline.c: fix memory leak in complete_from_list()
2020-10-02 12:28:03 +08:00
wdlkmpx
aecb75916c
tab_pressed(): don't call complete_line() if completion window exists
2020-10-02 12:27:52 +08:00
wdlkmpx
b026cd6e04
gtkcompletionline.c: improve logic to free glists
2020-10-02 12:27:49 +08:00
wdlkmpx
d794934169
merge generate_completion_from_execs/dirlist() into complete_line()
2020-10-02 12:27:06 +08:00
wdlkmpx
3727eb6d26
gtkcompletionline.c: avoid triggering on_cursor_changed() twice
...
this also potentially fixes some memory leaks
2020-10-02 12:27:04 +08:00
wdlkmpx
60b7bca318
gtkcompletionline.c: fix complete_from_list / set_words / complete_line
2020-10-02 12:27:00 +08:00
wdlkmpx
c8bd0dec3e
gtkcompletionline.c: remove complete_common()
...
not really needed
2020-10-02 12:26:48 +08:00
wdlkmpx
d46e89b2cf
gtkcompletionline.c: add debug code
2020-10-02 12:26:35 +08:00
wdlkmpx
acb6881379
complete_line(): optimize a bit / fix some memory leaks
2020-10-02 12:26:04 +08:00
wdlkmpx
fe821ecd98
gtkcompletionline.c: use spaces
2020-09-29 16:22:05 +08:00
wdlkmpx
e866c24c39
gtkcompletionline.c: don't use gtk_tree_model_sort_new_with_model()
2020-09-29 16:22:03 +08:00
wdlkmpx
da57c5dcb9
configure.ac: enable many gcc warnings
2020-09-29 16:22:00 +08:00
wdlkmpx
30b75bd447
*** gtkcompletionline.c: use C code ***
...
based on a set of patches by mazes-80
but it became a different thing in the end
need to identify and fix potential memory leaks
(many of them are already fixed)
2020-09-29 16:21:52 +08:00