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