Ticket #2397 (new enhancement)

Opened 13 years ago

Last modified 12 years ago

Auto replace wrong symbols when makes a new dir

Reported by: gonzo111 Owned by:
Priority: trivial Milestone: Future Releases
Component: mc-core Version: 4.7.4
Keywords: Cc: gonzo111@…, zaytsev, gotar@…
Blocked By: Blocking:
Branch state: no branch Votes for changeset:

Description

When I make a new dir (F7) for torrents download, like that
"Кулак легенды: Возвращение Чен Чжен / Jing mo fung wan: Chen Zhen (Вэй Кеунг Лау / Wai Keung Lau) [2010 г., боевик, драма, история, DVDRip]"
Windows can auto replace not right symbols into spaces,like that
"Кулак легенды Возвращение Чен Чжен Jing mo fung wan Chen Zhen (Вэй Кеунг Лау Wai Keung Lau) 2010 г., боевик, драма, история, DVDRip"
Can you add that mc, do this thins too, please..

Change History

comment:1 Changed 13 years ago by x905

no need to replcae, but make a dir with desired name

comment:2 Changed 13 years ago by zaytsev

  • Cc zaytsev added

I also think that it's a very bad idea, at least if it is enabled by default.

comment:5 follow-ups: ↓ 6 ↓ 7 Changed 13 years ago by gonzo111

When I make a new dir (F7)
"Кулак легенды: Возвращение Чен Чжен / Jing mo fung wan: Chen Zhen (Вэй Кеунг Лау / Wai Keung Lau) [2010 г., боевик, драма, история, DVDRip]"

mc makes dir
"Кулак легенды: Возвращение Чен Чжен"
its not good

comment:6 in reply to: ↑ 5 Changed 13 years ago by x905

Replying to gonzo111:

When I make a new dir (F7) ...

yes, its not good - mc must create dir with name as you enter, but replace '/' with '<space>' is unacceptable

comment:7 in reply to: ↑ 5 Changed 13 years ago by gotar

  • Priority changed from major to trivial
  • Cc gotar@… added

Replying to gonzo111:

When I make a new dir (F7)
"Кулак легенды: Возвращение Чен Чжен / Jing mo fung wan: Chen Zhen (Вэй Кеунг Лау / Wai Keung Lau) [2010 г., боевик, драма, история, DVDRip]"

mc makes dir
"Кулак легенды: Возвращение Чен Чжен"
its not good

No, it's not - mc creates "Кулак легенды: Возвращение Чен Чжен " directory with " Jing mo fung wan: Chen Zhen (Вэй Кеунг Лау " subdirectory containing one more " Wai Keung Lau) [2010 г., боевик, драма, история, DVDRip]" subdirectory, i.e. exactly what you've asked for.

IMHO it's wrong to do character substitution too, just think about mistyping.

What COULD be done to be consistent with terminal tools is adding [ ] create parents option, which when disabled should simply raise an error when trying to create directory with forbidden character ('/').

comment:8 Changed 13 years ago by gotar

...and maybe this error dialog should propose replacing '/' with ' '.

comment:9 Changed 13 years ago by zaytsev

+1

comment:10 Changed 12 years ago by andrew_b

  • Branch state set to no branch
  • Milestone changed from 4.7 to Future Releases
Note: See TracTickets for help on using tickets.