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