[Github-comments] [geany/geany] Shortcut suggestions (#1929)
kuchaguangjie
notifications at xxxxx
Tue Aug 28 04:22:50 UTC 2018
@codebrainz Just make it work on windows with command only without script file as suggested.
**Commands:**
* lower
`python -c "import sys; sys.stdout.write(sys.stdin.read().lower())"`
* upper
`python -c "import sys; sys.stdout.write(sys.stdin.read().upper())"`
* capital
`python -c "import sys; sys.stdout.write(sys.stdin.read().title())"`
**But it's a bit different from linux**, to make it work need to make sure following tips are applied.
**Tips:**
- Make sure **python** is in `PATH`.
Refer: https://stackoverflow.com/questions/11439607/geany-unable-to-execute-python
- In the script line, need to use double quote, other than single quote, otherwise will get error.
e.g `python -c "import sys; sys.stdout.write(sys.stdin.read().lower())"`
Refer: https://stackoverflow.com/a/39401530
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/1929#issuecomment-416446747
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20180827/866e667c/attachment.html>
More information about the Github-comments
mailing list