From 9cc611a2001869d9cf3577bd1accfbae168d62f6 Mon Sep 17 00:00:00 2001
From: Stan. S. Krupoderov <pashelper@gmail.com>
Date: Mon, 22 Jun 2009 09:51:03 +0400
Subject: [PATCH] add hotkey M-C-\ for hotlist
---
src/main.c | 19 ++++++++++---------
1 files changed, 10 insertions(+), 9 deletions(-)
diff --git a/src/main.c b/src/main.c
index c06dcee..efb08f2 100644
a
|
b
|
|
1 | 1 | /* Main program for the Midnight Commander |
2 | 2 | Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, |
3 | 3 | 2003, 2004, 2005, 2006, 2007, 2009 Free Software Foundation, Inc. |
4 | | |
| 4 | |
5 | 5 | Written by: 1994, 1995, 1996, 1997 Miguel de Icaza |
6 | 6 | 1994, 1995 Janne Kukonlehto |
7 | 7 | 1997 Norbert Warmuth |
8 | | |
| 8 | |
9 | 9 | This program is free software; you can redistribute it and/or modify |
10 | 10 | it under the terms of the GNU General Public License as published by |
11 | 11 | the Free Software Foundation; either version 2 of the License, or |
12 | 12 | (at your option) any later version. |
13 | | |
| 13 | |
14 | 14 | This program is distributed in the hope that it will be useful, |
15 | 15 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
16 | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
… |
… |
int mark_moves_down = 1; |
137 | 137 | /* If true, at startup the user-menu is invoked */ |
138 | 138 | int auto_menu = 0; |
139 | 139 | |
140 | | /* If true, use + and \ keys normally and select/unselect do if M-+ / M-\ |
| 140 | /* If true, use + and \ keys normally and select/unselect do if M-+ / M-\ |
141 | 141 | and M-- and keypad + / - */ |
142 | 142 | int alternate_plus_minus = 0; |
143 | 143 | |
… |
… |
int navigate_with_arrows = 0; |
185 | 185 | /* If true use +, -, | for line drawing */ |
186 | 186 | int force_ugly_line_drawing = 0; |
187 | 187 | |
188 | | /* If true program softkeys (HP terminals only) on startup and after every |
189 | | command ran in the subshell to the description found in the termcap/terminfo |
| 188 | /* If true program softkeys (HP terminals only) on startup and after every |
| 189 | command ran in the subshell to the description found in the termcap/terminfo |
190 | 190 | database */ |
191 | 191 | int reset_hp_softkeys = 0; |
192 | 192 | |
… |
… |
load_prompt (int fd, void *unused) |
741 | 741 | winput_set_origin ((WInput *) cmdline, prompt_len, |
742 | 742 | COLS - prompt_len); |
743 | 743 | |
744 | | /* since the prompt has changed, and we are called from one of the |
| 744 | /* since the prompt has changed, and we are called from one of the |
745 | 745 | * get_event channels, the prompt updating does not take place |
746 | 746 | * automatically: force a cursor update and a screen refresh |
747 | 747 | */ |
… |
… |
static const key_map default_map[] = { |
1313 | 1313 | |
1314 | 1314 | /* To access the directory hotlist */ |
1315 | 1315 | {XCTRL ('\\'), quick_chdir_cmd}, |
| 1316 | {ALT(XCTRL ('\\')), quick_chdir_cmd}, |
1316 | 1317 | |
1317 | 1318 | /* Suspend */ |
1318 | 1319 | {XCTRL ('z'), suspend_cmd}, |
… |
… |
done_mc (void) |
1534 | 1535 | * We sync the profiles since the hotlist may have changed, while |
1535 | 1536 | * we only change the setup data if we have the auto save feature set |
1536 | 1537 | */ |
1537 | | |
| 1538 | |
1538 | 1539 | if (auto_save_setup) |
1539 | 1540 | save_setup (); /* does also call save_hotlist */ |
1540 | 1541 | else { |
… |
… |
midnight_callback (struct Dlg_head *h, dlg_msg_t msg, int parm) |
1635 | 1636 | return MSG_HANDLED; |
1636 | 1637 | } |
1637 | 1638 | } else if (!command_prompt || !cmdline->buffer[0]) { |
1638 | | /* Special treatement '+', '-', '\', '*' only when this is |
| 1639 | /* Special treatement '+', '-', '\', '*' only when this is |
1639 | 1640 | * first char on input line |
1640 | 1641 | */ |
1641 | 1642 | |