Global clipboard in !Edit coming soon:-)
Chris Evans (457) 1614 posts |
I’ve just found out that ROOL demonstrated a yet to be released version of !Edit at the London Show, apparently it sported full clipboard cut and paste (ctrl-c, ctrl-x and ctrl-v). |
Jeffrey Lee (213) 6048 posts |
Surely the only thing people use !Edit for is to read the readme explaining how to install !StrongED? ;-) |
Chris Hall (132) 3554 posts |
!Zap surely rather than !StrongEdit? |
Steve Pampling (1551) 8155 posts |
Speaking as a SE user, I think you’re in danger of being Zapped :) |
Jeffrey Lee (213) 6048 posts |
Yes, I’d have been disappointed if nobody had taken the bait :-) Those !Edit changes do sound useful, though. |
Chris Evans (457) 1614 posts |
Not being a programmer most of the advantages of ZAP and StrongEd are not relevant to me. Also I have to do simple text editing on many different RISC OS machines often belonging to customers so !Edit is often the only editor available to me. I wonder what other nice goodies ROOL have up their sleeve that haven’t made into the public sources yet? |
Chris Hall (132) 3554 posts |
What would be really useful for !Edit is to have a script that would perform sequential replace operations. A command file that could be executed on the contents of the file being edited. For example: |
Colin (478) 2433 posts |
Well that is good news. I prefer edit’s copy and move myself – I find it quicker – but realise that I am a majority of 1 and it doesn’t work well with other programs. Hopefully it will coinside with cut and paste in the wimp. Bad news about control K proliferation though, with the advent of control K deleting files in the filer I already change edit and srcedit back to control X. I live in fear of the filer claiming the input focus without me realising and deleting who knows what. It looks like I’ll have to add draw to the list of programs to change. I’d really like to be able to disable filer keyboard shortcuts. |
Steve Revill (20) 1361 posts |
We’ve got a prototype RISC OS kernel with symmetric multiprocessing support, Wi-Fi support, IPv6 and a WebKit port with fully-working JavaScript here – we’ve been using them for years in the ROOL offices – but you can’t have them. So ner. (We don’t really.) |
Steve Pampling (1551) 8155 posts |
RO6 fanboi mode: Don’t care, I’d rather have rounded action buttons /fanboi :) |
Rick Murray (539) 13806 posts |
That’s good for the iMX6 board.1
On-board or USB dongle?2
Haha – I think hell will freeze over before Orange get their act together regarding that. They say IPv6 will be around in 2017. I’m not holding my breath, the latest Livebox firmware blows, and they still can’t sort out the SSL certs on their own site…3
Given that it’s an ARM, wouldn’t it be quicker to make an iOS emulation layer4 and just run Dolphin or something? [don’t know if it is possible to easily extract Safari] Note: I don’t want to be seen as a “fanboi”, but Safari actually works which is a hell of a lot more than I can say for the stock Android 2.x browser. I understand that recent versions of Android have ditched it in favour of Chrome – what more need I say?
Um. Yeah. From time to time I see screenshots with the ROLtd rounded buttons and, wow, it looks really really strange. However, that said, if that’s what you miss most about RISC OS 4.whatever, I guess somebody might look at twiddling the Wimp’s icon drawing code. Just understand that it’s probably WAY down the bottom of the to-do list, right there with such luxuries as floppy disc handling5 and hardware video decoding6. 1 Might happen sooner than you think. Who is going to build a board with a multicore CPU and then only use one of its cores? 2 It’s a shame the things don’t behave like the Vonets adaptor – a sort of “go find a signal and talk to it” high level interface. That would make things easier. 3 You can tell I’m a fan, can’t you? 4 Just a little weekend hack for the dedicated geek… 5 Tested with a FAT disc and USB FDC, always tells me the drive is empty… 6 Would be lovely, but I don’t see it happening any time soon. |
Steve Pampling (1551) 8155 posts |
Me? Er, Extraction of urea. |
Rick Murray (539) 13806 posts |
Ah, nasty stuff, that which the enzyme xanthine oxidase produces from xanthine and hypoxanthine (which in turn are produced from other purines). Sorry. Err, was the sarcasm of my post above a bit too subtle? Normal tactless service shall be resumed… ;-) |
GavinWraith (26) 1563 posts |
Nowt to do with Edit, really, but all you need is RiscLua. Put the !Apply utility on the iconbar. Drag your textfile to it. Then drag a script to it.
|
Steve Pampling (1551) 8155 posts |
Or other existing tools |
Fred Graute (114) 645 posts |
Ctrl-K would be for delete outright not cut.
What? You’d rather use something that had its last stable release more than a decade ago over an application that had its last stable release just over 6 months ago (and latest test release just over 2 weeks ago)? The mind boggles. ;-)
See you do want StrongED as you can write a script, in just about any language, and apply it to a single text or all texts.
CnP in the Wimp is quite different from regular applications as the Wimp isn’t a task and so cannot send/receive messages. You need to use the Clipboard module to do the messaging on the Wimp’s behalf. (The Clipboard module seems to have vanished though, I sometimes wonder why I bothered to complete its clipboard support.)
Use a keymapper and map them to keys that have no effect? Unless, of course, you don’t want the Filer to grab the input focus in the first place. |
Chris Hall (132) 3554 posts |
See you do want StrongED as you can write a script, in just about any language, and apply it to a single text or all texts. I have never managed to work out how to do this. What is the equivalent to the search string ‘string’ ‘one or more’ ‘not’ ‘LF’ ‘LF’ which finds the remainder of a line after a particular string? In !Edit this would be ‘text^~$$’ which you could then replace by ‘newtext?0 more text ?0$’. FOr example to turn a list of filenames into a rename filename new filename. |
Steve Pampling (1551) 8155 posts |
Sir, Sir, I told him so :)
This might help with many aspects of use. |
Chris Hall (132) 3554 posts |
It helps (for which many thanks), but… I can see how to replace ‘foo’ with ‘bar’ but I need to know what characters I should use in the search string for ‘one or more’ (Edit uses ^) ‘found string 2’ (Edit uses ‘?1’) etc. Also do I use ["foo*"+CHR$(10)] or [“foo*[LF]”] I would definitely write my script in BASIC but there doesn’t seem to be an example? |
GavinWraith (26) 1563 posts |
See http://www.riscos.info/index.php/Scripting for the likely reason for this. |
Chris Hall (132) 3554 posts |
I think I’ll stick with !Zap (the f7 function is so useful as it is in BasicEdit to show all lines containing the search text) and !Edit (with a written list of the search/replace strings to use, one after another). I’m afraid I don’t like C and similar languages. I tend to stick to machine code, assembler and BBC BASIC (both RISC OS and Windows) where possible. I do use Perl and Javascript for web applications and forced myself to learn these (I did these as part of a retraining package when I retired in 2005). When SMART (a wordprocessor and database suite) changed to use C-like programmes for scripts rather than BASIC-like programmes for scripts, I abandoned it. I would therefore consider using Perl for the script – is there an example for this? |
Fred Graute (114) 645 posts |
I’d characterise StrongED’s search syntax as different rather than more complicated. If you like you can use regex for searching (but not S&R) by loading the RegEx module.
Examples can be found in All that you have to do is read the input file from If the language supports C style redirection then you don’t even have to do that, it’s done by the script binding in ScriptSED. Here’s the binding for Lua:
F7 opens the search dbox so is equivalent to F2 in StrongED. In BASIC you often want to find a variable or procedure name, with StrongED this is very easy just put the cursor in the name and press c-F to find all occurrences in the text (use cs-F to search through all open texts). Another handy option is to jump straight to where a procedure is defined, even when it’s in a different file which is useful for sources made up of multiple files.
But you need to copy these to the search dbox each time you want to use them right? Using a script is much easier. In addition StrongED has a global file to hold often used search/replace expression which can be referred to by their name. You can also put StrongED functions in an obey file and apply the file to a text. |
Chris Hall (132) 3554 posts |
as you can write a script, in just about any language, As I already know Perl (and BASIC is a non-starter) it seems the obvious choice. Is there an equivalent binding for Perl please? Oddly !StrongEd (sometimes) seems to hide the line numbers of a BASIC programme. How do I insert lines making sure that the existing numbers do not change (adding a few new lines for example in the gaps between lines (say) 1210 and 1220)? When I write documentation I often say things like ‘see lines xxxx to yyyy’ and only change this when I do a major update – otherwise I just add a line or two and and, perhaps, a new procedure at the end. But you need to copy these to the search dbox each time you want to use them right? Using a script is much easier. Yes, in principle. But if I only need to do the edit a few times a year and there are only about six search/replace operations to do in sequence then it is not worth learning a new language. |
Fred Graute (114) 645 posts |
Yes, there is a binding for Perl.
There’s an option to control if line numbers are to be stripped (just like in Edit). If line numbers are not stripped then they’ll be part of the actual text, again like Edit.
As the line numbers are part of the text it’s you that enters the line number, StrongED won’t insert one automatically, so you have full control over them. |