git style quoting for ActionItemOther
Added StringContainingQuotedPath, which is used for ActionItemOther. In the process, checked every ActionItemOther for those containing filenames, and made them use quoting. Sponsored-by: Graham Spencer on Patreon
This commit is contained in:
parent
d689a5b338
commit
2ba1559a8e
41 changed files with 158 additions and 89 deletions
|
@ -21,10 +21,11 @@ seek = withWords (commandAction . start)
|
|||
|
||||
start :: [String] -> CommandStart
|
||||
start ps@(keyname:file:[]) = starting "setkey" ai si $
|
||||
perform (toRawFilePath file) (keyOpt keyname)
|
||||
perform file' (keyOpt keyname)
|
||||
where
|
||||
ai = ActionItemOther (Just file)
|
||||
ai = ActionItemOther (Just (QuotedPath file'))
|
||||
si = SeekInput ps
|
||||
file' = toRawFilePath file
|
||||
start _ = giveup "specify a key and a content file"
|
||||
|
||||
keyOpt :: String -> Key
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue