FarManager icon indicating copy to clipboard operation
FarManager copied to clipboard

Окно поиска и замены: неправильно отформатирован исходный текст для замены

Open drweb86-work opened this issue 6 years ago • 5 comments

Если в поле поиска вставить таб, то после замены - отображается буква "о" в диалоге.

image

drweb86-work avatar May 28 '18 12:05 drweb86-work

И что тут неправильно? Посмотрите как выглядит Tab в файле в режиме hex просмотра.

w17 avatar May 28 '18 13:05 w17

Я к тому, может показывать текст - как он выглядит в текстбоксе?

drweb86-work avatar May 28 '18 17:05 drweb86-work

может показывать текст - как он выглядит в текстбоксе?

Sounds reasonable, but in the textbox it can be either "→ " if Tab is the last character or " " if not. Should we use arrows or spaces? Should we try to position tab stops correctly, e.g.:

01234567890123456789
→   a→  bb→ ccc→dddd
→   a→  b→  c→  d

, or just use N spaces, e.g.:

01234567890123456789
→   a→   bb→   ccc→   dddd
→   a→   b→   c→   d

? If "correctly", what should be the starting point? The beginning of the searched string (as in the dialog) or the beginning of the found string (as in the editor)?

alabuzhev avatar May 28 '18 19:05 alabuzhev

Sounds reasonable,

Sounds questionable. Why only Tab? What about CR,LF,BELL,...? What about searching visualisation characters →, ... ?

w17 avatar May 28 '18 20:05 w17

IMO "unprintable" chars would be better to show by some "friendly" names like <TAB> or something similar. Use of any symbols will confuse.

montoner0 avatar May 30 '21 14:05 montoner0