Author Topic: How to find text in Oxygenbasic?  (Read 165 times)

0 Members and 1 Guest are viewing this topic.


  • Hero Member
  • *****
  • Posts: 648
How to find text in Oxygenbasic?
« on: April 26, 2018, 11:56:08 PM »
Hi Charles,

for searching text or terms in files I use a tool which is called TextCrawler. There is also a free version which is very good for testing. Other tools exist too.

But in Oxygenbasic there is also \tools\FindEd.o2bas. You use it with Oxide but it can also be compiled as a stand-alone program. I did this and moved the exe to the root folder of Oxygenbasic. It works quit nice although it is not perfect.

How must the line number be interpreted? In my example my editor shows the searched text in line 33, col 30, or position 241. How can this be compared with the number 2013?


Charles Pegge

  • Admin Support Member
  • *****
  • Posts: 3719
    • Oxygen Basic
Re: How to find text in Oxygenbasic?
« Reply #1 on: April 27, 2018, 01:05:01 AM »
Hi Roland,

The numbers in column 3 are character positions in the file being displayed in the next panel. When you click on the numbers, or keyup and keydown, the file text position will change accordingly. You can also edit the file text and save it with ctrl-S. This is an efficient way of making minor changes to multiple files.

In the leftmost panel you can list clusters of filepaths, separated by blank lines, and optionally do recursive searching on each filepath: -r. To select a cluster, click on the first entry of the cluster.

FindEd needs a cosmetic makeover, but I rely on it increasingly, especially for tracking symbols in o2 source code.

I run it JIT from source script, as it only takes a fraction of a second to be up and running.


  • Hero Member
  • *****
  • Posts: 648
Re: How to find text in Oxygenbasic?
« Reply #2 on: April 27, 2018, 07:15:53 AM »
I understand. Finded counts \r\n as two characters and then the positioning fits. What I did probably wrong was omitting the blank lines in the left panel. Therefore my filter should look like this:

-r .\*.o2bas

-r .\*.inc

-r .\*.h

-r .\*.bas

Entering an item or text in the Edit field on top and pressing Enter I will find all occurrences in the files of all the folders of OxygenBasic. FindEd is like a mini version of my textcrawler, but it does its job very well.