[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [StrongED] Re: Fresh 4.69a7 installation



In message <1db8271f53.Iyonix@xxxxxxxxxxxxxxxxxxx>
          Ron <iyonix@xxxxxxxxxxx> wrote:

> In message <9dcae21e53.fjgraute@xxxxxxxxx>
>           Fred Graute <fjgraute@xxxxxxxxx> wrote:
>
> > I've had a quick stab at modifying the file history so that it remembers
> > the cursor position. If you now open a file via iconbar menu -> History,
> > it opens the file with the cursor in the same place as before.
> >
> > It seems to work fine (once I had realised that remembering the actual
> > address is a stupid idea, you need to remember the cursor position as
> > an offset from start of file). Would this be of use to you?
> >
> I'm not sure, The history list could get big and tedious to use compared
> to the normal opening of a file from the filer.

When you load a file it has to be checked if it's in the file history
so that it can be removed from that (file history and LoW are mutually
exclusive). As part of this the cursor offset could be read and applied,
this way you can open a file normally but if it's in the file history
the old cursor position would be restored.

> I suppose a project style approach where you only have a project history
> in the particular StrongEd instance might work.
> If we cant save multiple StrongEds, maybe an internal StrongEd project
> organiser.

There's already a kind of project organiser; the List-of-Windows window.
Load all the files in your project, then c-L to open LoW and click Menu
over it. Open the Save submenu (make sure Selection is unticked) and
save it somewhere convenient. Next time you want to work on the project
double-click the saved file to load all your files.

You can do this for as many projects as you like, and if you re-save the
LoW each time you end a session then all view positions, cursor
positions, marks, etc will be restored next time you open the project.

> I am refraining from saying why not an IDE like Geany, as we have a lot
> of the tools in RISC OS and they dont present such a big challenge to
> use as they would if they were outside the IDE in Linux.
> I am thinking of !Textseek compared to Geany's 'Find in Files' as an
> example.

StrongED has a 'Find in files' extension on Ctrl-F11 which searches all
files in the same directory as the current file (requires Lua). A much
more powerful version is among the things to be released.

> 'Find in Files' will search your project directory, but it really needs
> to be able to search more than one location so that the GCC headers can
> be searched simultaneously.

Hmm, I did create something that might be extended to allow this. When
the ROOL sources became available I looked at it out of curiosity but it
wasn't always easy to find where something was defined. So I wrote a
small app in Lua to help me find things like constant definitions,
macros and subroutines.

The app would scan the component's directory, and the Hdr: path with the
results being cached on a per file basis and only rescanned if the file
they came from had been altered.

It worked reasonably well and it might be possible to extend it so that
it's suitable for other projects/scenarios.

> Then all the components to a function can be viewed in most cases.
> The way around this will be to have the project directory in the same
> proximity as the cross directory in Linux or in RISC OS, !GCC.

Perhaps I should revisit ctags support in StrongED? I did look at this
ages ago but never took it further.

Cheers,
Fred.

-- 
StrongED Developer
http://www.stronged.iconbar.com/

-- 
To unsubscribe send a mail to StrongED+unsubscribe@xxxxxxxxxxxxxx