Commit Graph

8517 Commits

Author SHA1 Message Date
Slava Zanko
cf13c588d7 Fix encoding of newly created files in editor
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-06-12 10:31:57 +03:00
Slava Zanko
e9a644219a Fix encoding of newly created files in editor
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-06-11 12:59:46 +03:00
Andrew Borodin
dd319ef92e Fixed file find.
Fixed segfault in file find if MC complied with --disabled-charset.
Fixed wrong search results because of incorrect mc_search_run() argument.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-06-10 23:21:44 +04:00
Andrew Borodin
fb691b3404 Merge branch 'master' of git://midnight-commander.org/git/mc 2009-06-10 20:26:48 +04:00
Slava Zanko
3708dd28b5 Added new checkbox 'Using shell patterns' into select/unselect dialogs
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-06-10 14:20:27 +03:00
Slava Zanko
74abbb482f Refactoring: making from anonymous enum new type
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-06-10 14:20:27 +03:00
Slava Zanko
dbb953bfbe Fixed Select/Unselect file mask. now mask applied to entire filename, not to part of filename
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-06-10 14:20:27 +03:00
Andrew Borodin
b2a680b768 src/cmd.c (select_unselect_cmd): set dialog sizes using constants
instead of defines.
2009-06-10 14:20:26 +03:00
Andrew Borodin
edc9264a27 Advanced "Select/Unselect Group" dialogs.
src/search/glob.c (mc_search__glob_translate_to_regex): added '^'
and '$' symbols to the begin and end of regex respectively to
properly handle shell-style wildcards.

src/cmd: new select/unselect engine.
(reverse_selection_cmd): invert selection for dirs as for files.

(select_unselect_cmd): new dialog. Added "Case sensitive" and "Files
only" checkboxes.
2009-06-10 14:20:26 +03:00
Mikhail S. Pobolovets
b384faef82 Handling of XIPH multimedia formats
Ticket: #328
mc.ext update in respect to the handling of XIPH multimedia formats
.ogg, oga, .ogv, etc.

http://wiki.xiph.org/index.php/MIME_Types_and_File_Extensions

Update provided by jemm

Signed-off-by: Mikhail S. Pobolovets <styx.mp@gmail.com>
2009-06-10 12:04:35 +03:00
Slava Zanko
8a3e1a8f5b Fixed broken history of input elements (history wasn't save into ~/.mc/history file)
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-06-10 09:41:28 +03:00
Andrew Borodin
127cd8572c Merge branch 'master' of git://midnight-commander.org/git/mc 2009-06-07 18:35:31 +04:00
Slava Zanko
f606e64861 Version of project now formed automatically from current git-describe output
* File version.h will be created (or changed) automatically
 * Fixed versions for rpm packages - all '-' changed to '.' in RPM_VERSION variable
 * when version.h is changed (or deleted) ./configure script will be invoked

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-06-07 00:56:07 +03:00
Slava Zanko
1ee1c9cea2 Added file version.h into .gitignore file
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-06-06 14:32:46 +03:00
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
Mikhail S. Pobolovets
546b30008a Simple statusbar mode for editor.
Full mode:
    TODO [----] 2 L:[ 1+ 0 1/333] *(2 /11838b)= 102 0x066 cp:Other_8_bit

Simple mode:
    TODO [----] 2 1/333 (2 /11838b) 102 0x066 Other_8_bit

    modified:
        * edit/edit.h
        * edit/editdraw.c
        * src/setup.c

Signed-off-by: Mikhail S. Pobolovets <styx.mp@gmail.com>
2009-05-28 10:40:54 +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