* glibcompat.c: Add g_strlcat() declaration for glib 1.2.x
[midnight-commander.git] / TODO
blob5e9c2c2ab02576836323cce095612b5d960ec550
1 Before 4.6.2
2 ============
4 Due to problems in the VFS, files are not written back after being edited
5 over VFS with an external editor.
7 Allow pathnames starting with spaces in vfs/extfs.
9 Hide the passwords when displaying mcvfs path names.
11 Broken pipe warning when viewing large *.tar.gz files.  Warnings should
12 be shown before the viewer is started if possible.
14 Cannot spell check unsaved files in the editor.
16 Dynamic loading for libgpm, libext2fs.
18 Check if the archive was changed for extfs, tar and cpio.  Free the data
19 associated with the old archive.
21 Use Del to remove items from history.
23 Ctrl-q Ctrl-m in input dialog should enter \r, not a newline.
25 Interpret C literals in regular expressions entered by the user, e.g. \r
26 and \0x0D.
28 Allow entering archives in VFS by Ctrl-PgDown with non-empty command
29 line.  Right now, there is no convenient way to enter an archive when
30 the command line is not empty.
32 Allow switching between histories of two panels.  It's convenient to
33 change to a directory from the history of the other panel.
35 Allow calling the directory hotlist from Copy, Move and Find File
36 dialogs.  Recent directories are the obvious candidates for copying and
37 looking for files.
39 Allow modifiers for keys in mc.lib, like "shift-up".  Right now,
40 modifiers can be read from the terminal (if supported), but not from the
41 config file.  This change would make it possible to use modifiers even
42 if they can only be identified by the escape sequences.
44 When saving config files, write to a copy, then replace the file.  This
45 would avoid the problem of partly written config files.  Consider using
46 locking of the config files.
48 Totals are not calculated when copying or moving a single directory. 
49 Totals should only be omitted for single files.
51 Recheck all mouse handlers, make sure that they check button number.  We
52 don't want mouse scrolling to be interpreted as mouse click.
54 Smooth mouse scrolling on panels.  Scrolling one page per step is too
55 fast.
57 Don't read prompt from the subshell, because it's unreliable.  Interpret
58 environment variable MC_PS1 (or PS1) in the same way as bash.
60 Support an environment variable (also like PS1 in bash) for setting the
61 window title.
63 real_input_dialog_help() shouldn't use translated strings in the section
64 names in .mc/history.  Right now, mc writes separate history sections
65 for different locales.  Only input history is affected.
67 Add "Ignore" and "Ignore all" buttons when reporting permission
68 problems.
70 Better date parser - don't allow seconds and year in ftp listings on the
71 same line.
73 Report errors in fish operations and recover from them.
75 Allow colors to be defined in the mc.lib file.  Make it possible to
76 avoid using a super-long line to redefine all colors.
78 Allow verbatim search in "Find File".  Right now, the context is always
79 interpreted as regular expression.
81 Filters in the editor should operate on the open file - don't close and
82 reopen the file.  They don't work on VFS now.  For example, a gzipped
83 files on FTP cannot be edited.
85 ftp and fish with home != '/' - readjust directory to the home.
87 Search in the viewer should have an option for case sensitive search.
89 Make "Find File" dialog more responsive.  Keep state in a structure and
90 preserve it when the search is suspended.
92 Use KDGKBENT ioctl on Linux console to find the mapping for shifted
93 functional keys.  Two mappings are widely used (Shift-F1 = F11 and
94 Shift-F1 = F13).  mc should adjust the keys to the mapping.
96 Alt-O should optionally show the current directory and move cursor down
97 (as in older versions).  Old functionality on files (go to "..") is not
98 needed.
101 After 4.6.2 on 4.6.x branch
102 ===========================
104 Make the internal editor reentrant.  Add "edit menu file" to the editor
105 menu.
107 Safe and restore file position in the viewer.
109 Consistent support for mc.lib.
111 Consistent support for terminal-specific settings.
113 New syntax for mc.ext - path check, desktop environment check.  Detach X
114 programs into a separate process group.  Allow forcing the full path on
115 local files.
117 Click on an image doesn't always work on remote vfs - local copy may
118 be deleted before the application has time to load it.
120 Allow running executables from remote VFS.  Possibly warn the user.
122 Add print dialog in the internal editor.
124 Implement logging, not just for VFS.
126 "Find file" should remember full starting path, not "." in the history.
129 In the 4.7 branch
130 =================
132 Eliminate all pipes in subshell.c, run pwd after kill.  Add support for
133 more shells (e.g. ksh).
135 Internal terminal - no more console saving.
137 Implement a really Advanced Chown/Chmod.
139 Support for multi-byte charsets (e.g. UTF-8).
141 sftp and fxp support in VFS.
143 New listing mode keyword "time": mtime or the time (atime, ctime) used
144 to sort files.
146 Support for X clipboard.
148 Provide "patch" and "diff" editors. The patch editor will automatically
149 adjust the line numbers of the following chunks when lines are deleted
150 or inserted at the beginning of the file.
152 Provide context menus for files. Possible actions include: [compile],
153 [CVS commit], [CVS diff -up], [pack], [unpack], [grep].
155 Make mc a CVS frontend comparable to Eclipse-3.0.
157 More standard Widgets: WTreeView, WDirectoryList, WGroupBox, WTextArea,
158 WOpenDialog, WSaveDialog, WPrintDialog, WKeyBar.
160 ========================================================================
161 Everything below this point is the old TODO list.  It doesn't reflect
162 the current priorities of the developers, but may contain interesting
163 ideas still waiting for their implementation.
164 ========================================================================
167 * Bugs
169   - "Files" message flickers a lot when copying files.
171   - Make the extfs handle re-reads.
173   - Document (or remove) C-x C-r, C-x C-s.
175   - Check that all the help contexts exist on the help file.
177   - Make the buttonbar for the tree box work.
179   - In the incremental search mode, when backspacing, select the
180     correct file, do not stop in current file.
182   - Make C-y yank back all the killed text at once if you've just done
183     several kill operations in a row (C-k, M-d, etc).
185   - In learn keys, warn the user if he is trying to
186     i) define a same sequence as an already defined (if the keycode differs)
187     ii) define a sequence, which is a prefix of other longer and already
188         defined sequence
190 * Configuration 
192 * Documentation
194   - Convert the source mc.1 to mc.sgml and create automagically from it
195     mc.1, mc.html, mc.hlp, mc.info, mc.tex, mc.txt etc.
197 * Extensions
199    - Hotlist should allow people to edit the entry (like we do in the external
200      panelize thing).
202    - Change ext.c to allow the %{..} to recursively expand any other %thingies.
204    - Write a general grow_string routine.  This code is used in the internal
205      viewer and would also be used in the profile.c code.
207    -  A command to set the line length to a fixed value for viewing
208       fixed length binary files. LIST does this with Ctrl-B and then
209       prompts for a "record" length.
211    - Viewer: Mark all found matches, and when 'n' is pressed go to the
212      next page, not the next match on the same screen (when there is
213      more than one).
215   - In ftpfs_open, extfs_open, if we set local_filename to tmpnam, use
216     a mechanism to set local_filename to another place on the local
217     diskspace (this would be useful for copying, so that we would save
218     some tmp space). This would require special care in file.c afterwards.
220   - In Listing mode... give at least three user-definable formats
221     (using Janne's Listing mode editor) and assign hot-keys to both
222     standard and user defined (what about c-x f [fbl123] ?).
224   - Shift-Home, Shift-End for the input line: home and end.
226   - Make a mechanism to lock all the mouse events and send them to
227     the locking widget until unlocking is done.
229   - Sort with numerical extensions.
231   - Allow the program to execute a command even when we are on a vfs, maybe
232     a special box, or make subshell code ignore the change directory
233     request. Perhaps each vfs should store a local path attached to it,
234     like in tarfs, extfs it would be the directory which contains the
235     topmost tararchive, in ftpfs it would be the directory which we entered
236     to ftp from.
238   - auto_hint_lines: a variable that would choose to use hint mode when
239     at least auto_hint_lines are visible.
241   - Listbox: Mouse handler for the scrollbar: this will be hard with
242     the current approach (since the listbox scrollbar is drawn *outside*
243     the listbox control area).
245   - In file.c, we shouldn't need to get a full path name in order to
246     work, we should instead canon the file name inside the tar.c (the
247     only fs that relies on this), tar.c should know about the cwd (i
248     think).
250   - Panelize the selected files.
252   - Recursive delete should (perhaps as an option) delete files just after
253     they have been copied and not to delay deleting until everything was
254     moved.
256   - When copying a tree (or moving or deleting), as an option act primarily
257     on the regular files and at the end on directories recursively, so that
258     we get complete high parts of the tree if something fails (useful for
259     ftpfs).
261   - Put into a new and bigger Options/Configuration dialog all the options
262     we have now to set using .mc/ini manually.
264   - When after deleting there are no files in a panelized panel, restore
265     it automagically to the real directory content.
267   - Files/Symlink and Link should be able to do multiple links (if the
268     target is a directory).
270   - Directory sizes should work in background using try_channels.
272   - Support of non-UNIX ls in ftpfs. Perhaps using an ascii configuration
273     file similar to moxftp.
275   - Have an option to let the user choose the preferred keybindings.
276     Currently, only the emacs keybindings are supported, add support
277     for Norton Commander and vi keybindings.
279   - Find command should have a way to specify directories to skip.
281   - Add an option that will let listboxes do incremental searches.
283 * Optimizations and cleanup
285   - Optimize the mcfs read and write code: make the code output 8k
286     blocks all the time (if we have called mc_hint_readall) and probe
287     the input for a possible cancel.
289   - When verbose is off, remove all the clutter on the screen about
290     the files being copied.
292   - The viewer is calling view_update in many places, I call
293     view_update after handling a key, should all the other
294     view_updates be removed?
296   - If the viewer is too slow, some caching could be done.
297     width and cols are currently computed each time they are needed.
299  ++ In the user menu, don't use the entries array, we can now grow
300     dynamically.  I should take a look at this one day, it's easy to
301     fix.