Andrew Borodin
0c01337e81
src/cmd.c: fixed double definition of quick_chdir_cmd().
2009-06-12 16:12:10 +04:00
Andrew Borodin
a623c3a13c
Editor: sync with new global config location (user menu and syntax files).
2009-06-12 16:12:10 +04:00
Andrew Borodin
fb48d4a295
Small reorganization of MC and Editor menus.
...
The 'User Menu' entry is moved from 'File' submenu to 'Command' one.
The 'Edit editor menu file' and 'Edit syntax file' entries are moved
from main MC menu ('Command' submenu) to editor main menu ('Options'
submenu) and renamed.
src/cmd.c (check_for_default): moved to util.c and maken global.
(menu_edit_cmd): rewritten to handle MC menu files only and renamed
to edit_mc_menu_cmd.
Editor relevant routines are moved to editor code.
src/cmd.h: cleanup.
src/main.c: main menu reorganization.
src/user.h: moved editor macros to edit/edit.h.
src/util.c, src/util.h: check_for_default function from src/cmd.h.
Rewritten to use exist_file() function.
edit/editcmddef.h: added new commands:
CK_Load_Syntax_File and CK_Load_Menu_File.
edit/edit.h: editor file macros from src/user.h.
New type for file which is currently being edited.
Modified edit_load_cmd function to be more advanced.
edit/edit.c (edit_execute_cmd): handle new commands:
CK_Load_Syntax_File and CK_Load_Menu_File.
edit/editmenu.c: menu reorganization: moved two entries here from main
MC menu. Added requireq handle functions. Small optimization: removed
extra layer in menu entry handlers.
edit/editcmd.c: menu and syntax files edit is implemented.
Modified edit_load_cmd function to be more advanced.
2009-06-12 16:12:10 +04:00
Mikhail S. Pobolovets
9c79518b9a
A small typo in po/fr.po
...
Signed-off-by: Mikhail S. Pobolovets <styx.mp@gmail.com>
2009-06-12 13:57:04 +03:00
Slava Zanko
823d92e69f
Fixed bug with copying files/dirs into directory with 'wild' name (such as ${}, \1, etc.)
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-06-12 10:32:01 +03:00
Slava Zanko
bbb800530c
Fixed patterns escaping of wild filenames (such as \1, ${1}, \U, etc).
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-06-12 10:32:01 +03:00
Slava Zanko
a58a14c357
Removed unused debug code from src/filegui.c
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-06-12 10:32:01 +03:00
Slava Zanko
6e04cf1250
Refactoring: renamed variable 'loop' into 'curr_index'
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-06-12 10:32:00 +03:00
Slava Zanko
db71fba72f
Changed defined constants to static const char[] declarations.
...
Also, fixed escape of '\' char in glob-like string.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-06-12 10:32:00 +03:00
Slava Zanko
04b34832ef
Fixed declarations of functions. May be, need to split with previous commmit...
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-06-12 10:32:00 +03:00
Slava Zanko
be27cd1a2e
Reworked functions strutils_shell_escape and strutils_shell_unescape
...
also added function:
* strutils_glob_escape
* strutils_glob_unescape
* strutils_regex_escape
* strutils_regex_unescape
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-06-12 10:32:00 +03:00
Slava Zanko
f018970577
Renamed functions shell_escape (to strutils_shell_escape) and shell_unescape (to strutils_shell_unescape)
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-06-12 10:32:00 +03:00
Slava Zanko
75fe3bf3a8
Just identation of some source files
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-06-12 10:31:59 +03:00
Slava Zanko
786174fac8
Renamed function shell_is_char_escaped to strutils_is_char_escaped; removed function mc_search_is_char_escaped
...
* All calls of function mc_search_is_char_escaped replaced to strutils_is_char_escaped
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-06-12 10:31:59 +03:00
Slava Zanko
5f810602e0
Moved 'escape' and 'unescape' strings functions from src/util.[ch] into src/strescape.[ch]
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-06-12 10:31:59 +03:00
Slava Zanko
5834a9ed84
Fixed crash if replace group ${N} used into replace string
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-06-12 10:31:59 +03:00
Slava Zanko
1b08532f5f
Some cosmetic optimisation for less code :)
...
This not important fix - just removing some unsense code (part of older logic?)
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-06-12 10:31:59 +03:00
Slava Zanko
1d4f7fd44d
Fixed searched token in source file mask.
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-06-12 10:31:59 +03:00
Slava Zanko
facb94dc48
Fixed NULL acertion if replacement don't correct
...
Also fixed multiple usage of replacement pointers (such as \1\1).
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-06-12 10:31:58 +03:00
Slava Zanko
2e9a16487a
Handle new search replace behaviour into src/file.c. Also fixed filemask into src/filegui.c
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-06-12 10:31:58 +03:00
Slava Zanko
a0d56381e0
Search Replace now handled \U,\u,\L,\l and \E modificators.
...
Also function mc_search__regex_is_char_escaped() renamed to mc_search_is_char_escaped() and moved into global visibility scope.
2009-06-12 10:31:58 +03:00
Slava Zanko
5e6c14a928
Just identation of regex.c and search.h
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-06-12 10:31:58 +03:00
Slava Zanko
2d4ee6f616
search engine: Added new syntax for replace tokenks.
...
Now \<digit> handle just first 0-9 search groups.
If you need to access to more search groups, need to use
${digits} syntax.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-06-12 10:31:58 +03:00
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