Commit Graph

8302 Commits

Author SHA1 Message Date
Iouri Kharon
089cb8f65d This patch correct 'Compare directories' command.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-06-03 21:43:22 +03:00
Slava Zanko
43c99a14da Add definitions of Shift+F3 and Shift+F4 keys into misc/mc.lib file
On some terminals (such as gnome-terminal and xterm)  Shift+F[x] keys doesn't work. This patch will fix it.
Also, made some cleanups in 'xterm-color' section.
2009-06-01 17:53:48 +03:00
Slava Zanko
6c2c253f34 configure.ac: Remove deprecated check of glib-1.2 2009-06-01 11:32:23 +03:00
Slava Zanko
3b3dbe0f91 Old state of panels now read once from ~/.mc/ini file (if ~/.mc/panels.ini don't exists) 2009-06-01 11:32:19 +03:00
Slava Zanko
7238c35889 Fix invalid declarations of ESC-sequenses in mc.lib file 2009-06-01 11:07:21 +03:00
Slava Zanko
a462a4b3ee Fixed saved panel state and fixed reading key definitions from config-file
misc/mc.lib: added escaping of all backslashes
src/mcconfig/common.c: removed forgotten debug code
src/setup.c: fixed non-saving of panels state
2009-06-01 11:06:03 +03:00
Slava Zanko
e9930f9e28 Changed all source files for use new config module 2009-06-01 11:05:11 +03:00
Slava Zanko
1aad5105cb misc/mc.lib: changes in hotkeys definitions.
Now multiple definitions separate by ';' sign for one hotkey
2009-06-01 11:01:16 +03:00
Slava Zanko
72461d232e mcconfig: added module for work with ini-files 2009-06-01 10:57:44 +03:00
Slava Zanko
0a1b6bfbb2 Reworked "Special dirs"->"list" parameter handle code
misc/mc.lib: changed ',' to ';'
src/treestore.c: use mc_config_get_string_list() function instread of strtok() function
2009-06-01 10:55:35 +03:00
Slava Zanko
acc64ecd68 Fixed saved panel state and fixed reading key definitions from config-file
misc/mc.lib: added escaping of all backslashes
src/mcconfig/common.c: removed forgotten debug code
src/setup.c: fixed non-saving of panels state
2009-06-01 10:55:35 +03:00
Slava Zanko
a70255f643 Changed all source files for use new config module 2009-06-01 10:55:35 +03:00
Slava Zanko
5edb3a645e misc/mc.lib: changes in hotkeys definitions.
Now multiple definitions separate by ';' sign for one hotkey
2009-06-01 10:55:07 +03:00
Slava Zanko
c583b303da Delete src/profile.[ch] files
Also:
 * add check for minimal version of glib (>= 2.6)
 * add subdir src/mcconfig into build action (by make)
2009-06-01 10:55:06 +03:00
Slava Zanko
3de5486aac mcconfig: added module for work with ini-files 2009-06-01 10:55:06 +03:00
Sergei Trofimovich
d962211bcb gentoo: added git ebuild for Gentoo
Signed-off-by: Sergei Trofimovich <slyfox@inbox.ru>
2009-05-29 23:48:52 +03:00
Sergei Trofimovich
4ecef05511 completion: do not duplicate non-escaped strings
Signed-off-by: Sergei Trofimovich <st@anti-virus.by>
2009-05-29 15:14:52 +03:00
Sergei Trofimovich
09cdc11c3c str_escape: do not hide error when NULL is escaped
There is many places (esp. completion stuff),
whish does stuff like the following:
char * result
while ( (result = do_stuff (&state)) != NULL) {
   ...
}

Usually do_stuff () uses str_unescape() in function start
and str_escape() at the end. str_escape() hides NULL and
we get endless loop. And g_strdup("") is larger, than NULL :]

Signed-off-by: Sergei Trofimovich <st@anti-virus.by>
2009-05-29 15:04:58 +03:00
Slava Zanko
ae96b4dac0 Fixed tab completion (esc-tab) crash.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-05-29 10:28:59 +03:00
Slava Zanko
f0182a6969 Fix compile mcserv helper
Changes logic in m4 files for more sense of configure options.
Renamed --with-mcfs ro --enable-mcserver
2009-05-27 21:50:02 +03:00
Slava Zanko
abcd23406d remove ChangeLog files from mc tree
Description by Sergei Trofimovich:

GNU ChangeLog? files are result of CVS stupidpity about changeset tracking.
Currently constantly updated ChangeLogs? diverge in different branches and cause collisions(!)
when 'git merge' (almost ANY SINGLE MERGE!).

Major changes can be described in NEWS file, minor changes can be autogenerated via 'git log'/'git shortlog'
and friends (if needed at all).
2009-05-27 14:53:23 +03:00
Andrew Borodin
5bc2a579b3 src/cmd.c (select_inselect_cmd): show previous entered text in input line. 2009-05-27 12:49:26 +03:00
Slava Zanko
17343149d6 Remove 'All charsets' checkbox from all search dialogs when specified '--disable-charsets' configure option 2009-05-27 12:20:21 +03:00
Slava Zanko
49015842c9 Fix case insentitive search with --disable-charset configure option
Also, changes 'normal' search engine - now it wrapper for 'regex' search engine
because old engine don't correct work: search by 'test' success on 'test' or 'TEST'
but fail on 'Test' or 'teSt'. New 'normal' engine work correctly.
2009-05-27 12:19:23 +03:00
Slava Zanko
abf38df5e0 src/view.c: fix search result highlighting in backward search. Also fix search results highlight in nroff'ed text 2009-05-27 12:06:13 +03:00
Slava Zanko
89bdeb7e34 edit/editcmd.c: fix backward search by one symbol. 2009-05-27 11:49:36 +03:00
Andrew Borodin
13b12fdd5b src/complete.c:
(filename_completion_function): tilde_expand() returns a new allocated
string, fixed memleak. Formatting. Small optimization. Type accuracy.
Continue at the end of loop is useless, removed.
(username_completion_function): Type accuracy. Formatting. Small
optimization.
(command_completion_function): Type accuracy. Small optimization.
Fixed bug of previous commit: pointer to freed memory was used.
2009-05-27 11:20:48 +03:00
Slava Zanko
1a899905bd Fix usage of shell_[un]escape functions.
These functions returns newly allocated string, but calling don't freeze correctly allocated memory.
2009-05-27 11:20:48 +03:00
Mikhail S. Pobolovets
9e325ad1b0 * lib/mc.ext.in: Enhancement to open and view .deba and .debd
Signed-off-by: Mikhail S. Pobolovets <styx.mp@gmail.com>
2009-05-27 10:35:10 +03:00
Ilia Maslakov
dad20be942 Add tt.syntax Template::Toolkit syntax file for mcedit
Author: Dan Dascalescu <ddascalescu+mc@gmail.com>
2009-05-27 01:33:40 +03:00
Slava Zanko
1e4cc93320 Moved the main help file (xnc.hlp) and translated help files (es, hu, it, pl, ru and sr directories) to doc/hlp
Also, created symlinks in src_root directory to some doc/* files
2009-05-26 17:32:32 +03:00
Andrew Borodin
92353b3848 Added option to enable/disable close dialog by mouse click outside of it.
Disabled by default. This option is available in ini file only.

setup.h: declare mouse_close_dialog variable.
setup.h: read/write mouse_close_dialog variable from/to ini file.
dialog.c: use mouse_close_dialog variable to control the single left click
outside of dialog.
2009-05-22 16:39:28 +04:00
Andrew Borodin
3be2491d1e src/dialog.c (dlg_mouse_event): close current dialog by mouse click
out of dialog area.
2009-05-22 16:39:28 +04:00
Slava Zanko
28539b2363 Merge branch '130_sysconfdir_mc'
* 130_sysconfdir_mc:
  scripts mc.sh, mc.csh, mc-wrapper.csh and mc-wrapper.sh now install into %{libexec}/mc directory
  edit/syntax.c: fixed path to Syntax file
  Move global config files from pkg_datadir to sysconfdir
2009-05-22 15:44:28 +03:00
Slava Zanko
289959792e scripts mc.sh, mc.csh, mc-wrapper.csh and mc-wrapper.sh now install into %{libexec}/mc directory 2009-05-22 13:36:27 +03:00
Slava Zanko
8841747560 edit/syntax.c: fixed path to Syntax file 2009-05-22 10:53:02 +03:00
Slava Zanko
0c17219b2a Move global config files from pkg_datadir to sysconfdir
* Also fixed 'make dist' command
 * changed contrib/dist/redhat/mc.spec.in for builds with new dir
2009-05-21 01:01:10 +03:00
Sergei Trofimovich
6121dfd5b1 8bit: convert properly nonascii signed chars in panel and viewer (#360)
Problem arose in freebsd-7.2 system. GCC has 'signed char' there
and thus code like this broke:
>     char c = ...;
>     if (isprint(c)) ..." // 'signed char' -> 'signed int'
('man isprint' explicitely says to pass 'unsigned char' there)

As we use multibyte chars everywhere - there is not many places to fix.
This patch fixes all 8bit collate functions.

Signed-off-by: Sergei Trofimovich <slyfox@inbox.ru>
2009-05-21 00:49:01 +03:00
Andrew Zabolotny
c6b42a7369 This patch makes VFS a bit faster by replacing GSList with GPtrArray
and using a clever trick to avoid doing list/array searches on every
VFS lookup.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-05-20 21:12:38 +03:00
Ilia Maslakov
5ce21bc756 merged 2 syntax files Oleg's aka Olegarh and Andres Farfan 2009-05-20 20:37:50 +03:00
Sergei Trofimovich
fd55b916de Revert "Replace self-made code for work with ini-files to glib native code"
This reverts commit 4648ad8bf9.
2009-05-19 10:22:24 +03:00
Sergei Trofimovich
df5160aaf3 Revert "Added check for glib version in mc_config_del_param and mc_config_del_group functions"
This reverts commit 483a1a05aa.
2009-05-19 10:22:17 +03:00
Andrew Borodin
c572352a04 Fixed default terminal colors usage for NCurses. 2009-05-15 13:31:23 +03:00
Enrico Weigelt, metux IT service
ae33ec6385 fixed #229 2009-05-15 13:29:48 +03:00
Slava Zanko
212ab41508 Merge branch '347_replace_profile_src'
* 347_replace_profile_src:
  Added check for glib version in mc_config_del_param and mc_config_del_group functions
  Replace self-made code for work with ini-files to glib native code
2009-05-15 12:18:49 +03:00
Ilia Maslakov
b29e81556f Rewritten by David Sterba <dave jikos.cz> patchfs.
add xz compress support to David's version.
2009-05-14 13:38:10 +00:00
Slava Zanko
483a1a05aa Added check for glib version in mc_config_del_param and mc_config_del_group functions
configure.ac: Added check for minimal version of Glib2

Since Glib2-2.15 API of file-ini module was changed.
Old API:
void g_key_file_remove_key(...)
New API:
gboolean g_key_file_remove_key(...)

Therefore need to check version of Glib and fix return parameter from mc_config_del_param and mc_config_del_group for success build

Work with ini-file added in Glib2 since version 2.6, therefore in configure.ac added this check.
2009-05-14 16:21:28 +03:00
Slava Zanko
4648ad8bf9 Replace self-made code for work with ini-files to glib native code 2009-05-14 16:21:22 +03:00
Ilia Maslakov
f8a487de01 Merge branch '351_show_number_line'
* 351_show_number_line:
  fix hotkey menu entry "Toggle li&ne state" now highlighted "n"
  add call CK_Toggle_Line_State to edit menu
  show line number in left part of screen (hotkey alt-n)
2009-05-14 07:57:51 +00:00
Mikhail S. Pobolovets
ec8711ca99 Merge branch '350_compare_empty_files' 2009-05-13 14:33:12 +03:00