about summary refs log tree commit diff stats
path: root/xombrero.c
diff options
context:
space:
mode:
authorJosh Rickmar <jrick@devio.us>2012-08-06 10:53:22 -0400
committerJosh Rickmar <jrick@devio.us>2012-08-06 10:53:22 -0400
commitf42dfb2b201ad6a0dc4432eec7798d7fed19c67f (patch)
treeb2b26663bf6e441e19bb4c47d389ea92269ed0ae /xombrero.c
parent91ffa05aa8b2c6ada1c6cc0a65ef8df0f47e4efe (diff)
downloadxombrero-f42dfb2b201ad6a0dc4432eec7798d7fed19c67f.tar.gz
Add a favedit command and remove rm links from :fav
This makes using :fav with link hinting less likely to accidentally
remove an entry by typing the wrong number.  The old favorites page
with the rm links is still available by using the favedit command.

Patch slightly modified from a patch provide by user wallex on FS.
Diffstat (limited to 'xombrero.c')
-rw-r--r--xombrero.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/xombrero.c b/xombrero.c
index 567fc6f..b2acbdd 100644
--- a/xombrero.c
+++ b/xombrero.c
@@ -3359,8 +3359,9 @@ struct cmd {
 	{ "scrollfarright",	0,	move,			XT_MOVE_FARRIGHT,	0 },
 	{ "scrollfarleft",	0,	move,			XT_MOVE_FARLEFT,	0 },
 
-	{ "favorites",		0,	xtp_page_fl,		0,			0 },
-	{ "fav",		0,	xtp_page_fl,		0,			0 },
+	{ "favorites",		0,	xtp_page_fl,		XT_SHOW,		0 },
+	{ "fav",		0,	xtp_page_fl,		XT_SHOW,		0 },
+	{ "favedit",		0,	xtp_page_fl,		XT_SHOW|XT_DELETE,	0 },
 	{ "favadd",		0,	add_favorite,		0,			0 },
 
 	{ "qall",		0,	quit,			0,			0 },