TC32: If no files are selected, the %F parameter prevents all other parameters from being sent to the command line
Moderators: Hacker, petermad, Stefan2, white
- ghisler(Author)
- Site Admin
- Posts: 50390
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: TC32: If no files are selected, the %F parameter prevents all other parameters from being sent to the command line
I will check it, thanks. Any others?
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: TC32: If no files are selected, the %F parameter prevents all other parameters from being sent to the command line
I still haven't figured out how it should work. An empty list by %Y is formed when the cursor is on [..] and there is no selection. Where will the file name come from if there is a change to parent under the cursor? Where is the logic?ghisler(Author) wrote: 2023-05-03, 19:39 UTCCombined parameter %Y%y allows empty lists like %Y, but selects file under cursor if nothing is selected
Overquoting is evil! 👎
- ghisler(Author)
- Site Admin
- Posts: 50390
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: TC32: If no files are selected, the %F parameter prevents all other parameters from being sent to the command line
It's when the cursor is standing on a file instead of [..] and nothing is selected. Then %Y%y will select that file and put it in the list, while %Y alone will create an empty list.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: TC32: If no files are selected, the %F parameter prevents all other parameters from being sent to the command line
This does not happen. %Y%y%F always returns the path to the temporary list if the cursor is not on [..], regardless of whether there is a selection.
Overquoting is evil! 👎
- ghisler(Author)
- Site Admin
- Posts: 50390
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: TC32: If no files are selected, the %F parameter prevents all other parameters from being sent to the command line
That's what I wrote in my reply. Or described in different words (from the history):
Combined parameter %Y%y allows empty lists like %Y, but selects file under cursor if nothing is selected
Combined parameter %Y%y allows empty lists like %Y, but selects file under cursor if nothing is selected
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: TC32: If no files are selected, the %F parameter prevents all other parameters from being sent to the command line
2ghisler(Author)
I understood. I thought you were writing about a parameter, not an item in the list being created.
You didn't add the name under the cursor to the list for %Y%F. I think this is an inherently wrong decision. If, in the absence of %Y, we always got a name under the cursor, then there was no point in this possibility disappearing when it was added, because %Y concerns only the creation of an empty list if there is no selection when placing the cursor on [..].
I think you just need to fix it. You don't use the same approach with %S and %R when there is no highlighting for the selected file, which is correct.
I understood. I thought you were writing about a parameter, not an item in the list being created.
You didn't add the name under the cursor to the list for %Y%F. I think this is an inherently wrong decision. If, in the absence of %Y, we always got a name under the cursor, then there was no point in this possibility disappearing when it was added, because %Y concerns only the creation of an empty list if there is no selection when placing the cursor on [..].
I think you just need to fix it. You don't use the same approach with %S and %R when there is no highlighting for the selected file, which is correct.
Overquoting is evil! 👎