@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.

The scripts

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()

Additional steps to make it work

Possible improvements needed

More scripts?


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.