Andrew Borodin
ce0e129891
Fix mouse event handling in menu that overlaps buttonbar.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-09-10 14:29:53 +03:00
Andrew Borodin
d7482275c3
mcdiffview: code cleanup and cosmetics.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-09-10 14:29:52 +03:00
Andrew Borodin
6c249ec0f2
Refactoring of many conditions.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-09-06 13:19:19 +04:00
Andrew Borodin
5bf69875dc
(edit_do_search): refactoring of search loop condition.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-09-06 13:19:19 +04:00
Andrew Borodin
37054596f6
Avoid double checks of bookmarks in editor.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-09-06 13:19:19 +04:00
Ilia Maslakov
1b1071cdac
Ticket #2876 : code cleanup before 4.8.6 release.
...
mcedit: better support of --disable-charset.
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-09-06 13:19:19 +04:00
Andrew Borodin
513d30e5a1
Allow create directory with name '~' (tilda).
...
Use escaping for that (as in shell): \~.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-09-06 10:30:28 +04:00
Andrew Borodin
85ed2bd331
Reimplement support of use ~ as home directory in hotlist.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-09-06 10:30:28 +04:00
Slava Zanko
e2fb1c8dd3
Ticket #2832 : Fixed mcedit: unable to save changes in "Safe save" mode
...
If mcedit is configured to use "Safe save" I'm unable to save changes to existing file.
Same problem is for editor_option_save_mode=2 (backup mode)
Saving to new file works.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-09-05 14:39:58 +03:00
Roman 'gryf' Dobosz
198a10ca7d
fixes following issues:
...
* F3/F4 on 'del' and 0-length files works, however it is impossible to change 'del'
files (cached content can be confusing)
* Koala files and other with non-ASCII characters are supported (implemented directory
reading routine in pure python - for now only D64 format is supported)
* Added workaround for filenames with space at the beginning (however, as it was stressed
before, it is more generic issue than this script. Maybe it is good idea to use pcre
instead of iterating and splitting?)
* minor bugfixes and code cleanup
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-09-05 14:29:53 +03:00
Slava Zanko
43e4938a09
Ticket #2864 : New implementation of uc1541 VFS
...
Due to date formatting, uc1541 extfs plugin is unusable, even tough the date formatting,
which is the one cause of the problem is coherent with the attached documentation (MM-DD-YYYY hh:mm).
Another problem with uc1541 script is connected rather with legal characters used in filename
rather than with script itself - in PET ASCII it is perfectly fine to use slash "/" character
in filenames, and as a side effect all files containing slash inside d64 image are represented
as directories on MC.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-09-05 14:29:53 +03:00
Andrew Borodin
028853b567
Adjust i18n stuff in editor menu.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-09-03 10:07:30 +04:00
Ilia Maslakov
7d34775231
fixed the doxygen documentation.
...
Signed-off-by: Ilia Maslakov <il.smind@gmail.com
2012-08-30 17:10:05 +04:00
Slava Zanko
405007bca1
Added doxygen comments
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-08-30 10:45:02 +04:00
Slava Zanko
e2b53f7d21
Added diff_place_t enum.
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-08-30 10:45:02 +04:00
Slava Zanko
872f9daa26
Added action_direction_t type
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-08-30 10:45:01 +04:00
Gergely Szasz
d8aa98b7d4
Ticket #2863 (mcdiff bidirectional merge enhancement)
...
Added feature for the mcdiff for the bidirectional merge.
With F15 mcdiffviewer merge left panel to right panel direction.
original patch by Gergely Szasz <szaszg@hu.inter.net>
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
added bind "MergeOther" into mc.keymap.default, mc.keymap.emacs.
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2012-08-30 10:43:20 +04:00
Andrew Borodin
30313679b4
Fix of memory leak in TreeStore::check_name destruction.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-08-29 10:23:52 +04:00
Andrew Borodin
fa27aaf018
Ticket #2862 : fix syncronization with filelist and tree panels
...
...in case of rename and delete directories.
Steps to reproduce the problem:
* Choose "file listing" mode for one panel and "directory tree" mode for the other.
* Perform all operations on the "file listing" panel.
* Create a new directory -> tree view will update correctly.
* Perform an operation, which changes this directory like rename/delete.
* Deleted directory will still show up on the "directory tree" view.
Renamed directory will show up with the new name, but the old name will also stay there.
Minor cleanup: remove extra parenthesis.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-08-29 10:23:52 +04:00
Slava Zanko
c29a5a594d
Avoid compiler errors about comparsion signed and unsigned variables
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-08-27 16:27:43 +04:00
Ilia Maslakov
1326197d1b
(is_aligned_on_a_tab): return gboolean instead of int. Minor optimization.
...
(right_of_four_spaces): likewise.
(left_of_four_spaces): likewise.
Simplifying expression for easy code support.
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-08-27 16:27:43 +04:00
Ilia Maslakov
ad0f58e51e
Use off_t instead of long for all variables related to position in file:
...
...offset, cursor position, etc.
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-08-27 16:27:37 +04:00
Andrew Borodin
72f50b458b
Use long for line numbers and columns.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-08-27 16:16:24 +04:00
Andrew Borodin
d07af4a374
(edit_find_word_start): return gboolean instead of int.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-08-27 16:16:24 +04:00
Andrew Borodin
6040d5c17a
(edit_save_cmd): return gboolean instead of int.
...
(edit_save_as_cmd): likewise.
(edit_save_confirm_cmd): likewise.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-08-27 16:16:24 +04:00
Andrew Borodin
7d2975a53e
(edit_copy_to_X_buf_cmd): return gboolean instead of int.
...
(edit_cut_to_X_buf_cmd): likewise.
(edit_paste_from_X_buf_cmd): return gboolean.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-08-27 16:16:24 +04:00
Andrew Borodin
70528dc30a
(edit_save_block): return gboolean instead of int.
...
(edit_save_block_cmd): likewise.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-08-27 16:16:24 +04:00
Andrew Borodin
2453f82bbd
(editcmd_dialog_raw_key_query): take gboolean instead of boolean.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-08-27 16:16:24 +04:00
Andrew Borodin
32d32996fd
(edit_mark_cmd): take gboolean instead of int.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-08-27 16:16:24 +04:00
Andrew Borodin
30e185bb69
WEdit::caches_valid: change int to gboolean.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-08-27 16:16:23 +04:00
Andrew Borodin
d3b7b5987b
(is_in_indent): refactoring, return gboolean instead of int.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-08-27 16:16:23 +04:00
Andrew Borodin
dc9df84693
Ticket #1977 : type accuracy of WEdit members and mceditor functions.
...
(line_is_blank): return gboolean instead of int.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-08-27 16:16:23 +04:00
Slava Zanko
64af4886d6
Ticket #2835 : Fixed duplicate entities in panel with 'tree view' mode
...
Steps to reproduce:
* run mc
* go to 'F9 -> left/right panel -> Tree'
Expected result: unique directory names.
Actual result: duplicate directory names
(one name with leading slash, second directory name without leading slash).
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-08-22 16:53:16 +03:00
Ilia Maslakov
73c85ed015
Ticket #2859 (mcedit ctags fix)
...
How to reproduce:
on sources: ctags -R .
with tags in current dir open any file (needn't be C source or headers)
Alt- (i.e. alt minus or Esc '-')
Current result: sigsegv
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2012-08-21 13:07:54 +04:00
Slava Zanko
105ac777e1
Ticket #2856 : Fixed mceditor 4.8.4 segfaults when aspell dictionaries aren't installed
...
Steps to reproduce:
* compile mc with aspell support
* remove all aspell's dictionaries
* run mc and try to open any file in the internal editor
* close the error dialog
* try to exit from editor
Expected behaviour: a file panels should be shown
Actual behaviour: the segfault here.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-08-05 19:39:41 +04:00
Andrew Borodin
e31e41e04a
Ticket #2854 : panel was not refreshed if panel history is called using mouse.
...
If call panel history using mouse (click on [^] icon on panel top frame)
and then select any path from history, panel was not refreshed to show
actual file list in the new current directory.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-08-05 17:22:39 +04:00
Slava Zanko
b71f35ee60
Implement case insensitive for type keyword.
...
type/i is used now for case-insensitive type patterns.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-08-03 15:16:18 +04:00
Andrew Borodin
81c3d80f4b
Implement case insensitive for shell keyword.
...
shell/i is used now for case-insensitive shell patterns.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-08-03 15:16:17 +04:00
Andrew Borodin
cbcae18836
Implement case insensitive for regex keyword.
...
regex/i is used now for case-insensitive regular expressions.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-08-03 15:16:17 +04:00
Andrew Borodin
97cd63b9fd
Ticket #2250 : implement case-insensitive patterns in mc.ext.
...
(regex_command): minor cleanup and refacroring.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-08-03 15:16:17 +04:00
Andrew Borodin
e39c697df4
Ticket #2853 : standalone mcedit doesn't load saved file position.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-08-03 10:56:32 +04:00
Andrew Borodin
98564b91a1
Allow define keymap file without .keymap extension
...
...in the command line, environment variable and configuration file.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-07-31 14:50:11 +04:00
Andrew Borodin
908e747861
Optimization of ini files load.
...
Some ini files (keymaps, skins) are loaded in read-only mode. For those
files, we don't need load and keep comments.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-07-31 14:50:11 +04:00
Andrew Borodin
99ead577f7
Ticket #2848 : fixup of user-defined keymap load.
...
Modify algorithm of keymap files load:
1) Unconditionally load /usr/share/mc/mc.keymap
2) Unconditionally load /etc/mc/mc.keymap
Then load one of following user-defined keymaps, stop on success:
3) set via --keymap command line option
4) set via MC_KEYMAP environment variable
5) set via keymap key in config file
6) ~/.config/mc/mc.keymap
Fix of double load of keymap file if name is same as name of
system-wide keymap file.
Update man pages.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-07-31 14:50:11 +04:00
Andrew Borodin
e2f30017a0
Ticket #2858 : segfault when viewing HTML files with "mc -v".
...
(expand_format): don't try expand format and return empty line
for modes that are not used formatted variables.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-07-30 10:14:46 +04:00
Slava Zanko
7ddc29649b
Ticket #2838 : Fixed 'Enter' action on a rpm file containing space character in filename
...
Test case:
* cp /path/to/any-file.rpm '/tmp/a n y - f i l e.rpm'
* run /usr/bin/mc, go to /tmp
* Press Enter on 'a n y - f i l e.rpm' file
Expected result: mc should be entered to RPM package as in directory
Actual result: gor errors:
Inconsistent extfs archive
error: open of /tmp/a\ failed: No such file or directory
...
error: open of e.rpm failed: No such file or directory
-r--r--r-- 1 root root 0 Jun 29 15:12 ERROR
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-07-19 11:17:16 +03:00
Andrew Borodin
acdac76a49
Revert "Try fix of compile warnings about assigned but unused variables"
...
This reverts commit 6505f7d6fa
.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-07-18 12:03:31 +04:00
Andrew Borodin
79b44e6be2
(mcview_moveto_eol): comparison of unsigned expression < 0 fixup.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-07-17 17:04:05 +04:00
Andrew Borodin
b37af47023
Makefile.ams cleanup.
...
Set defines via CPPFLAGS variable not via CFLAGS one.
Use AM_CPPFLAGS and AM_CFLAGS variables instead of per-target ones.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-07-17 17:04:05 +04:00
Slava Zanko
94bd4b1f78
Code indentation.
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-07-17 17:04:05 +04:00
Slava Zanko
6505f7d6fa
Try fix of compile warnings about assigned but unused variables
...
...as returned values of functions declared with attribute
warn_unused_result [-Wunused-result].
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-07-17 17:04:05 +04:00
Andrew Borodin
23c95d36ac
Code cleanup: removed unused variables amd removed unnedeed code.
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-07-17 17:04:05 +04:00
Andrew Borodin
71ebcc5896
(exec_extension): ret rid of double filename conversion.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-07-17 17:04:05 +04:00
Andrew Borodin
fec326f641
Tweak of select codepage code in case of --disable-charset
...
...in mceditor, mcviewer and mcdiffviewer.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-07-17 17:04:05 +04:00
Ilia Maslakov
973aae2b5e
Fix of 'External panelize' dialog: update of 'Command' field content after mouse click.
...
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2012-07-17 17:04:05 +04:00
Andrew Borodin
40d6e96471
Fix of f13 key handling.
...
ViewFile doesn't have the default key, and f13 is key for ViewRaw
which is handled in panel not.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-07-17 17:04:05 +04:00
Pavel Vasilyev
2c4562d759
Ticket #2538 : mcviewer: unused result of str_term_width1().
...
And reduce size of buffer used to show file size.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-07-17 17:04:05 +04:00
Slava Zanko
16a624db07
src/filemanager/mountlist.c: apply mc code indentation policy.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-07-17 17:04:05 +04:00
Andrew Borodin
e3b36c8b3d
Ticket #2845 : code cleanup before 4.8.4 release.
...
Sync with gnulib 06b335ade65c8fe60fee8b9e18b670bb54ed924a:
Write "Mac OS X" instead of "MacOS X".
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-07-17 17:04:05 +04:00
Ilia Maslakov
1d4ca9608a
Ticket #2788 (aspell support)
...
Add aspell support for internal editor.
The aspell library is dinamycally loaded.
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2012-07-12 16:00:45 +04:00
Andrew Borodin
562ef41b15
Ticket #2842 : change hotkey for Normal search mode.
...
In Search dialog in mcedit M-n hotkey was used for normal search mode.
Therefore, M-n as HistoryPrev in the input line was in accessible.
Change hotkey for normal seach mode to M-r. Use this hotkey for normal diff
mode in mcdiffviewer to unify i18n resources.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-07-08 16:27:48 +04:00
Andrew Borodin
3786051314
Add SFTP to the list of supported VFSes.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-07-05 10:34:30 +03:00
Slava Zanko
8f15940f50
SFTP connections are shown now in 'Active VFS connections' list.
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-07-05 10:34:30 +03:00
Andrew Borodin
4841bc608a
Fixed reget support in SFTP.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-07-05 10:34:30 +03:00
Andrew Borodin
3cf76f69bf
Ticket #2825 : obtain FS name from stat info: sync with coreutils.
...
src/filemanager/filegui.c does not compile on Solaris due to missing macros.
AVE_STRUCT_STATVFS_F_BASETYPE and HAVE_STRUCT_STATVFS_F_FSTYPENAME macros
are not set or even defined in config.h. configure scrips does not even
check for those members.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-07-02 20:50:19 +04:00
Slava Zanko
614d7f6a08
Fixed the filename escaping issues.
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-06-29 13:14:29 +03:00
Andrew Borodin
af2fe31ff3
Ticket #2829 : loss of data on copy to full partition.
...
While copy/move file, the ENOSPC value of errno wasn't handled.
If destination file isn't comlete because of full partition, source file
is kept and destination one is removed unconditionally.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-06-26 16:19:22 +04:00
Andrew Borodin
e7fb3526f3
Core, mceditor, mcviewer and mcdiffviewer code tweak and cleanup
...
...in case of build with --disable-charset option.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-06-25 16:58:57 +04:00
Andrew Borodin
315c499c09
Ticket #2827 : tweak and cleanup of code in case of --disable-charset option usage.
...
First step: tweak vfs-related code.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-06-25 16:56:11 +04:00
Slava Zanko
da03697e84
Ticket #1535 : SFTP support
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-06-21 14:29:32 +03:00
Andrew Borodin
bf1924e7ff
Set fullscreen layout as previous editor look'n'feel.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-06-20 22:32:52 +04:00
Andrew Borodin
84aa04fa6e
Open several files in mc editor from command line.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-06-20 22:26:10 +04:00
Andrew Borodin
109f07465e
Show top opened file in screen list.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-06-20 22:26:10 +04:00
Andrew Borodin
ba79784948
Add icons to close window and toggle window state using mouse.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-06-20 22:26:10 +04:00
Andrew Borodin
4fa4e7568d
Skin support for window frames.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-06-20 22:26:10 +04:00
Andrew Borodin
2bb6cb2a32
Add toggle fullscreen mode of editor windows.
...
Initially, window is created in fullscreen mode.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-06-20 22:26:10 +04:00
Andrew Borodin
6038c893e4
Handle CK_ShowNumbers action in dialog level instead of widget one.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-06-20 22:26:10 +04:00
Andrew Borodin
85ad1fe4ce
Handle CK_ShowTabTws and CK_ShowMargin actions in dialog level instead of widget one.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-06-20 22:26:10 +04:00
Andrew Borodin
385fdc7f2b
Handle CK_SyntaxOnOff action in dialog level instead of widget one.
2012-06-20 22:26:10 +04:00
Andrew Borodin
ee2a204631
Modify CK_Refresh command handling.
2012-06-20 22:26:06 +04:00
Andrew Borodin
5018bdc3fc
Handle CK_Option action in dialog level instead of widget one.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-06-20 22:25:46 +04:00
Andrew Borodin
92923aff29
Assign button bar to the current editor.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-06-20 22:25:46 +04:00
Andrew Borodin
3b72e4275b
Switch windows using keyboard.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-06-20 22:25:46 +04:00
Andrew Borodin
f1839a9a80
Open each file in its own window.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-06-20 22:25:46 +04:00
Andrew Borodin
8fd3338060
Add edit_add_window() function.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-06-20 22:25:46 +04:00
Andrew Borodin
1c33972ee5
Add CK_Close action to close current open file.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-06-20 22:25:40 +04:00
Andrew Borodin
b2152ae22a
Handle CK_Shell, CK_LearnKeys, CK_OptionsSaveMode and CK_SaveSetup actions in dialog level instead of widget one.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-06-20 22:25:40 +04:00
Andrew Borodin
98e0de0c3a
Handle CK_Help, CK_Quit and CK_About actions in dialog level instead of widget one.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-06-20 22:25:40 +04:00
Andrew Borodin
b50f4f07e5
Allow move and resize edit window using keyboard.
...
Add "Window" menu entry in editor main menu to handle editor windows.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-06-20 22:25:16 +04:00
Andrew Borodin
d9bb50b013
Editor: optimization of menu handling.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-06-20 22:25:16 +04:00
Andrew Borodin
a2fdf8997f
Allow move and resize edit window using mouse.
...
Left click on the top line and drag to move.
Left click on bottom-right corner and drag to resize.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-06-20 22:25:16 +04:00
Ilia Maslakov
2a62a7c792
Add edit_info_status() function.
2012-06-20 22:25:12 +04:00
Andrew Borodin
81f4c6a5ae
Draw a frame around edit area.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-06-20 22:24:54 +04:00
Andrew Borodin
4cec8cbf94
Minor optimization and type accuracy of some editor functions.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-06-20 22:24:49 +04:00
Ilia Maslakov
80b0cde5c1
Fix of mult-byte characters and tabulation printing.
...
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-06-20 16:46:39 +04:00
Andrew Borodin
71c29390d9
Ticket #2261 : allow edit many files in one editor window.
...
Initial step: renamed src/editor/edit-widget.h to src/editor/editwidget.h.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-06-20 16:05:12 +04:00
Molnár Károly
06285250aa
Ticket #2751 : Support *.lib artifacts generated by gputils utility
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-06-12 14:35:48 +03:00
Andrew Borodin
f23f55bc9e
Handle directory history of panel.
...
Added pointer to the current history item and use to walk in history.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-06-11 15:02:19 +04:00
Andrew Borodin
c813d1baad
Handle history of input line.
...
Added pointer to the current history item and use to walk in history.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-06-11 15:02:19 +04:00
Andrew Borodin
f899f62a86
Ticket #2313 : CK_History removes CK_HistoryNext entries
...
Steps to reproduce:
1. traverse through some directories,
2. press alt-y multiple times,
3. press alt-u multiple times,
4. press alt-y again a few times,
5. press alt-shift-h (notice no dirs to forward to), press esc,
6. press alt-u - nothing happens.
Initial step: (directory_history_add): make static and use vfs_path_t as argument.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-06-11 15:02:19 +04:00
Ilia Maslakov
18f555a4cf
Ticket #2495 (show info about macros)
...
Display extended info about compiled-in paths for internal/external macros.
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2012-06-11 07:58:10 +04:00
Andrew Borodin
9bec27cb04
Ticket #2817 : fixes of mouse handling in file manager.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-06-08 11:25:29 +04:00
Andrew Borodin
77ed2cf70c
Change obtaining of working dir.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-06-05 13:06:27 +04:00
Andrew Borodin
c1f2a8ac49
Clean up stuff that is not used anymore.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-06-05 13:06:27 +04:00
Andrew Borodin
c83c3f7052
Ticket #2814 : handle CK_FileNext/CK_FilePrev inside mcviewer.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-06-05 13:06:27 +04:00
Andrew Borodin
9b5e5a5106
Reimplemented mouse event handling in the file manager.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-06-01 13:44:40 +04:00
Andrew Borodin
83e3945c24
Ticket #2817 : add mouse handler to the dialog.
...
Currently, dialog itself doesn't handle mouse events. It just
resends mouse event to each its widget. If we can several overlapped
widgets (especially, menu bar), there is some problem to decide which
widget must get event at first.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-05-30 13:23:12 +04:00
Andrew Borodin
28a8b10f12
Ticket #2813 : number of panelized files was limited to 127.
...
(handle_path): restore contidion that was lost in
eeaad790ab
.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-05-28 16:26:28 +04:00
Slava Zanko
d14f481785
src/filemanager/ext.c: Added ability to export global variables to external programs called from mc.ext file.
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-05-18 13:06:20 +03:00
Slava Zanko
3b3a1da8ad
src/filemanager/ext.c: Code optimization.
...
avoid few actions while %cd called from ext-file.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-05-18 13:06:20 +03:00
Slava Zanko
2af4c0d723
Ticket #2118 : split exec_extention() function to few functions.
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-05-18 13:06:20 +03:00
Slava Zanko
21d1f61b40
Ticket #2800 : Garbage directory listing in ftpfs
...
Just open any non-anonymous FTP connection.
2012-05-18 12:31:29 +03:00
Phil Krylov
7c425e8500
Ticket #2808 : build failure on FreeBSD 6.
...
sys/param.h needs to be included before sys/mount.h on FreeBSD 6,
otherwise compiling fails with undefined identifier NGROUPS.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-05-13 14:49:30 +04:00
Andrew Borodin
9e2d9d47bc
Ticket #2805 : fix of misenterpretation of command line arguments as relative paths.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-05-09 10:32:09 +04:00
Andrew Borodin
bbf534e7d7
Don't mix mc_search_cb_ret_t and int as result of search callback.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-05-08 18:57:55 +04:00
Andrew Borodin
48bd62f9bc
Ticket #2783 : when right panel is active, panel paths are swapped at each mc start.
...
How to reproduce.
1. Goto ~. Run mc. Enable autosave panels setup before exit. Save options.
2. Open ~ dir in the left panel, / in the right one. Make right panel active.
3. Close mc.
4. With mc-wrapper, following is performed:
4.1. Run mc. Now ~ in the right panel, / in the left one.
4.2. Close mc.
4.3. Run mc. Now ~ in the left panel again, / in the right one.
4.4. ...and so on.
5. Without mc-wrapper, following is performed:
5.1. Run mc. Now ~ in both panels.
Expected behavior with current_is_left=false
1. if mc start as mc dir dir2, dir1 is opened in the left panel, dir2 in
the right one.
2. if mc starts as mc (without dir1 and dir2), active (right) panel
contains working directory, other (left) one contains other_dir from
panel.ini.
3. if mc start as mc dir1, dir1 is opened in the left panel, right panel
contains working directory.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-05-04 18:19:44 +04:00
Andrew Borodin
8607bcc103
Ticket #2785 : error message when entering into compressed tar and cpio archives.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-04-25 16:42:39 +04:00
Andrew Borodin
4e8faef03e
Ticket #2783 : directories is opened in the wrong panel.
...
mc dir1 dir2
The bug: order of parameters assignment depends on current_is_left
option in panels.ini file: if current_is_left=0, then dir1 is opened
in the left panel, dir2 in the right one. If current_is_left=1,
then dir1 is opened in the right panel, dir2 in the left one.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-04-24 20:49:57 +04:00
Andrew Borodin
ac880c71a7
Ticket #2784 : segfault at chown.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-04-23 09:37:32 +04:00
Andrew Borodin
25315360bd
(mc_setup_by_args): fixed memory leaks.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-04-22 11:25:11 +03:00
Andrew Borodin
bd4a696ab6
(reread_cmd): use vfs_path_cmp() to compare dirs.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-04-22 11:25:11 +03:00
Andrew Borodin
1c05ebf8b9
(do_load_dir): use vfs_path_t as a path handle.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-04-22 11:25:11 +03:00
Andrew Borodin
bf65b9b691
README.fish: fixed location of user scripts.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-04-22 11:25:11 +03:00
Andrew Borodin
8895615aca
Use new-style VFS prefixes.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-04-22 11:25:11 +03:00
Andrew Borodin
22c1d05f6b
(nice_cd): use new-style VFS prefixes.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-04-22 11:25:11 +03:00
Andrew Borodin
3b86ee7808
Fixed mouse handling in WPanel widget.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-04-22 11:25:11 +03:00
Andrew Borodin
a878a2dd37
(vfs_expare): changed argument type from int to gboolean.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-04-22 11:25:11 +03:00
Andrew Borodin
a9ff27db05
(check_for_default): minor optimization and change return value.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-04-22 11:25:11 +03:00
Andrew Borodin
8ac2c68d3f
Fix of viewer status bar draw.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-04-22 11:25:11 +03:00
Slava Zanko
0a44a9ff5f
Ticket #2779 : Active VFS directories list contain incorrect current path
...
1) login to any ftp or fish resource
2) select ftp/fish entry and change current path
3) go back to old path
4) press Ctrl+X A (open "Active VFS directories" dialog)
Expected result: should be correct path to current VFS path
Actual result: path is incorrect.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-04-22 10:23:13 +03:00
Slava Zanko
117aa67155
Ticket #2765 : Show directory sizes on any VFS is broken
...
Command "Show directory sizes" shows zero when executed on ftp, utar, fish etc.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-04-18 10:30:56 +03:00
Andrew Borodin
638cac9be3
Ticket #2776 : file selection reset after cd to ".." in remote VFS.
...
After cd from directory to ".." in remote VFS, directory selection is
reset (".." is selected instead of the previous directory).
Bug was introduced in c457eaf9b1
.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-04-15 14:38:04 +04:00
Andrew Borodin
c457eaf9b1
Ticket #2776 : file selection reset after exit from the archive in the root.
...
After exit from archive located in the root of FS, file selection is
reset (/bin is selected instead of the archive).
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-04-13 14:53:57 +04:00
Slava Zanko
764cdf2497
Ticket #2775 : segfault after open incorrect archive
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-04-12 22:52:47 +03:00
Slava Zanko
4184555b82
Ticket #2760 : The password for session ftp remains in input history
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-04-12 22:31:20 +03:00
Slava Zanko
0e5b78b98b
Code optimization: memory allocation and free moved outside of loop.
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-04-09 12:30:05 +03:00
Slava Zanko
b4571ad1c5
Ticket #1868 : mcedit hang up on replace with regexp.
...
steps to reproduce:
* create/open dummy file
* replace (with regexp enabled)
* on search string, put: ^ or $
* on replacement string, put *any string*
* on confirm replace, select All
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-04-09 12:30:05 +03:00
Ilia Maslakov
55684c3286
Ticket #2766 (Cursor position reset after update)
...
Cursor position reset after update when panel is panelized, but doesn't.
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2012-04-04 15:59:42 +04:00
Andrew Borodin
e4fc99d404
Tweak description of MC_HOME environment variable.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-04-04 15:52:08 +04:00
Slava Zanko
bd5c568f8f
Ticket #2663 : Segmentation fault while background copying
...
Action to reproduce bug:
Start copy/move file/files (around 100mb+) in background
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-04-04 13:59:19 +03:00
Andrew Borodin
b4efe67b12
(diff_view): make static.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-04-04 13:57:23 +04:00
Andrew Borodin
118d7c1d1d
Make mcdiff verbose if one or both parameters are incorrect.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-04-04 13:57:22 +04:00
Andrew Borodin
809f668717
Ticket #2769 : crash on compare files if one panel is not in the listing mode.
...
Added check of panel types before run file comparision.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-04-04 13:57:22 +04:00
Egmont Koblinger
caf5a9e1b5
Ticket #2763 (Last word of help links not clickable)
...
The last word of hyperlinks in the interactive help don't act on mouse clicks.
This also implies that one-word links can't be clicked at all.
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2012-03-28 13:26:45 +04:00
Slava Zanko
2a5885fb7f
Ticket #2761 : save file on top of existing directory changes dir's permissions
...
Steps to reproduce:
mkdir foo
chmod 0700 foo
mcedit bar
ls -ld foo
drw-r--r-- 1 slyfox users 0 Mar 22 22:10 foo
We've lost dir's permissions.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-03-27 11:05:13 +03:00
Ilia Maslakov
f0f39cb2a7
code indentation
...
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2012-03-26 10:12:24 +04:00
Slava Zanko
a58aee00cb
Ticket #2278 : Problem in the Copy operation
...
Previously, copying a file does not change access permissions of the destination
file if the check box "Preserve attributes" in the Copy window is not set.
For some time it is not so: if you uncheck the "Preserve attributes" then access
permissions of the destination file are set in accordance with the value of
umask, which can lead to information disclosure(i.e. security problem).
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-03-26 09:50:02 +04:00
Slava Zanko
d52b1dced1
Ticket #2759 : Unable to edit gzipped files
...
Steps to reprosuce:
*) dmesg| gzip -c9 > out.gz
*) press F4 on out.gz file
Expected result: editor should be opened
Actual result: segmentation fault.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-03-25 15:34:08 +03:00
Andrew Borodin
62f382b70e
Ticket #2384 : allow rebind Fx keys in the file manager.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-25 10:39:35 +04:00
Andrew Borodin
87174bad44
Optimization of second panel directory setup.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-03-24 17:20:26 +03:00
Andrew Borodin
188a20f333
Ticket #2762 : mc ignores second directory argument.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-24 17:20:26 +03:00
Slava Zanko
408ba2a2de
hotlist: fixed broken newly added entries.
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-03-22 11:04:06 +03:00
Slava Zanko
296eec83eb
Ticket #2753 : fixed entering to old-style path format.
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-03-22 11:04:06 +03:00
Andrew Borodin
529a7ba24c
Ticket #2754 : mceedit can't run w/o file as parameter.
...
Also fixed segfault while run `mc -v ""`.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-21 14:12:17 +03:00
Ilia Maslakov
4a940004ed
Added new entry to the external panelize - "Modified git files".
...
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2012-03-19 17:00:29 +04:00
Andrew Borodin
7b28a01feb
Fixed handling actions in chmod dialog
...
...in according with 7e6ff9caf9
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-19 11:07:43 +03:00
Andrew Borodin
4f5c2e1649
(extfs_get_path_mangle): renamed to extfs_get_path_int
...
and chnaged type of returned value to pointer to constant.
Related changes.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-19 11:06:01 +03:00
Andrew Borodin
c2406adfce
(extfs_get_path_mangle): minor optimization.
...
Avoid string allocation if it is really unneeded.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-19 11:06:01 +03:00
Andrew Borodin
8b8c9a4f34
(panel_reload): fixup of panel current directory obtain.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-19 11:06:01 +03:00
Andrew Borodin
62bbe53205
(edit_load_file_from_filename): fixed file unlocking.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-19 11:06:01 +03:00
Slava Zanko
409e8ab5fd
Typo fix in message
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-03-19 11:06:01 +03:00
Andrew Borodin
4bd81f5866
(expand_format): minor optimization.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-19 11:06:01 +03:00
Andrew Borodin
53b146c83a
Added default shortcuts for dynamically resize panels.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-19 11:06:01 +03:00
Andrew Borodin
308237aa11
Fixed preprocessor conditions.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-19 11:06:00 +03:00
Andrew Borodin
d38385eb37
find.c: drop support of legacy config option.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-19 11:06:00 +03:00
Andrew Borodin
67a4c6d521
Added macros for Layout and Misc sections of main config file.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-19 11:06:00 +03:00
Andrew Borodin
dea3aa9023
Reorder fields in mc_global struct and change type for some of them.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-19 11:06:00 +03:00
Andrew Borodin
0960ef2541
Removed useless return.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-19 11:04:58 +03:00
Andrew Borodin
01e51f5496
Editor: avoid extra screen redraw.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-19 11:04:57 +03:00
Andrew Borodin
4ca6fe66aa
editdraw.c: removed unused defines.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-19 11:04:57 +03:00
Andrew Borodin
c7bde637f9
Tweak background operations support.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-19 11:04:57 +03:00
Andrew Borodin
aadf01f390
Include sys/param.h conditionally.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-19 11:04:57 +03:00
Andrew Borodin
f7f37f674e
Check assert.h header and use it conditionally.
...
assert(3) should be replaced with g_assert().
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-19 11:04:57 +03:00
Andrew Borodin
b3d1eafb5e
Minor optimization of memory allocation for string copy.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-19 11:04:57 +03:00
Andrew Borodin
e2b67a33ba
Ticket #2740 : code cleanup before 4.8.2 release.
...
Removes references to AC_HEADER_STDC macro, marked as obsolescent
in the Autoconf 2.60 release.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-19 11:04:56 +03:00
Andrew Borodin
13a660d2e0
Allow setup mc home directory using MC_HOME environment variable.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-19 11:43:55 +03:00
Andrew Borodin
cce7ccf48a
Tweak arguments parsing
...
...to allow to show info about mc options regardless of the fact that
configuration directories cannot be created.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-17 19:04:22 +03:00
Andrew Borodin
dcba554a6d
Handle error of mc main loop.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-17 19:04:22 +03:00
Andrew Borodin
9919577962
Ticket #2738 : handle errors at mc sturtup stage.
...
Don't run MC if configuration directory cannot be created.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-17 19:04:22 +03:00
Slava Zanko
a354a9b228
Ticket #2695 : fixed segfault on newly created files in editor
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-03-15 12:47:46 +03:00
Andrew Borodin
cfc13ba3a0
Ticket #2747 : fixups of hotlist loading.
...
Path transformation while loading hotlist breaks shell variable
substitution.
Load paths from hotlist as is withowt any transformation.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-12 16:22:22 +03:00
Andrew Borodin
da00fa0b04
Fixup of getting stat info before file operation.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-08 19:37:39 +03:00
Andrew Borodin
50c63ca886
Fixed location of hotlist query dialogs.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-08 10:37:56 +03:00
Andrew Borodin
62fc80f5f7
Allow draw a part of line if some coordinares are out of screen boundaries.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-08 10:37:56 +03:00
Andrew Borodin
140d4ea117
Allow close help and tree dialogs using ctrl-g shortcut (SIGINT).
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-08 10:37:55 +03:00
Andrew Borodin
7e6ff9caf9
Allow override standard dialog actions in some dialog.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-08 10:37:55 +03:00
Andrew Borodin
6ad4b2466b
Allow add and remove widgets in runtime.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-08 10:37:55 +03:00
Andrew Borodin
33d25a0c8f
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>
2012-03-08 10:37:55 +03:00
Slava Zanko
4047403077
Fixed creation of lock files
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-03-06 11:52:32 +03:00
Slava Zanko
8d71371961
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>
2012-03-06 11:52:32 +03:00
Slava Zanko
9d005bce6f
panels: Show archive name when entering to archive
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-03-06 11:52:32 +03:00
Slava Zanko
49e35a62fb
Fixed destination file name when file dialog with single operation is appear
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-03-06 11:52:31 +03:00
Slava Zanko
05d220a9c6
vfs_path: Fixed broken relative paths processing.
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-03-06 11:52:31 +03:00
Andrew Borodin
2f744e86a2
Reimplemented list of operated files using GSList.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-06 11:52:31 +03:00
Slava Zanko
a8da7179d0
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>
2012-03-06 11:52:31 +03:00
Slava Zanko
d2be823ac3
Changed src/filemanager/file.c to handle vfs_path_t objects.
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-03-06 11:52:31 +03:00
Slava Zanko
c9af137914
Changed lot of functions in src/ directory
...
...to handle vfs_path_t objects.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-03-06 11:52:31 +03:00
Slava Zanko
ccfea7a142
Share same code between update_xterm_title_path() and midnight_get_title() functions
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-03-06 11:52:31 +03:00
Slava Zanko
2b5c28b316
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>
2012-03-06 11:52:31 +03:00
Slava Zanko
c68ce1efe4
Use vfs_path_t in execute.c and subshell.c.
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-03-06 11:52:30 +03:00
Slava Zanko
4dde82c5be
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>
2012-03-06 11:52:30 +03:00
Slava Zanko
8562a215be
Code refactoring: removed concat_dir_and_file() function.
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-03-06 11:52:30 +03:00
Slava Zanko
862d53090d
Code refactoring
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-03-06 11:52:30 +03:00
Slava Zanko
87291354e3
Changed internal viewer to use vfs_path_t objects.
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-03-06 11:52:30 +03:00
Slava Zanko
db58cd9ca7
Changed internal editor to use vfs_path_t objects.
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-03-06 11:52:30 +03:00
Slava Zanko
12a9390524
Changed lock_file() and unlock_file() functions
...
...to handle vfs_path_t objects.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-03-06 11:52:30 +03:00
Slava Zanko
3529890d0c
Changed treestore functions to handle vfs_path_t objects.
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-03-06 11:52:30 +03:00
Slava Zanko
98bad221f8
Changed do_reload_dir() function
...
...to handle vfs_path_t objects.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-03-06 11:45:51 +03:00
Slava Zanko
e7dc7ebf2d
Push/pop dirstack: changed type of saved items to vfs_path_t type.
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-03-06 11:45:51 +03:00
Slava Zanko
902e5cb978
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>
2012-03-06 11:45:50 +03:00
Slava Zanko
0aa10fd6cb
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>
2012-03-06 11:45:50 +03:00
Ilia Maslakov
bd970f29da
subshell.c: changed printf message into stserr to the vfs_print_message
...
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2012-03-06 11:41:26 +03:00
Slava Zanko
75c2b483ff
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>
2012-03-06 11:41:26 +03:00
Slava Zanko
389ac85992
Changed input parameters of mc_mkstemp() and mc_tempdir() functions
...
to handle vfs_path_t type.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-03-06 11:41:26 +03:00
Slava Zanko
4945d0f9a6
Changed interface of function mc_open() for handle vfs_path_t object as parameter
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-03-06 11:41:25 +03:00
Slava Zanko
0a7caff306
Changed interface of function mc_symlink()
...
...to handle vfs_path_t object as parameter.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-03-06 11:41:25 +03:00
Slava Zanko
b27f686f87
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>
2012-03-06 11:41:25 +03:00
Slava Zanko
3f6f89bc49
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>
2012-03-06 11:41:25 +03:00
Slava Zanko
031e994cba
changed interface of function mc_setctl() for handle vfs_path_t object as parameter
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-03-06 11:41:25 +03:00
Slava Zanko
034252a71a
Changed interface of function mc_opendir()
...
...to handle vfs_path_t object as parameter.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-03-06 11:41:24 +03:00
Slava Zanko
eeaad790ab
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>
2012-03-06 11:41:24 +03:00
Slava Zanko
8ec4f94dc6
changed interface of function mc_chdir() for handle vfs_path_t object as parameter
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-03-06 11:33:12 +03:00
Slava Zanko
e2c326997f
Added usage of VFS_S_USETMP flag
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-03-06 11:33:12 +03:00
Andrew Borodin
ebacf41678
Ticket #2736 : dont't reload panel forced before file operations
...
...to avoid actions on wrong files.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-02-28 20:44:32 +03:00
Andrew Borodin
5531b25dd7
(examine_cd): split in two functions to be unit test friendly.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-02-24 09:39:04 +03:00
Andrew Borodin
0a5065cb84
Support of disable of shell variables substitution in the command line.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-02-24 09:39:04 +03:00
Andrew Borodin
66231b1ac9
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>
2012-02-24 09:39:04 +03:00
Egmont Koblinger
94ffb8ba37
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>
2012-02-23 17:00:31 +03:00
Ilia Maslakov
0a192e51c7
added scroll indication
...
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2012-02-21 22:20:27 +04:00
Ilia Maslakov
d94da7d5c3
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>
2012-02-21 22:20:25 +04:00
Ilia Maslakov
693ae0ac7f
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>
2012-02-15 13:58:43 +04:00
Ilia Maslakov
5e688eec94
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>
2012-02-09 13:44:32 +04:00
Andrew Borodin
ebd0ce59a0
Ticket #2521 : fixup of panel size after layout change.
...
Now each layout type has independent options.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-02-08 12:36:02 +03:00
Andrew Borodin
349308542f
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>
2012-02-01 12:42:07 +03:00
Andrew Borodin
7f1a2e76af
Grammar.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-01-10 20:13:02 +03:00
Andrew Borodin
b991d529ee
Calculate and show copied bytes for all files.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-01-10 20:13:02 +03:00
Andrew Borodin
09d77878c7
Update file operation statistics for every processing file.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-01-10 20:13:02 +03:00
Andrew Borodin
dad538e7dc
Simplify constructing of file operation progress dialog.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-01-10 20:13:02 +03:00
Andrew Borodin
efb0197656
Ticket #2503 : don't show total file operation info
...
...if the file_op_compute_totals option is off.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-01-10 20:13:02 +03:00
Andrew Borodin
8fae57a1f5
(edit_insert_file_cmd): sync with new edit_insert_file()
...
...and make minor optimization.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-01-08 11:58:21 +04:00
Ilia Maslakov
88b3f840a7
Ticket #2710 (can't open an edit zero-length file from VFS in mcedit)
...
fixed problem with zero-length files from VFS in mcedit.
steps to reproduce the problem:
1. touch test.txt
2. tar cf test.tar test.txt
3. place cursor on test.tar and press Enter to enter to the archive.
4. place cursor on test.txt and press F4 to open file in editor.
Result: file not opened.
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2012-01-08 11:58:20 +04:00
Andrew Borodin
1f1908a824
Refactoring of hotlist confirmation dialogs.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-01-04 16:30:28 +03:00
Andrew Borodin
a29abae2e3
Ticket #1576 : delete an empty hotlist group w/o extra confirmation.
...
While deleting an empty group in hotlist, the extra confirmation
"Group not empty. Remove it?" should not raise.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-01-04 16:30:10 +03:00
Andrew Borodin
0aa81e22ad
Fixed hotkeys in 'Search' dialog in mcdiff viewer.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-12-30 17:49:16 +03:00
Andrew Borodin
301e41b3e5
Fixed hotkeys in 'Search' and 'Replace' dialogs in mcedit.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-12-30 17:49:16 +03:00
Andrew Borodin
407b57a0b2
Fixed hotkeys in 'Search' dialog in mcviewer.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-12-30 17:49:16 +03:00
Andrew Borodin
1923c3544c
Ticket #2694 : support '~' as home dir in 'Start at:' field in 'Find File' dialog.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-12-29 11:46:07 +03:00
S. Melnikov
a3ddfd14ea
Ticket #2105 (mcview backward search)
...
Until 4.7 '/' was forward and '?' backward search.
In current releases both keys are bound to ViewSearch
so one must manually choose Backwards option in the dialog.
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2011-12-28 17:30:07 +04:00
Ilia Maslakov
0b631ab1eb
Ticket #86 (disable X11 from command line)
...
added option --no-x, -X for starting mc without X11 support.
updated documentation: es, hu, it, en, pl, ru, sr.
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2011-12-22 09:04:50 +04:00
Andrew Borodin
bd2ddb54cb
Modified "Configure options" dialog for better look'n'feel.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-12-12 12:30:35 +03:00