Bug 372944

Summary: Introduce 'new line' as possible separator in %aList
Product: [Applications] krusader Reporter: CrucialKrusader <krusader>
Component: generalAssignee: Krusader Bugs Distribution List <krusader-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: bugs.kde.org, krusader-bugs-null
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

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