Commit Graph

254 Commits

Author SHA1 Message Date
wdlkmpx f3ff2c62eb update gmrun.1
forgot to update this for release 1.1w ...
2021-03-06 15:44:47 +08:00
wdlkmpx f3043727dc gmrun 1.1w 2021-03-06 15:22:44 +08:00
wdlkmpx e8dd889f24 merge data/zrelease into autogen.sh .. 2021-03-06 10:09:32 +08:00
wdlkmpx 802a4bda50 main.c (gtk3.4+): G_APPLICATION_NON_UNIQUE 2021-02-22 15:07:05 +08:00
wdlkmpx e390c1e063 main.c: main() gtk3.4+: hide cmd line args from GApplication
Handling cmd line args with GApplication is a nightmare
https://developer.gnome.org/gtkmm-tutorial/stable/sec-multi-item-containers.html.en#boxes-command-line-options
2021-02-22 15:00:58 +08:00
wdlkmpx 0573d99082 gmrunrc: EXT syntax-> EXT:ext,etc = handler '%s' 2021-02-22 08:21:46 +08:00
wdlkmpx ee2560d57f rename USE_XDG to USE_GLIB_XDG 2021-02-22 08:11:40 +08:00
PRESFIL 8e1c8718ae Fix xterm -e handling with multiword queryes
* `xterm`'s `-e` option is an option with a **variable number of parameters*.
  It does not perform word splitting on its own and takes all argv's words
  after it.  Therefore, the quotation marks in man and info prevent you from
  passing them switches and multiple arguments.

* Some commands (like `xdg`-gues) takes 1 argument and they can contain
  shell-symbols -> must be braced

* Some of them (like man & info) can take multiple arguments and (as it seems
  to me) cannot contain shell-symbloc -> must not be braced to split query to
  multiple words.
2021-02-22 20:47:37 +08:00
wdlkmpx c9e22f006a main.c: ext_check(): escape spaces only if USE_XDG = 1
otherwise unescape spaces

ref #5
2021-02-22 07:36:01 +08:00
wdlkmpx 78cac66790 restore system(3) call as the default option to run commands
Use libc's system(3) to run commands, this includes any shell command
   and special stuff that only a shell interpreter can understand
 Set to 0 if you want a more conservative approach where the file to run
   is validated and errors running files are reported (without closing the gmrun window)

SHELL_RUN = 1

ref #4
2021-02-18 17:51:38 +08:00
wdlkmpx 1e678b1038 gmrun 1.0w 2021-01-25 15:02:57 +08:00
wdlkmpx ceb6ae60b5 add Makefile.true 2021-01-25 14:15:02 +08:00
wdlkmpx a9c45a9f9d use GtkApplication for GTK3 2021-01-25 11:49:58 +08:00
wdlkmpx bfed4acda5 gtkcompletionline: tweaks / don't declare var inside for loop.. 2021-01-25 11:48:56 +08:00
wdlkmpx 077ac01700 history.c: use g_list_delete_link() 2021-01-22 16:27:41 +08:00
wdlkmpx 073e95a57a update README 2021-01-22 16:27:28 +08:00
wdlkmpx f59d31c5a4 configure.ac: default to GTK3, fall back to GTK2
the gtk3 port will be compiled if gtk3 is available

use --enable-gtk2 or --disable-gtk3 to compile the gtk2 port
2021-01-20 21:30:37 +08:00
wdlkmpx 26d4fb47c6 fix gcc9 warnings 2021-01-20 08:57:03 +08:00
wdlkmpx 7caa9ae8b4 configure.ac: disable deprecated gtk2 stuff 2021-01-20 08:57:00 +08:00
wdlkmpx 21dc2c4470 update README 2021-01-07 21:03:03 +08:00
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