Ticket #4132 (new enhancement)

Opened 2 weeks ago

mcedit's 'command/Find declaration' dialogbox width is hardcoded to 64chars

Reported by: dextarr Owned by:
Priority: major Milestone: Future Releases
Component: mcedit Version: master
Keywords: ctag dialog width autoscale Cc:
Blocked By: Blocking:
Branch state: no branch Votes for changeset:

Description

The current CTAGS implementation has a fixed width dialog box:

src/editor/etags.h line 9
#define MAX_WIDTH_DEF_DIALOG 60

Nowadays probably many of us use mc in a bigger terminal than 80x25 so it would be awesome if the dialogbox in question would scale. i have to work with some long variable/function names and ugly nested path components which get really badly truncated in that tiny space.

e.g. the actual dialogbox width could be calculated using the longest 'label_def' (src/editor/editcmd_dialogs.c:456) the listbox get filled with. In case that turns out too wide then the COL of the terminal - some chars. This would/could still also be backward compatible for the 80x25 folks).

thanks for considering!

dextarr

Note: See TracTickets for help on using tickets.