Commit Graph

8238 Commits

Author SHA1 Message Date
Ilia Maslakov
854f214563 show line number in left part of screen (hotkey alt-n)
add option editor_line_status to ini (src/setup.c)
    add action CK_Toggle_Line_State (edt/editcmddef.h)
    change "print_to_widget()" to show line state, if option_line_state = 1 show line num (edit/editdraw.c)
    change "edit_draw_this_line()", (set line state: line num, etc)
    add const LINE_STATE_WIDTH, add options: option_line_state, option_line_state_width (edit/edit.h)
    add switch on/off show line number (edit/edit.c)
    add CK_Toggle_Line_State to translation table command_names (bindings name is Toggle-Line-State).
    add const LINE_STATE_COLOR for draw left area bar line state
    add color pair "editlinestate" for set in ini
    add help for keyword "editlinestate" on "mc --help-color" (src/main.c)
2009-05-13 07:09:47 +00:00
Ilia Maslakov
25d5ed8c6a Merge branch '344_optional_shift_block'
* 344_optional_shift_block:
  add check option persistent_selection if persistent_selection = 0 Tab shift block
2009-05-11 17:59:57 +00:00
Slava Zanko
c3e4187b4c Merge branch '140_move_docs_and_contrib'
* 140_move_docs_and_contrib:
  Change name of automake constant 'USE_MCFS' to 'ENABLE_VFS_MCFS'
  Move some files from contrib into misc directory
  Move all stuff from lib to contrib
  Move all hints-files from lib to doc/hints
  mc.qpg.in mc.spec.in pkginfo.in prototype.in: moved to contrib/dist
  2009-01-10  Enrico Weigelt, metux ITS <weigelt@metux.de>
2009-05-11 15:12:22 +03:00
Ilia Maslakov
6a5dab64fe add check option persistent_selection if persistent_selection = 0 Tab shift block 2009-05-11 11:34:22 +00:00
Slava Zanko
428ea1b406 Change name of automake constant 'USE_MCFS' to 'ENABLE_VFS_MCFS' 2009-05-11 13:42:49 +03:00
Mikhail S. Pobolovets
31332a2f00 src/utils.[ch]: _icase_search clean up
_icase_search and icase_search stuff has been removed,
    because it's not used for now (it is also buggy)

Signed-off-by: Mikhail S. Pobolovets <styx.mp@gmail.com>
2009-05-11 11:40:33 +03:00
Slava Zanko
0a08e13a6c Merge branch '341_broken_file_mark' 2009-05-10 15:10:55 +03:00
Mikhail S. Pobolovets
c079e73d08 Warning fix: assignment from incompatible pointer type
wtools.c:347: assignment from incompatible pointer type
wtools.c:353: assignment from incompatible pointer type
wtools.c:361: assignment from incompatible pointer type
wtools.c:373: assignment from incompatible pointer type
wtools.c:377: assignment from incompatible pointer type

Signed-off-by: Mikhail S. Pobolovets <styx.mp@gmail.com>
2009-05-10 14:22:24 +03:00
Mikhail S. Pobolovets
5f448874e2 Warning fix: format not a string literal and no format arguments
view.c:3196:
        format not a string literal and no format arguments

Signed-off-by: Mikhail S. Pobolovets <styx.mp@gmail.com>
2009-05-10 14:22:24 +03:00
Mikhail S. Pobolovets
171d6cae22 Warning fix: wrong qualifier in g_snprintf
view.c:124: wrong field type
    view.c:3064: cast from pointer to integer of different size

Signed-off-by: Mikhail S. Pobolovets <styx.mp@gmail.com>
2009-05-10 14:22:24 +03:00
Mikhail S. Pobolovets
4fd6869be2 Warning fix: return discards qualifiers from pointer target type
search.c:312:
        return discards qualifiers from pointer target type

Signed-off-by: Mikhail S. Pobolovets <styx.mp@gmail.com>
2009-05-10 14:22:24 +03:00
Mikhail S. Pobolovets
a91e5be8b7 Warning fix: may be used uninitialized
cmd.c:536: ‘c’ may be used uninitialized in this function
    At the real position ‘c’ shouldn't be used

Signed-off-by: Mikhail S. Pobolovets <styx.mp@gmail.com>
2009-05-10 14:20:12 +03:00
Slava Zanko
f49ce170f0 Move some files from contrib into misc directory
Also fix error with make install action
2009-05-08 16:56:02 +03:00
Mikhail S. Pobolovets
a55a505160 Move all stuff from lib to contrib
Also added template in contrib/distr for some distro-related files (spec, deb, ebuild, etc)
2009-05-08 15:12:48 +03:00
Mikhail S. Pobolovets
906d25c5c8 Warning fix: defined but not used
view.c:2739: ‘icase_search_p’ defined but not used
    charsets.c:161: unused variable ‘obuflen’

Signed-off-by: Mikhail S. Pobolovets <styx.mp@gmail.com>
2009-05-08 13:30:32 +03:00
Slava Zanko
73159dbc32 Move all hints-files from lib to doc/hints 2009-05-08 13:23:42 +03:00
Enrico Weigelt, metux IT service
52897029dc mc.qpg.in mc.spec.in pkginfo.in prototype.in: moved to contrib/dist 2009-05-08 13:23:42 +03:00
Enrico Weigelt, metux IT service
13d5c72108 2009-01-10 Enrico Weigelt, metux ITS <weigelt@metux.de>
* doc/*: moved manpages to doc/man/
    * NEWS INSTALL README: moved to doc and left a symlink in .
    * FAQ HACKING INSTALL.FAST MAINTAINERS README.QNX TODO: moved to doc
2009-05-08 13:21:52 +03:00
Mikhail S. Pobolovets
3784f7253e Warning fix: 'implicit declaration of function'
edit.c:2645:
    implicit declaration of function ‘edit_move_block_to_right’
edit.c:2805:
    implicit declaration of function ‘edit_move_block_to_left’

Signed-off-by: Mikhail S. Pobolovets <styx.mp@gmail.com>
2009-05-08 13:15:50 +03:00
Slava Zanko
8f7d6de326 Remove autorun configure asript after generating some stuff. 2009-05-07 16:32:44 +03:00
Slava Zanko
0e6b076666 Remove autogenerated stuff from git-tracking.
* Remove m4/* files
 * Reorganize all M4-stuff into m4.include subdur
 * move doxygen-include.am into doc/doxygen-include.am
2009-05-07 15:38:06 +03:00
Ilia Maslakov
20090e0567 fix: error call edit_delete, add needed param. 2009-05-07 10:23:32 +00:00
Slava Zanko
2ebdf91079 Merge branch 'm-utf-8'
* m-utf-8: (223 commits)
  Fix wildcard pattern in file select and file find dialogs
  Project builds with option --disable-charsets
  Deleted build-glib1.sh because glib1 don't work with utf-8
  fix building without --enable-charset
  Total replacement to mc_search stuff in all places
  Search engine: if found_len parameter NULL, then mc_search_run don't try to fill them
  src/view.c: Reworked search stuff to usage src/search
  refactoring: rename edit/editcmd_dialog.c:editcmd_dialog__get_search_types_list to
  Search engine: development of hex search complete
  Search engine: remove forgotten debug string and reindent file
  Search engine:
  configure.ac: if present glib-2.14 and higher, libpcre don't linked
  Search engine: now used regexp external engines:
  src/find.c: Fixed core dump if content search pattern no present
  edit/editcmd_dialogs.c: fixed state of search type between dialog window calls
  Find files: checkbox 'Regular expression' for content search now default unchecked
  Find files: changes for usage of new search engine:
  Fix copy of current/opposite path to command line: remove charset info from path
  src/Makefile.am: add some header files to Make-tracking
  Fixed editor menu reloading.
2009-05-07 13:01:01 +03:00
Slava Zanko
c8dd6dbbfd Fix wildcard pattern in file select and file find dialogs 2009-05-07 12:53:59 +03:00
Slava Zanko
09bc5434f6 Project builds with option --disable-charsets 2009-05-07 12:20:34 +03:00
Slava Zanko
d0c20d7844 Deleted build-glib1.sh because glib1 don't work with utf-8
Changed build-glib2.sh for stale more clean build tree
2009-05-07 11:29:30 +03:00
Ilia Maslakov
079d83c779 fix building without --enable-charset 2009-05-07 07:21:04 +00:00
Slava Zanko
087ef15b1f Total replacement to mc_search stuff in all places 2009-05-06 19:12:32 +03:00
Slava Zanko
0d76e9aa34 Search engine: if found_len parameter NULL, then mc_search_run don't try to fill them 2009-05-06 16:32:13 +03:00
Slava Zanko
824d12661b src/view.c: Reworked search stuff to usage src/search 2009-05-06 16:16:40 +03:00
Slava Zanko
293310f727 refactoring: rename edit/editcmd_dialog.c:editcmd_dialog__get_search_types_list to
to src/search/lib.c:mc_search_get_types_strings_array
2009-05-06 10:50:12 +03:00
Slava Zanko
589f0b5bd8 Search engine: development of hex search complete
src/search/glob.c: removed unneeded comment
2009-05-06 10:27:06 +03:00
Slava Zanko
9c38485130 Search engine: remove forgotten debug string and reindent file 2009-05-05 22:50:19 +03:00
Slava Zanko
0eb537d8d5 Search engine:
* fixed double-free memory
 * changed logic of parce regexp-string for \x{HEX} token
 * added template file hex.c for HEX search type
2009-05-05 22:28:27 +03:00
Slava Zanko
7ec7294713 configure.ac: if present glib-2.14 and higher, libpcre don't linked 2009-05-05 21:34:09 +03:00
Slava Zanko
2276e9b513 Search engine: now used regexp external engines:
* glib
 * pcre
 * POSIX regex

External engine selected automatically, if present.
2009-05-05 16:19:32 +03:00
Slava Zanko
7763c0e866 src/find.c: Fixed core dump if content search pattern no present 2009-05-05 16:16:09 +03:00
Slava Zanko
301435b374 edit/editcmd_dialogs.c: fixed state of search type between dialog window calls 2009-05-05 11:31:57 +03:00
Slava Zanko
9880d45123 Find files: checkbox 'Regular expression' for content search now default unchecked 2009-05-04 17:06:47 +03:00
Slava Zanko
af18cb326f Find files: changes for usage of new search engine:
* Changed file search and content search
 * Added regexp-search for filenames
 * Added 'All charset' checkbox for file and content searches
2009-05-04 15:47:49 +03:00
Slava Zanko
841a47e163 Fix copy of current/opposite path to command line: remove charset info from path 2009-05-04 12:40:06 +03:00
Slava Zanko
6f390f5cf3 src/Makefile.am: add some header files to Make-tracking 2009-05-04 11:23:40 +03:00
Andrew Borodin
610d724186 src/main.c (main): create MC home directory with 700 mode instead of 755 one. 2009-05-02 17:29:59 +04:00
Andrew Borodin
ab1bdc1429 src/main.c (main): create MC home directory (~/.mc) if absent. 2009-05-02 17:29:30 +04:00
Sergei Trofimovich
3da14e7f8f Merge branch 'mc-4.6'
* mc-4.6:
  fish: chgrp: trac:#336; do not add exceeding quotes (fixed by snizovtsev)
2009-05-02 16:01:13 +03:00
Sergei Trofimovich
027168ce3d fish: chgrp: trac:#336; do not add exceeding quotes (fixed by snizovtsev)
As we pass  correctly(hopefully) escaped file names - all calls
(except forgotten chgrp) were converted to accept unquoted strings.

This patch fixes chgrp.

Signed-off-by: Sergei Trofimovich <slyfox@inbox.ru>
2009-05-02 14:09:07 +03:00
Andrew Borodin
3c477cbdfd Fixed editor menu reloading.
edit/edit.h: moved N_menus 5 macro to editmenu.c. Renamed edit_init_menu()
to edit_create_menu().

edit/editmenu.c: added static variable EditMenuBar to store editor menus.
Reimplemented menu creation. Added new edit_create_menu() function.

edit/editwidget.c (edit_file): used edit_create_menu() instead of
edit_init_menu().
2009-05-01 21:10:52 +04:00
Andrew Borodin
aadcca8048 src/edit.c (create_menu): small fix of i18n for menu entry text. 2009-05-01 21:08:21 +04:00
Slava Zanko
009e53198e Added autopoint to maint subdir (and modified autogen.sh) for successfull build on
all cool OSes :)
2009-04-30 20:46:01 +03:00
Slava Zanko
e12b9e50db edit/editcmd.c, edit/editcmd_dialigs.c: added 'search in all charsets' feature
src/search/search.c: fixed error with multicharset search
2009-04-30 16:58:28 +03:00