Re: [9fans] Autoexpand in sam
i would use ,|spell which replaces the current window with sam’s output, then, having taken note of the errors, type u to undo and fix the mistakes. this is just personal choice of course. -Steve -- 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/T0e2541a723ce90e5-M527f0e5783c978ab1c146238 Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
Re: [9fans] Autoexpand in sam
Thank you Silas. You have helped solve the problem. I was trying to access this file after I had exited sam, rather than from within it. -- 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/T0e2541a723ce90e5-Mcd8ff4eb0c8fc62cc701245f Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
Re: [9fans] Autoexpand in sam
Your error mean spell's output is too large to fit within sam's command window. I don't have much experience with spell but I'd suggest correcting some of the typos found and running again or opening via B /tmp/sam.err and examining the typos found. Silas -- 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/T0e2541a723ce90e5-M00c1d332035ddbd98d76091f Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
Re: [9fans] Autoexpand in sam
Having spoken of ,>spell I seem now to betting an unusual message. If I run ,>spell on my current file within sam, I get (sam: more in /tmp/sam.err) . Anyone know what this means and how it can be corrected? -- 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/T0e2541a723ce90e5-Mb45b8da6a456dd0dd8c0bb8a Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
Re: [9fans] Autoexpand in sam
I am very grateful for these. Thanks for posting. -- 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/T0e2541a723ce90e5-Md16e46b3e5f16e507a609910 Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
Re: [9fans] Autoexpand in sam
Another related convenience is to have a rule somewhere near the bottom of your plumbing file that pops up a window and prints the dictionary listing for the word you plumbed. If I could remember who it was I would thank the person who recommended this to me because I use it all the time. If you are confident with the first part of a word look(1) could be handy. You could also write a filter that transposes letters until it finds a match in /lib/words. Some toys along these lines: http://runjimmyrunrunyoufuckerrun.com/rc/anagram http://runjimmyrunrunyoufuckerrun.com/rc/bee umbraticus -- 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/T0e2541a723ce90e5-M58401f8a2d81fe9d6ffc48f7 Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
Re: [9fans] Autoexpand in sam
For sam, the best bet is to feed text into spell and separately use dict for partial word match and definitions. Using acme with aspell and adict helpers (/acme/bin/source) works reasonably well. Select some text, feed it to aspell (>aspell), then do partial lookups of the misspelled words in the adict window. On Wed, Sep 22, 2021 at 1:15 PM wrote: > > Is there a way to implement autoexpand and autocorrect in sam in any way, > i.e. for common spelling mistakes and commonly used phrases? > > I don't need anything too sophisticated. > > Thanks. > > 9fans / 9fans / see discussions + participants + delivery options Permalink -- 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/T0e2541a723ce90e5-Mb3a6fa8e3ece9bc2f6f0bead Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
Re: [9fans] Autoexpand in sam
On Wed, Sep 22, 2021, at 9:14 PM, revcomni...@gmail.com wrote: > Is there a way to implement autoexpand and autocorrect in sam in any > way, i.e. for common spelling mistakes and commonly used phrases? I once wrote a script with several regexp substitutions, but gave up when I realised I'd need to implement an entire dictionary. I often typed 'ign' for 'ing', but words legitimately ending in 'ign' are surprisingly common. I tried to make the regexp smarter, but ended up using it on individual words, double-clicking each incorrect word and running |ac . This was quick enough in Acme, perhaps not bad in Sam. I'd attach the script, but it's long since lost now. -- 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/T0e2541a723ce90e5-Mdd6a9a834feaa1e84d555c90 Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
Re: [9fans] Autoexpand in sam
No problem. Thanks. Yes, I use and love ,>spell. :) -- 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/T0e2541a723ce90e5-Me2ac4c31218508cf798ebe8f Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
Re: [9fans] Autoexpand in sam
> autocorrect in sam not really but you can ,>spell -- 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/T0e2541a723ce90e5-Mbb8fbc041f3be84400daf880 Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
[9fans] Autoexpand in sam
Is there a way to implement autoexpand and autocorrect in sam in any way, i.e. for common spelling mistakes and commonly used phrases? I don't need anything too sophisticated. Thanks. -- 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/T0e2541a723ce90e5-M9fd6984628a79bf758af4f1b Delivery options: https://9fans.topicbox.com/groups/9fans/subscription