id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	blockedby	blocking	branch_state	votes
4132	mcedit's 'command/Find declaration' dialogbox width is hardcoded to 64chars	dextarr	andrew_b	"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
"	enhancement	closed	major	4.8.27	mcedit	master	fixed	ctag dialog width autoscale				merged	committed-master
