This code seems to be working good enough to give commands with fish,
however the prompt display is somewhat broken but that happens with bash
as well.
Signed-off-by: Sergei Trofimovich <slyfox@inbox.ru>
This patch contains the following trivial optimizations:
* merged two identical "dest_dir_ = g_strdup (dest_dir)" ops.
* simplified check for trailing '/' (no need to strcmp 1-char string).
* since g_free (NULL) is safe, merged two separate "if empty string then bail out" code paths.
* fixed wording in a comment.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
Description:
If before
make dist*
./configure
was invoked without parameters next build from resulted tarball with
./configure --enable-charset
stop on error "mc.charset not found".
"./configure --enable-charset" hack before make dist* resolve this trouble.
Fix issue: In contrib/Makefile.am EXTRA_DIST variable was contain filenames relative to --enable-charset option.
Now mc.charsets file alvays present in EXTRA_DIST variable.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
All editor private API stuff is located now in edit/edit-impl.h.
Public API is located in edit/edit.h.
Added functions to read some fields of WEdit struct.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
* 402_select_codepage:
Fixed source_codepage handling in editor (#402).
Fixed type of variables that store result of get_codepage_id().
Fixed codepage selection (#402).
add entries for many action:
menu Edit
* Copy to clipfile
* Cut to clipfile
* Paste from clipfile
* Toggle bookmark
* Next bookmark
* Prev bookmark
* Flush bookmark
menu Command
* Find declaration
* Back from declaration
* Forward to declaration
add show shortcuts for copy/cut/paste clipfile
* commit 'origin/340_inrorrect_handling_of_wildcards': (21 commits)
Fixed work with copying/moving files by mask into subdirs
Fixed bug with copying files/dirs into directory with 'wild' name (such as ${}, \1, etc.)
Fixed patterns escaping of wild filenames (such as \1, ${1}, \U, etc).
Removed unused debug code from src/filegui.c
Refactoring: renamed variable 'loop' into 'curr_index'
Changed defined constants to static const char[] declarations.
Fixed declarations of functions. May be, need to split with previous commmit...
Reworked functions strutils_shell_escape and strutils_shell_unescape
Renamed functions shell_escape (to strutils_shell_escape) and shell_unescape (to strutils_shell_unescape)
Just identation of some source files
Renamed function shell_is_char_escaped to strutils_is_char_escaped; removed function mc_search_is_char_escaped
Moved 'escape' and 'unescape' strings functions from src/util.[ch] into src/strescape.[ch]
Fixed crash if replace group ${N} used into replace string
Some cosmetic optimisation for less code :)
Fixed searched token in source file mask.
Fixed NULL acertion if replacement don't correct
Handle new search replace behaviour into src/file.c. Also fixed filemask into src/filegui.c
Search Replace now handled \U,\u,\L,\l and \E modificators.
Just identation of regex.c and search.h
search engine: Added new syntax for replace tokenks.
...
For example, we need to move files:
some_test.ext
this_is_file.ext
into subdirs, named as first char of filenames:
./s/
./d/
Select needed files and press F5(F6)
Source mask: ?*
to: \1/\1\2
Signed-off-by: Slava Zanko <slavazanko@gmail.com>