rshell and Geany

Discussion about programs, libraries and tools that work with MicroPython. Mostly these are provided by a third party.
Target audience: All users and developers of MicroPython.
Post Reply
User avatar
tsjoiner
Posts: 22
Joined: Tue Sep 05, 2017 3:09 pm
Location: Alberta Beach, Alberta, Canada

rshell and Geany

Post by tsjoiner » Sat Sep 29, 2018 1:44 am

I am testing various non-default editors with rshell. Nano and Leafpad open edit and save no problem. Geany is giving me some trouble. If I use the --editor geany option when invoking rshell I can edit and save to the temporary file. If an instance of Geany is already open then I am unable to save the file. The option [geany -i] will open a new instance and solve this problem - I hope. Is it possible to include this Geany option within rshell invocation?

Code: Select all

rshell --editor [geany -i] --buffer-size=30 -p /dev/ttyUSB0

SpotlightKid
Posts: 463
Joined: Wed Apr 08, 2015 5:19 am

Re: rshell and Geany

Post by SpotlightKid » Sat Sep 29, 2018 11:59 am

Code: Select all

#!/bin/bash
# ~/bin/geany-new

exec geany -i "$@"

Code: Select all

rshell --editor geany-new --buffer-size=30 -p /dev/ttyUSB0
:)

User avatar
tsjoiner
Posts: 22
Joined: Tue Sep 05, 2017 3:09 pm
Location: Alberta Beach, Alberta, Canada

Re: rshell and Geany

Post by tsjoiner » Sat Sep 29, 2018 12:49 pm

Good solution - does what I need and reminds me to think outside the box.
Thank you :D

Post Reply