@eht16 @codebrainz
I have defined 2 very simple python scripts for to lower / upper command separately, based on @eht16 's script, and assigned shortcut CTRL + L
and CTRL + U
to them respectively, it works on my Linux machine now.
geanyLowerCase.py:
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# geany - customized formatting - to lower case,
import sys
def lower_case(string):
return string.lower()
def main():
data = sys.stdin.read()
sys.stdout.write(lower_case(data))
if __name__ == '__main__':
main()
geanyUpperCase.py:
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# geany - customized formatting - to upper case,
import sys
def upper_case(string):
return string.upper()
def main():
data = sys.stdin.read()
sys.stdout.write(upper_case(data))
if __name__ == '__main__':
main()
$PATH
.x
is the order of you new command when define it,shebang
part.aBc
-> Abc
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.