mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-07-31 12:11:52 -07:00
X.U.Run: Add findFile
This commit is contained in:
@@ -16,6 +16,8 @@
|
|||||||
- It is now ensured that all arguments of `execute` and `eval` are
|
- It is now ensured that all arguments of `execute` and `eval` are
|
||||||
quoted.
|
quoted.
|
||||||
|
|
||||||
|
- Added `findFile` as a shorthand to call `find-file`.
|
||||||
|
|
||||||
### Other changes
|
### Other changes
|
||||||
|
|
||||||
## 0.17.1 (September 3, 2022)
|
## 0.17.1 (September 3, 2022)
|
||||||
|
@@ -75,6 +75,7 @@ module XMonad.Util.Run (
|
|||||||
require,
|
require,
|
||||||
progn,
|
progn,
|
||||||
quote,
|
quote,
|
||||||
|
findFile,
|
||||||
|
|
||||||
-- * Re-exports
|
-- * Re-exports
|
||||||
hPutStr,
|
hPutStr,
|
||||||
@@ -454,6 +455,13 @@ require = inParens . ("require " <>) . quote
|
|||||||
quote :: String -> String
|
quote :: String -> String
|
||||||
quote = inParens . ("quote " <>)
|
quote = inParens . ("quote " <>)
|
||||||
|
|
||||||
|
-- | Call @find-file@.
|
||||||
|
--
|
||||||
|
-- >>> findFile "/path/to/file"
|
||||||
|
-- "(find-file \"/path/to/file\" )"
|
||||||
|
findFile :: String -> String
|
||||||
|
findFile = inParens . ("find-file" <>) . asString
|
||||||
|
|
||||||
-----------------------------------------------------------------------
|
-----------------------------------------------------------------------
|
||||||
-- Batch mode
|
-- Batch mode
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user