From d159196cb5b6b857a36ebbc97e19e6205ab1c98d Mon Sep 17 00:00:00 2001 From: niallo Date: Tue, 26 Jun 2007 19:34:26 +0000 Subject: modify "exec" dialog so that it auto-completes based on executables in _PATH_DEFPATH add an "ssh-to" dialog which auto-completes based on contents of ~/.ssh/known_hosts (M-.) testing and eyeballing by Simon Kuhnle , todd@, pedro@ mk@ and David Cathcart ok todd@ --- calmwm.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'calmwm.h') diff --git a/calmwm.h b/calmwm.h index 49da89c..5a47cb9 100644 --- a/calmwm.h +++ b/calmwm.h @@ -4,7 +4,7 @@ * Copyright (c) 2004 Marius Aamodt Eriksen * All rights reserved. * - * $Id: calmwm.h,v 1.6 2007/06/05 19:03:20 jasper Exp $ + * $Id: calmwm.h,v 1.7 2007/06/26 19:34:26 niallo Exp $ */ #ifndef _CALMWM_H_ @@ -257,6 +257,7 @@ struct menu { char print[MENU_MAXENTRY + 1]; void *ctx; short lasthit; + short dummy; }; TAILQ_HEAD(menu_q, menu); @@ -427,6 +428,7 @@ void kbfunc_client_maximize(struct client_ctx *, void *); void kbfunc_client_vmaximize(struct client_ctx *, void *); void kbfunc_menu_search(struct client_ctx *, void *); void kbfunc_exec(struct client_ctx *, void *); +void kbfunc_ssh(struct client_ctx *, void *); void kbfunc_term(struct client_ctx *cc, void *arg); void kbfunc_lock(struct client_ctx *cc, void *arg); @@ -437,10 +439,11 @@ struct menu *search_start(struct menu_q *menuq, void (*match)(struct menu_q *, struct menu_q *, char *), void (*rank)(struct menu_q *, char *), void (*print)(struct menu *mi, int), - char *); + char *, int); void search_match_client(struct menu_q *, struct menu_q *, char *); void search_print_client(struct menu *mi, int list); void search_match_text(struct menu_q *, struct menu_q *, char *); +void search_match_exec(struct menu_q *, struct menu_q *, char *); void search_rank_text(struct menu_q *, char *); void group_init(void); -- cgit v1.2.3-2-gb3c3