Bug 372944 - Introduce 'new line' as possible separator in %aList
Summary: Introduce 'new line' as possible separator in %aList
Status: RESOLVED FIXED
Alias: None
Product: krusader
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Krusader Bugs Distribution List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-26 09:51 UTC by CrucialKrusader
Modified: 2018-05-06 00:15 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description CrucialKrusader 2016-11-26 09:51:53 UTC
## The Problem:

The iniablity of %aList to use 'new line' as a separator has lead to quirky workarounds when e.g. trying to copy the paths of of the currently selected files into a new-line-separated list in the clipboard.

See this thread in the krusader-users Google Groups mailing list for details and examples:

https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!topic/krusader-users/Td1EjzyN7EQ 

(krusader-users › Make 'copy names to clipboard' more versatile and more prominent (like in Total Commander))


## Expected behavior:

A new line sign can be used as separator in %aList, like in this example (\n stands for 'new line'):

%_Clipboard($(echo -e "%aList("Selected", "\n", "", "")%"))%


## Current behavior:

%aList does not allow to use 'new line' as separator.
Comment 1 Alex Bikadorov 2016-11-26 18:31:56 UTC
Git commit a79c880760c6109c620ac39e56ec83e4ba54aa2e by Alexander Bikadorov.
Committed on 26/11/2016 at 18:15.
Pushed by abikadorov into branch 'master'.

UserAction: support for newline ("\n") and tab ("\t") characters in separator for file list

M  +5    -1    krusader/UserAction/expander.cpp

https://commits.kde.org/krusader/a79c880760c6109c620ac39e56ec83e4ba54aa2e