Commit Graph

234 Commits

Author SHA1 Message Date
wdlkmpx 8ca61a3951 update autogen.sh 2021-01-07 20:26:36 +08:00
wdlkmpx 6223b53709 move gmrunrc & zrelease to data/ dir 2021-01-07 20:16:41 +08:00
wdlkmpx 91173a2b49 remove .travis.yml 2021-01-07 20:12:45 +08:00
wdlkmpx 49dab051bf renamed: COPYING -> LICENSE 2021-01-07 20:11:52 +08:00
wdlkmpx 8e028445ca CTRl-g (search mode): cancel search and clear text entry 2020-12-29 17:34:52 +08:00
wdlkmpx b3dbc9ca9a CTRL-n: Fetch the next command from the history list 2020-12-29 17:33:28 +08:00
wdlkmpx 4fd7c52c48 CTRL-p: fetch the previous command from the history list 2020-12-29 17:33:28 +08:00
wdlkmpx d41ba7df77 search_off(): properly clear cl->hist_word .. 2020-12-29 16:34:18 +08:00
wdlkmpx e84930778a update gtkcompat 2020-12-29 11:11:05 +08:00
wdlkmpx 68282dd4c0 "!": history search mode that matches only the start of strings
The gtk entry must be emtpy before pressing "!"

It enters a special (history) search mode that only
matches the start of strings, a reverse search

hit CTRL-R or CTRL-S to extend search backwards or forwards
2020-10-14 09:09:39 +08:00
wdlkmpx 0bd21c2b90 gtkcompat.h 2020-10-11 2020-10-14 09:09:30 +08:00
wdlkmpx a46c04beca gtkcompletionline.c: (scandir) don't reverse GList
sorting happens in the GtkTreeView
2020-10-14 09:09:19 +08:00
wdlkmpx 4bc440cbb8 gtkcompletionline.c: (scandir) don't use alphasort
sorting happens in the GtkTreeView
2020-10-14 09:09:11 +08:00
wdlkmpx 8f95488c2c config_prefs.c: use free, strdup, calloc.. 2020-10-14 09:09:04 +08:00
wdlkmpx 177832c04a gtkcompletionline.c: restore bash-like search for CTRL-S/R
- CTRL-R enters search mode
- type text until you find something
- hit CTRL-R to nagivate through history items that mach the search text

CTRL-S: regular search
CTRL-R: reverse search

There's one advantage: you can use CTRL-S and CTRL-R any time
and you'll navigate through the results at will
2020-10-07 20:14:55 +08:00
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 b00981c4b3 add gmrun.1 (manual) 2020-10-07 00:57:40 +08:00
wdlkmpx 771e5f5cfa main.c: gmrun [text] 2020-10-07 00:57:37 +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 833e0708e2 update README a bit 2020-10-07 00:56:03 +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 9f12390b20 src/history.c: fix memory leaks 2020-10-03 21:06:51 +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 9b51f89c54 main.c: use spaces 2020-09-29 16:22:07 +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 4361172862 *** gmrun is now a C application *** 2020-09-29 16:21:57 +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