midnight-commander/osp/purchva1.git
10 years agomerged find only directorieshomeworkhw
purchva1 [Thu, 8 Mar 2012 12:53:21 +0000 (8 13:53 +0100)]
merged find only directories

10 years agoMerge branch '2608_widget_enhancement'
Andrew Borodin [Thu, 8 Mar 2012 07:38:46 +0000 (8 10:38 +0300)]
Merge branch '2608_widget_enhancement'

* 2608_widget_enhancement:
  Make menu always resizable.
  Fixed location of hotlist query dialogs.
  Added D_CENTER flag to query dialog flags
  Workaround for NCurses output routines.
  Allow draw a part of line if some coordinares are out of screen boundaries.
  Allow close help and tree dialogs using ctrl-g shortcut (SIGINT).
  Allow override standard dialog actions in some dialog.
  Don't get dialog hotkey from disabled widget.
  Fixed widget redraw order in dialog.
  Menu hack to keep overlapped widgets order
  Added dlg_set_top_widget() function
  Allow add and remove widgets in runtime.
  Put global mouse coordinates to widgets.
  Fix mouse handling in dialog.
  Ticket #2608: widget enhancements.

10 years agoMake menu always resizable.
Andrew Borodin [Sat, 21 Jan 2012 08:44:38 +0000 (21 11:44 +0300)]
Make menu always resizable.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
10 years agoFixed location of hotlist query dialogs.
Andrew Borodin [Sun, 23 Oct 2011 07:12:54 +0000 (23 11:12 +0400)]
Fixed location of hotlist query dialogs.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
10 years agoAdded D_CENTER flag to query dialog flags
Andrew Borodin [Sun, 23 Oct 2011 07:08:24 +0000 (23 11:08 +0400)]
Added D_CENTER flag to query dialog flags

...to forced place a query dialog in the center of the screen.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
10 years agoWorkaround for NCurses output routines.
Andrew Borodin [Tue, 1 Nov 2011 08:43:00 +0000 (1 11:43 +0300)]
Workaround for NCurses output routines.

Unlike S-Lang, NCurses always wraps long lines and unable trancate that
to pring only visible part of text. Therefore we have to implement our
own addch() wrappers.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
10 years agoAllow draw a part of line if some coordinares are out of screen boundaries.
Andrew Borodin [Fri, 14 Jan 2011 17:52:40 +0000 (14 20:52 +0300)]
Allow draw a part of line if some coordinares are out of screen boundaries.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
10 years agoAllow close help and tree dialogs using ctrl-g shortcut (SIGINT).
Andrew Borodin [Fri, 4 Nov 2011 09:16:10 +0000 (4 12:16 +0300)]
Allow close help and tree dialogs using ctrl-g shortcut (SIGINT).

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
10 years agoAllow override standard dialog actions in some dialog.
Andrew Borodin [Thu, 27 Oct 2011 10:58:54 +0000 (27 14:58 +0400)]
Allow override standard dialog actions in some dialog.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
10 years agoDon't get dialog hotkey from disabled widget.
Andrew Borodin [Mon, 24 Oct 2011 12:37:10 +0000 (24 16:37 +0400)]
Don't get dialog hotkey from disabled widget.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
10 years agoFixed widget redraw order in dialog.
Andrew Borodin [Mon, 24 Oct 2011 10:15:05 +0000 (24 14:15 +0400)]
Fixed widget redraw order in dialog.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
10 years agoMenu hack to keep overlapped widgets order
Andrew Borodin [Sun, 7 Aug 2011 14:37:18 +0000 (7 18:37 +0400)]
Menu hack to keep overlapped widgets order

...required in multi-window editor.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
10 years agoAdded dlg_set_top_widget() function
Andrew Borodin [Sat, 23 Apr 2011 12:51:53 +0000 (23 16:51 +0400)]
Added dlg_set_top_widget() function

...to move widget to the top of widget list and make it current.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
10 years agoAllow add and remove widgets in runtime.
Andrew Borodin [Sun, 17 Apr 2011 10:21:17 +0000 (17 14:21 +0400)]
Allow add and remove widgets in runtime.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
10 years agoPut global mouse coordinates to widgets.
Andrew Borodin [Mon, 21 Mar 2011 13:43:56 +0000 (21 16:43 +0300)]
Put global mouse coordinates to widgets.

Now each widget gets absolute coordinates of mouse pointer and decides
itself how to handle them.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
10 years agoFix mouse handling in dialog.
Andrew Borodin [Sat, 23 Apr 2011 12:19:25 +0000 (23 16:19 +0400)]
Fix mouse handling in dialog.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
10 years agoTicket #2608: widget enhancements.
Andrew Borodin [Sun, 17 Apr 2011 10:12:07 +0000 (17 14:12 +0400)]
Ticket #2608: widget enhancements.

New method of widget ID assignment:
now widget ID is a value of unsigned long type. Dlg_head structure now has
new filed widget_id that contains a ID of the next added widget. When new
widget is added into dialog, widget_id is set as ID of it and then
incremented.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
10 years agoMerge branch '2695_editor_segfault'
Andrew Borodin [Thu, 8 Mar 2012 07:34:17 +0000 (8 10:34 +0300)]
Merge branch '2695_editor_segfault'

* 2695_editor_segfault:
  Ticket #2695: Fixed segfault while new file created in editor.

10 years agoTicket #2695: Fixed segfault while new file created in editor.
Slava Zanko [Wed, 7 Mar 2012 19:44:24 +0000 (7 22:44 +0300)]
Ticket #2695: Fixed segfault while new file created in editor.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
10 years agoMerge branch '2695_expansion_to_src'
Slava Zanko [Tue, 6 Mar 2012 09:13:15 +0000 (6 12:13 +0300)]
Merge branch '2695_expansion_to_src'

* 2695_expansion_to_src: (51 commits)
  Fixed creation of lock files
  Changed function remove_encoding_from_path() for return vfs_path_t type
  fixup! Added tests for examine_cd() function.
  panels: Show archive name when entering to archive
  Fixed destination file name when file dialog with single operation is appear
  vfs_path: Fixed broken relative paths processing.
  Reimplemented list of operated files using GSList.
  Return values of following functions are constants now:
  Changed src/filemanager/file.c to handle vfs_path_t objects.
  Changed lot of functions in src/ directory
  Share same code between update_xterm_title_path() and midnight_get_title() functions
  Changes to handle vfs_path_t object:
  VFS: Added new function vfs_path_to_str_flags()
  Use vfs_path_t in execute.c and subshell.c.
  Changed do_cd() and do_panel() functions
  Added unit test for do_panel_cd() functions.
  Code refactoring: removed concat_dir_and_file() function.
  Code refactoring
  Changed internal viewer to use vfs_path_t objects.
  Changed internal editor to use vfs_path_t objects.
  ...

10 years agoFixed creation of lock files
Slava Zanko [Mon, 5 Mar 2012 10:11:26 +0000 (5 13:11 +0300)]
Fixed creation of lock files

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
10 years agoChanged function remove_encoding_from_path() for return vfs_path_t type
Slava Zanko [Fri, 24 Feb 2012 17:24:29 +0000 (24 20:24 +0300)]
Changed function remove_encoding_from_path() for return vfs_path_t type

Also, fixed bug with non-changeable encoding inside archives.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
10 years agofixup! Added tests for examine_cd() function.
Slava Zanko [Fri, 24 Feb 2012 11:36:32 +0000 (24 14:36 +0300)]
fixup! Added tests for examine_cd() function.

10 years agopanels: Show archive name when entering to archive
Slava Zanko [Wed, 15 Feb 2012 09:39:30 +0000 (15 12:39 +0300)]
panels: Show archive name when entering to archive

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
10 years agoFixed destination file name when file dialog with single operation is appear
Slava Zanko [Wed, 8 Feb 2012 13:08:04 +0000 (8 16:08 +0300)]
Fixed destination file name when file dialog with single operation is appear

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
10 years agovfs_path: Fixed broken relative paths processing.
Slava Zanko [Tue, 7 Feb 2012 11:54:58 +0000 (7 14:54 +0300)]
vfs_path: Fixed broken relative paths processing.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
10 years agoReimplemented list of operated files using GSList.
Andrew Borodin [Tue, 24 Jan 2012 14:33:37 +0000 (24 17:33 +0300)]
Reimplemented list of operated files using GSList.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
10 years agoReturn values of following functions are constants now:
Slava Zanko [Tue, 3 Jan 2012 09:35:57 +0000 (3 12:35 +0300)]
Return values of following functions are constants now:

  * vfs_path_get_last_path_str()
  * vfs_path_get_last_path_vfs()
  * vfs_path_get_by_index()
  * vfs_class_find_by_handle()

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
10 years agoChanged src/filemanager/file.c to handle vfs_path_t objects.
Slava Zanko [Tue, 29 Nov 2011 21:20:26 +0000 (30 00:20 +0300)]
Changed src/filemanager/file.c to handle vfs_path_t objects.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
10 years agoChanged lot of functions in src/ directory
Slava Zanko [Mon, 28 Nov 2011 21:38:27 +0000 (29 00:38 +0300)]
Changed lot of functions in src/ directory

...to handle vfs_path_t objects.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
10 years agoShare same code between update_xterm_title_path() and midnight_get_title() functions
Slava Zanko [Mon, 28 Nov 2011 20:18:56 +0000 (28 23:18 +0300)]
Share same code between update_xterm_title_path() and midnight_get_title() functions

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
10 years agoChanges to handle vfs_path_t object:
Slava Zanko [Sun, 27 Nov 2011 00:09:41 +0000 (27 03:09 +0300)]
Changes to handle vfs_path_t object:

 * removed strip_password () function;
 * Added new vfs_path flag: VPF_HIDE_CHARSET;
 * added vfs_path_add_element() function.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
10 years agoVFS: Added new function vfs_path_to_str_flags()
Slava Zanko [Sat, 26 Nov 2011 20:12:52 +0000 (26 23:12 +0300)]
VFS: Added new function vfs_path_to_str_flags()

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
10 years agoUse vfs_path_t in execute.c and subshell.c.
Slava Zanko [Sat, 26 Nov 2011 12:46:54 +0000 (26 15:46 +0300)]
Use vfs_path_t in execute.c and subshell.c.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
10 years agoChanged do_cd() and do_panel() functions
Slava Zanko [Wed, 9 Nov 2011 20:08:31 +0000 (9 23:08 +0300)]
Changed do_cd() and do_panel() functions

...to handle vfs_path_t objects.

Changed panelized_panel_t.root type to vfs_path_t.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
10 years agoAdded unit test for do_panel_cd() functions.
Slava Zanko [Thu, 5 Jan 2012 12:46:53 +0000 (5 15:46 +0300)]
Added unit test for do_panel_cd() functions.

Check if empty directory is mean 'change current directory to home dir'.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
10 years agoCode refactoring: removed concat_dir_and_file() function.
Slava Zanko [Tue, 8 Nov 2011 21:10:51 +0000 (9 00:10 +0300)]
Code refactoring: removed concat_dir_and_file() function.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
10 years agoCode refactoring
Slava Zanko [Tue, 8 Nov 2011 20:50:50 +0000 (8 23:50 +0300)]
Code refactoring

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
10 years agoChanged internal viewer to use vfs_path_t objects.
Slava Zanko [Tue, 8 Nov 2011 20:34:55 +0000 (8 23:34 +0300)]
Changed internal viewer to use vfs_path_t objects.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
10 years agoChanged internal editor to use vfs_path_t objects.
Slava Zanko [Tue, 8 Nov 2011 19:44:38 +0000 (8 22:44 +0300)]
Changed internal editor to use vfs_path_t objects.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
10 years agoChanged lock_file() and unlock_file() functions
Slava Zanko [Wed, 2 Nov 2011 21:34:35 +0000 (3 00:34 +0300)]
Changed lock_file() and unlock_file() functions

...to handle vfs_path_t objects.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
10 years agoChanged treestore functions to handle vfs_path_t objects.
Slava Zanko [Tue, 4 Oct 2011 12:58:24 +0000 (4 15:58 +0300)]
Changed treestore functions to handle vfs_path_t objects.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
10 years agoAdded function vfs_path_cmp()
Slava Zanko [Tue, 4 Oct 2011 11:04:48 +0000 (4 14:04 +0300)]
Added function vfs_path_cmp()

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
10 years agoAdded vfs_path_cmp() ans vfs_path_ncmp() functions
Slava Zanko [Tue, 4 Oct 2011 09:32:14 +0000 (4 12:32 +0300)]
Added vfs_path_cmp() ans vfs_path_ncmp() functions

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
10 years agoChanged do_reload_dir() function
Slava Zanko [Mon, 3 Oct 2011 14:19:05 +0000 (3 17:19 +0300)]
Changed do_reload_dir() function

...to handle vfs_path_t objects.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
10 years agoPush/pop dirstack: changed type of saved items to vfs_path_t type.
Slava Zanko [Mon, 3 Oct 2011 13:12:17 +0000 (3 16:12 +0300)]
Push/pop dirstack: changed type of saved items to vfs_path_t type.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
10 years agoVFS: internal changes in vfs_path_t type.
Slava Zanko [Thu, 29 Sep 2011 09:02:23 +0000 (29 12:02 +0300)]
VFS: internal changes in vfs_path_t type.

Changed type of array from slower GList to faster GArray.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
10 years agoChanged format of string 'current directory path' at header of panel.
Slava Zanko [Tue, 27 Sep 2011 20:31:20 +0000 (27 23:31 +0300)]
Changed format of string 'current directory path' at header of panel.

 * path elements now are separated and shown one-by-one
   (eg. ftp://some.in.net instead of ~/some/path/ftp://some.in.net)
 * encoding info is shown separated at top of header line

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
10 years agoChanged type of WPanel::cwd (char *) and WPanel::lwd (char *)
Slava Zanko [Tue, 27 Sep 2011 19:13:50 +0000 (27 22:13 +0300)]
Changed type of WPanel::cwd (char *) and WPanel::lwd (char *)

...to WPanel::cwd_vpath (vfs_path_tr *) and WPanel::lwd_vpath (vfs_path_t *).

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
10 years agoAdded new fnction for manipulate vpath objects:
Slava Zanko [Sun, 25 Sep 2011 11:36:44 +0000 (25 14:36 +0300)]
Added new fnction for manipulate vpath objects:

 * vfs_path_append_vpath_new ()
 * vfs_path_vtokens_get ()

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
10 years agoAdded vfs_path_tokens_count() and vfs_path_tokens_get() functions
Slava Zanko [Sun, 31 Jul 2011 20:44:15 +0000 (31 23:44 +0300)]
Added vfs_path_tokens_count() and vfs_path_tokens_get() functions

...for easy work with vfs_path_t tokens.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
10 years ago subshell.c: changed printf message into stserr to the vfs_print_message
Ilia Maslakov [Wed, 27 Apr 2011 10:53:40 +0000 (27 10:53 +0000)]
subshell.c: changed printf message into stserr to the vfs_print_message

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
10 years agoChanged interface of functions mc_getlocalcopy() and mc_ungetlocalcopy()
Slava Zanko [Sun, 24 Jul 2011 12:27:48 +0000 (24 15:27 +0300)]
Changed interface of functions mc_getlocalcopy() and mc_ungetlocalcopy()

...to handle vfs_path_t object as parameter.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
10 years agoAdded inline function vfs_path_get_last_path_vfs()
Slava Zanko [Sat, 23 Jul 2011 13:24:36 +0000 (23 16:24 +0300)]
Added inline function vfs_path_get_last_path_vfs()

...to simple get VFS class for last path element without malloc/free
operations.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
10 years agoAdded inline function vfs_path_get_last_path_str()
Slava Zanko [Sat, 23 Jul 2011 13:18:53 +0000 (23 16:18 +0300)]
Added inline function vfs_path_get_last_path_str()

...to simple get path string without malloc/free operations.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
10 years agoChanged input parameters of mc_mkstemp() and mc_tempdir() functions
Slava Zanko [Wed, 4 Jan 2012 12:34:05 +0000 (4 15:34 +0300)]
Changed input parameters of mc_mkstemp() and mc_tempdir() functions
to handle vfs_path_t type.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
10 years agoAdded unit-tests for mc_tmpdir() and mc_mkstemps() functions
Slava Zanko [Wed, 4 Jan 2012 10:42:04 +0000 (4 13:42 +0300)]
Added unit-tests for mc_tmpdir() and mc_mkstemps() functions

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
10 years agoMoved functions mc_mkstemp() and mc_tempdir() to VFS module.
Slava Zanko [Wed, 4 Jan 2012 08:44:35 +0000 (4 11:44 +0300)]
Moved functions mc_mkstemp() and mc_tempdir() to VFS module.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
10 years agoChanged interface of function mc_open() for handle vfs_path_t object as parameter
Slava Zanko [Thu, 21 Jul 2011 20:33:45 +0000 (21 23:33 +0300)]
Changed interface of function mc_open() for handle vfs_path_t object as parameter

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
10 years agoChanged interface of function mc_symlink()
Slava Zanko [Thu, 21 Jul 2011 15:24:20 +0000 (21 18:24 +0300)]
Changed interface of function mc_symlink()

...to handle vfs_path_t object as parameter.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
10 years agoChanged interface of functions mc_link() and mc_rename()
Slava Zanko [Wed, 20 Jul 2011 21:51:42 +0000 (21 00:51 +0300)]
Changed interface of functions mc_link() and mc_rename()

...to handle vfs_path_t object as parameter.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
10 years agoChanged interface of following functions to handle vfs_path_t object as parameter:
Slava Zanko [Wed, 20 Jul 2011 21:22:50 +0000 (21 00:22 +0300)]
Changed interface of following functions to handle vfs_path_t object as parameter:

 * mc_chmod()
 * mc_chown()
 * mc_utime()
 * mc_readlink()
 * mc_unlink()
 * mc_mkdir()
 * mc_rmdir()
 * mc_mknod()

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
10 years agochanged interface of function mc_setctl() for handle vfs_path_t object as parameter
Slava Zanko [Wed, 20 Jul 2011 20:12:02 +0000 (20 23:12 +0300)]
changed interface of function mc_setctl() for handle vfs_path_t object as parameter

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
10 years agoRemoved split_dir_name() function.
Slava Zanko [Wed, 20 Jul 2011 18:20:41 +0000 (20 21:20 +0300)]
Removed split_dir_name() function.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
10 years agoChanged interface of function mc_opendir()
Slava Zanko [Mon, 18 Jul 2011 18:07:39 +0000 (18 21:07 +0300)]
Changed interface of function mc_opendir()

...to handle vfs_path_t object as parameter.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
10 years agoChanged interface of mc_stat() and mc_lstat() functions
Slava Zanko [Sun, 17 Jul 2011 21:30:58 +0000 (18 00:30 +0300)]
Changed interface of mc_stat() and mc_lstat() functions

...to handle vfs_path_t object as parameter.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
10 years agoadded vfs_path_build_filename() function
Slava Zanko [Sun, 17 Jul 2011 16:59:47 +0000 (17 19:59 +0300)]
added vfs_path_build_filename() function

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
10 years agochanged interface of function mc_chdir() for handle vfs_path_t object as parameter
Slava Zanko [Sun, 17 Jul 2011 16:20:35 +0000 (17 19:20 +0300)]
changed interface of function mc_chdir() for handle vfs_path_t object as parameter

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
10 years agoVFS core: vfs_s_free_inode() function have global visibility
Slava Zanko [Tue, 19 Jul 2011 21:36:05 +0000 (20 00:36 +0300)]
VFS core: vfs_s_free_inode() function have global visibility

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
10 years agoAdded usage of VFS_S_USETMP flag
Slava Zanko [Sat, 23 Jul 2011 10:25:00 +0000 (23 13:25 +0300)]
Added usage of VFS_S_USETMP flag

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
10 years agoTicket #2695: The vfs_path_t expansion to 'src/' subdirectory
Slava Zanko [Sat, 23 Jul 2011 09:13:51 +0000 (23 12:13 +0300)]
Ticket #2695: The vfs_path_t expansion to 'src/' subdirectory

Added vfs_subclass_flags_t type

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
10 years agoMerge branch '2736_dont_panel_reload'
Andrew Borodin [Tue, 28 Feb 2012 17:44:54 +0000 (28 20:44 +0300)]
Merge branch '2736_dont_panel_reload'

* 2736_dont_panel_reload:
  Ticket #2736: dont't reload panel forced before file operations

10 years agoTicket #2736: dont't reload panel forced before file operations
Andrew Borodin [Thu, 23 Feb 2012 08:31:39 +0000 (23 11:31 +0300)]
Ticket #2736: dont't reload panel forced before file operations

...to avoid actions on wrong files.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
10 years agoMerge branch '2451_no_subst_var'
Andrew Borodin [Fri, 24 Feb 2012 06:39:33 +0000 (24 09:39 +0300)]
Merge branch '2451_no_subst_var'

* 2451_no_subst_var:
  Support of disable of shell variables substitution in autocompletion.
  Added tests for examine_cd() function.
  (examine_cd): split in two functions to be unit test friendly.
  Support of disable of shell variables substitution in the command line.
  (strutils_unescape): allow disable shell variable substitution.
  Ticket #2451: allow do not variable substite in the command line.

10 years agoSupport of disable of shell variables substitution in autocompletion.
Andrew Borodin [Sat, 18 Feb 2012 15:43:45 +0000 (18 18:43 +0300)]
Support of disable of shell variables substitution in autocompletion.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
10 years agoAdded tests for examine_cd() function.
Andrew Borodin [Wed, 12 Oct 2011 13:08:50 +0000 (12 17:08 +0400)]
Added tests for examine_cd() function.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
10 years ago(examine_cd): split in two functions to be unit test friendly.
Andrew Borodin [Wed, 12 Oct 2011 12:41:58 +0000 (12 16:41 +0400)]
(examine_cd): split in two functions to be unit test friendly.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
10 years agoSupport of disable of shell variables substitution in the command line.
Andrew Borodin [Wed, 12 Oct 2011 12:16:43 +0000 (12 16:16 +0400)]
Support of disable of shell variables substitution in the command line.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
10 years ago(strutils_unescape): allow disable shell variable substitution.
Andrew Borodin [Wed, 12 Oct 2011 10:04:05 +0000 (12 14:04 +0400)]
(strutils_unescape): allow disable shell variable substitution.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
10 years agoTicket #2451: allow do not variable substite in the command line.
Andrew Borodin [Wed, 12 Oct 2011 09:53:32 +0000 (12 13:53 +0400)]
Ticket #2451: allow do not variable substite in the command line.

Environment variable should not be substituted if escaping of dollar
sign is used: \$VAR.

Initial steps:
(do_cd): changed return type from int to gboolean.
(examine_cd): likewise and some cleanup.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
10 years agoMerge branch '2684_always_show_selected_file'
Andrew Borodin [Thu, 23 Feb 2012 14:02:00 +0000 (23 17:02 +0300)]
Merge branch '2684_always_show_selected_file'

* 2684_always_show_selected_file:
  Ticket #2684 (selected file must be into the visible area).

10 years agoTicket #2684 (selected file must be into the visible area).
Egmont Koblinger [Thu, 19 Jan 2012 06:53:18 +0000 (19 10:53 +0400)]
Ticket #2684 (selected file must be into the visible area).

After resize the window, the cursor line disappears, selected file was hide, but mustn't.

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
10 years agoMerge branch '2731_scroll_filenames'
Ilia Maslakov [Tue, 21 Feb 2012 18:29:53 +0000 (21 22:29 +0400)]
Merge branch '2731_scroll_filenames'

* 2731_scroll_filenames:
  added scroll indication
  Ticket #2731 (scroll long filenames in panel)

10 years agoadded scroll indication
Ilia Maslakov [Tue, 14 Feb 2012 18:58:06 +0000 (14 22:58 +0400)]
added scroll indication

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
10 years agoTicket #2731 (scroll long filenames in panel)
Ilia Maslakov [Fri, 10 Feb 2012 14:54:14 +0000 (10 18:54 +0400)]
Ticket #2731 (scroll long filenames in panel)

    added bindings 'ScrollLeft', 'ScrollRight' for scroll long filenames in panel

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
    some code & typo fixes.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
10 years agoMerge branch '2726_mcedit_reset_selection'
Ilia Maslakov [Wed, 15 Feb 2012 11:17:32 +0000 (15 15:17 +0400)]
Merge branch '2726_mcedit_reset_selection'

* 2726_mcedit_reset_selection:
  Ticket #2726 (mcedit nonpersistent selection must reset after cursor moved)

10 years agoTicket #2726 (mcedit nonpersistent selection must reset after cursor moved)
Ilia Maslakov [Fri, 3 Feb 2012 13:24:50 +0000 (3 17:24 +0400)]
Ticket #2726 (mcedit nonpersistent selection must reset after cursor moved)

    reset selection after END/HOME/PgDn/PgUp pressed only if 'persistent selection' is switched off.

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
10 years agoMerge branch '2732_muldefs'
Sergei Trofimovich [Mon, 13 Feb 2012 13:18:42 +0000 (13 16:18 +0300)]
Merge branch '2732_muldefs'

* 2732_muldefs:
  Ticket #2732: fix vfs test build failure on alpha
  Ticket #2732: tests/lib/vfs/Makefile.am: drop muldefs from CFLAGS

10 years agoTicket #2732: fix vfs test build failure on alpha
Sergei Trofimovich [Mon, 13 Feb 2012 11:14:50 +0000 (13 14:14 +0300)]
Ticket #2732: fix vfs test build failure on alpha

The test fails to compile on alpha:

>  CC     vfs_parse_ls_lga.o
> vfs_parse_ls_lga.c: In function ‘test_vfs_parse_ls_lga’:
> vfs_parse_ls_lga.c:174:9: error: unknown field ‘st_atime’ specified in initializer
> vfs_parse_ls_lga.c:175:9: error: unknown field ‘st_mtime’ specified in initializer

as st_atime on alpha in not just a field name:

struct stat {
...
    __extension__ union { struct timespec st_atim; struct { __time_t st_atime; unsigned long st_atimensec; }; };
    __extension__ union { struct timespec st_mtim; struct { __time_t st_mtime; unsigned long st_mtimensec; }; };
    __extension__ union { struct timespec st_ctim; struct { __time_t st_ctime; unsigned long st_ctimensec; }; };
};

The fix switches to old-style struct initialization.

Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
10 years agoTicket #2732: tests/lib/vfs/Makefile.am: drop muldefs from CFLAGS
Sergei Trofimovich [Mon, 13 Feb 2012 08:35:52 +0000 (13 11:35 +0300)]
Ticket #2732: tests/lib/vfs/Makefile.am: drop muldefs from CFLAGS

Otherwise gcc on alpha/arm will break in gcc -c phase:

      CC     config_string.o
    armv5tel-softfloat-linux-gnueabi-gcc <skip>  -z muldefs -c config_string.c
    armv5tel-softfloat-linux-gnueabi-gcc: muldefs: No such file or directory
    make[4]: *** [config_string.o] Error 1

Gentoo-bug: http://bugs.gentoo.org/403343
Reported-by: Markus Meier
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
10 years agoMerge branch '2465_dynamically_resize'
Ilia Maslakov [Thu, 9 Feb 2012 18:02:58 +0000 (9 22:02 +0400)]
Merge branch '2465_dynamically_resize'

* 2465_dynamically_resize:
  modified mc.lib, added alt-shift-arrows
  Ticket #2465 (dynamically resize panels)

10 years agomodified mc.lib, added alt-shift-arrows
Ilia Maslakov [Tue, 7 Feb 2012 14:39:38 +0000 (7 18:39 +0400)]
modified mc.lib, added alt-shift-arrows

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
10 years agoTicket #2465 (dynamically resize panels)
Ilia Maslakov [Mon, 6 Feb 2012 15:14:22 +0000 (6 19:14 +0400)]
Ticket #2465 (dynamically resize panels)

added new panel's action to dynamically resize panels:
    SplitEqual - make equal size of panels
    SplitMore - enlarge left/up panel
    SplitLess - enlarge right/down panel

changed misc/mc.keymap.default, misc/mc.keymap.emacs

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
10 years agoMerge branch '2521_panel_size_after_split_change'
Andrew Borodin [Wed, 8 Feb 2012 09:36:18 +0000 (8 12:36 +0300)]
Merge branch '2521_panel_size_after_split_change'

* 2521_panel_size_after_split_change:
  Ticket #2521: fixup of panel size after layout change.

10 years agoTicket #2521: fixup of panel size after layout change.
Andrew Borodin [Sat, 28 Jan 2012 16:12:25 +0000 (28 19:12 +0300)]
Ticket #2521: fixup of panel size after layout change.

Now each layout type has independent options.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
10 years agoMerge branch '2725_more_browsers'
Andrew Borodin [Thu, 2 Feb 2012 08:33:44 +0000 (2 11:33 +0300)]
Merge branch '2725_more_browsers'

* 2725_more_browsers:
  configure.ac: treat firefox as browser as well

10 years agoconfigure.ac: treat firefox as browser as well
Sergei Trofimovich [Sun, 29 Jan 2012 14:58:28 +0000 (29 17:58 +0300)]
configure.ac: treat firefox as browser as well

Found out by Michał Górny

Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
10 years agoMerge branch '2714_tree_command_line'
Andrew Borodin [Wed, 1 Feb 2012 09:42:28 +0000 (1 12:42 +0300)]
Merge branch '2714_tree_command_line'

* 2714_tree_command_line:
  Ticket #2714: command line is unaccessible form tree panel.

10 years agoTicket #2714: command line is unaccessible form tree panel.
Andrew Borodin [Tue, 17 Jan 2012 07:10:30 +0000 (17 10:10 +0300)]
Ticket #2714: command line is unaccessible form tree panel.

If current panel is tree one, cannot enter a command in the command
line.
tree_key() was sync'd with panel_key().

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
10 years agoMerge branch '2705_hex_prefix'
Andrew Borodin [Tue, 31 Jan 2012 18:47:16 +0000 (31 21:47 +0300)]
Merge branch '2705_hex_prefix'

* 2705_hex_prefix:
  Ticket #2705: the 0x prefix for hexadecimal search is optional now.