LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 12-10-2019, 02:18 AM   #1
brokenkeys
LQ Newbie
 
Registered: Jul 2019
Location: Croatia
Distribution: Artix, Archlinux, Xubuntu
Posts: 20

Rep: Reputation: Disabled
Some Geany (text editor) Questions


1. How do I send log message to Messages Window?
2. How to use 'selected text to bash' option, in menu: "Edit->Format->Send selection to->..."?

Thanks
 
Old 12-10-2019, 04:36 AM   #2
Samsonite2010
Member
 
Registered: Apr 2015
Distribution: Debian
Posts: 267
Blog Entries: 1

Rep: Reputation: 117Reputation: 117
1. I would suggest searching for "messages" within the Geany manual (https://www.geany.org/manual/current...eany-workspace).

You will see that your question is not valid or at least the answer is "you cannot do that".

Messages - Results of 'Find Usage', 'Find in Files' and other actions


2. Sending to Bash would probably mean sending to Terminal where Bash is the shell? Why not use Edit > Commands > Send selection to Terminal?
 
1 members found this post helpful.
Old 12-10-2019, 10:54 AM   #3
brokenkeys
LQ Newbie
 
Registered: Jul 2019
Location: Croatia
Distribution: Artix, Archlinux, Xubuntu
Posts: 20

Original Poster
Rep: Reputation: Disabled
I want to have whatever is logged in for example /var/log/php_errors.log appear
in Messages Window. I know I could use built-in terminal for that...

And about text-bash, yes but how to use 'selected text to bash' option, in menu: "Edit->Format->Send selection to->..."?
 
Old 12-10-2019, 11:24 AM   #4
Samsonite2010
Member
 
Registered: Apr 2015
Distribution: Debian
Posts: 267
Blog Entries: 1

Rep: Reputation: 117Reputation: 117
Quote:
Originally Posted by brokenkeys View Post
I want to have whatever is logged in for example /var/log/php_errors.log appear
in Messages Window. I know I could use built-in terminal for that...
But the Messages window is just part of the application, it is not something you can use for your own purpose - as mentioned in the Geany manual and link provided earlier.

Quote:
Originally Posted by brokenkeys View Post
And about text-bash, yes but how to use 'selected text to bash' option, in menu: "Edit->Format->Send selection to->..."?
That is a custom configuration you set for yourself - you put in an application name. You could make the command "bash", but there is no guarantee that bash will know how to handle being sent a text string. Just read the manual: https://www.geany.org/manual/current...ustom-commands
 
Old 12-11-2019, 06:00 AM   #5
brokenkeys
LQ Newbie
 
Registered: Jul 2019
Location: Croatia
Distribution: Artix, Archlinux, Xubuntu
Posts: 20

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Samsonite2010 View Post
But the Messages window is just part of the application, it is not something you can use for your own purpose - as mentioned in the Geany manual and link provided earlier.
I thought that Status window was used for that.

Anyway, i've solved "Send selection to" problem.
For example, geanycmd.sh added to "Edit->Format->Send selection->Set Custom Commands" will change
selected text to base64.

Code:
#geanycmd.sh file
#!/bin/bash

read VAR
echo $VAR | base64

Last edited by brokenkeys; 12-11-2019 at 06:01 AM.
 
Old 12-11-2019, 09:47 AM   #6
Samsonite2010
Member
 
Registered: Apr 2015
Distribution: Debian
Posts: 267
Blog Entries: 1

Rep: Reputation: 117Reputation: 117
Ah cool, so you just write a bash script and point to it.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Getting started with the Geany text editor LXer Syndicated Linux News 0 03-06-2019 08:10 AM
LXer: Geany A Lightweight IDE Or Code Editor For Programmers LXer Syndicated Linux News 0 07-08-2017 10:45 PM
Geany Highlighted Text Line Count sweeny_here Linux - Software 3 03-18-2016 01:48 AM
[SOLVED] return text from geany or other editor to IDE after saving and closing the editor mtdew3q Programming 4 05-15-2013 10:40 PM
LXer: Fast, powerful Geany editor offers IDE features LXer Syndicated Linux News 0 07-09-2008 01:20 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration