FarManager icon indicating copy to clipboard operation
FarManager copied to clipboard

Support for new line ($_) in prompt

Open iddq opened this issue 6 months ago • 7 comments

Description of the new feature or improvement

I would like to kindly request the addition of support for a special sequence (e.g., $_) in the prompt that allows inserting a new line. Thank you.

Proposed technical implementation details (optional)

No response

iddq avatar Jul 02 '25 09:07 iddq

@iddq it is not currently supported only because multiline edit controls are not supported (the command line is actually an edit control). Unfortunately, it is a slightly bigger task and we do not have any ETA yet.

alabuzhev avatar Jul 02 '25 18:07 alabuzhev

it is not currently supported only because multiline edit controls are not supported (the command line is actually an edit control)

If I understand the suggestion correctly, the edit-control part of the command line does not need to become multi-line. The user is asking to be able to put more context to the prompt and spread it across more than one line. E.g. full long CWD in the first line and full-width editable command line in the second line.

HamRusTal avatar Jul 02 '25 21:07 HamRusTal

@HamRusTal thanks, good point.

If it's about something like

Image

- it's probably doable.

alabuzhev avatar Jul 02 '25 21:07 alabuzhev

If it's about something like

I'd highlight that the lengths of line1 and line2 do not affect the screen position of the input control.

HamRusTal avatar Jul 02 '25 23:07 HamRusTal

E.g. full long CWD in the first line and full-width editable command line in the second line.

Exactly! Thank you!

Image

iddq avatar Jul 04 '25 06:07 iddq

@HamRusTal thanks, good point.

If it's about something like

Image

  • it's probably doable.

How have you currently set this up for creating the image?

iddq avatar Jul 26 '25 13:07 iddq

How have you currently set this up for creating the image?

It is obviously photoshopped. By 'doable' I mean that it is implementable in principle with some code changes, not that it is already possible.

alabuzhev avatar Jul 27 '25 14:07 alabuzhev