* [9fans] Autoexpand in sam @ 2021-09-22 20:14 revcomninos 2021-09-22 22:51 ` umbraticus ` (2 more replies) 0 siblings, 3 replies; 11+ messages in thread From: revcomninos @ 2021-09-22 20:14 UTC (permalink / raw) To: 9fans [-- Attachment #1: Type: text/plain, Size: 423 bytes --] 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 [-- Attachment #2: Type: text/html, Size: 998 bytes --] ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [9fans] Autoexpand in sam 2021-09-22 20:14 [9fans] Autoexpand in sam revcomninos @ 2021-09-22 22:51 ` umbraticus 2021-09-23 0:51 ` revcomninos 2021-09-23 3:08 ` Ethan Gardener 2021-09-23 5:29 ` Skip Tavakkolian 2 siblings, 1 reply; 11+ messages in thread From: umbraticus @ 2021-09-22 22:51 UTC (permalink / raw) To: 9fans > 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 ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [9fans] Autoexpand in sam 2021-09-22 22:51 ` umbraticus @ 2021-09-23 0:51 ` revcomninos 0 siblings, 0 replies; 11+ messages in thread From: revcomninos @ 2021-09-23 0:51 UTC (permalink / raw) To: 9fans [-- Attachment #1: Type: text/plain, Size: 280 bytes --] 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 [-- Attachment #2: Type: text/html, Size: 781 bytes --] ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [9fans] Autoexpand in sam 2021-09-22 20:14 [9fans] Autoexpand in sam revcomninos 2021-09-22 22:51 ` umbraticus @ 2021-09-23 3:08 ` Ethan Gardener 2021-09-23 5:29 ` Skip Tavakkolian 2 siblings, 0 replies; 11+ messages in thread From: Ethan Gardener @ 2021-09-23 3:08 UTC (permalink / raw) To: 9fans On Wed, Sep 22, 2021, at 9:14 PM, revcomninos@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 ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [9fans] Autoexpand in sam 2021-09-22 20:14 [9fans] Autoexpand in sam revcomninos 2021-09-22 22:51 ` umbraticus 2021-09-23 3:08 ` Ethan Gardener @ 2021-09-23 5:29 ` Skip Tavakkolian 2021-09-23 5:54 ` umbraticus 2 siblings, 1 reply; 11+ messages in thread From: Skip Tavakkolian @ 2021-09-23 5:29 UTC (permalink / raw) To: 9fans 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 <revcomninos@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 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 ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [9fans] Autoexpand in sam 2021-09-23 5:29 ` Skip Tavakkolian @ 2021-09-23 5:54 ` umbraticus 2021-09-23 9:22 ` revcomninos 0 siblings, 1 reply; 11+ messages in thread From: umbraticus @ 2021-09-23 5:54 UTC (permalink / raw) To: 9fans 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 ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [9fans] Autoexpand in sam 2021-09-23 5:54 ` umbraticus @ 2021-09-23 9:22 ` revcomninos 2021-09-25 16:07 ` revcomninos 0 siblings, 1 reply; 11+ messages in thread From: revcomninos @ 2021-09-23 9:22 UTC (permalink / raw) To: 9fans [-- Attachment #1: Type: text/plain, Size: 279 bytes --] 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 [-- Attachment #2: Type: text/html, Size: 771 bytes --] ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [9fans] Autoexpand in sam 2021-09-23 9:22 ` revcomninos @ 2021-09-25 16:07 ` revcomninos 2021-09-25 18:45 ` Silas 0 siblings, 1 reply; 11+ messages in thread From: revcomninos @ 2021-09-25 16:07 UTC (permalink / raw) To: 9fans [-- Attachment #1: Type: text/plain, Size: 435 bytes --] 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 [-- Attachment #2: Type: text/html, Size: 1225 bytes --] ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [9fans] Autoexpand in sam 2021-09-25 16:07 ` revcomninos @ 2021-09-25 18:45 ` Silas 2021-09-26 4:40 ` revcomninos 0 siblings, 1 reply; 11+ messages in thread From: Silas @ 2021-09-25 18:45 UTC (permalink / raw) To: 9fans [-- Attachment #1: Type: text/plain, Size: 491 bytes --] 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 [-- Attachment #2: Type: text/html, Size: 2024 bytes --] ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [9fans] Autoexpand in sam 2021-09-25 18:45 ` Silas @ 2021-09-26 4:40 ` revcomninos 2021-09-26 7:42 ` Steve Simon 0 siblings, 1 reply; 11+ messages in thread From: revcomninos @ 2021-09-26 4:40 UTC (permalink / raw) To: 9fans [-- Attachment #1: Type: text/plain, Size: 366 bytes --] 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 [-- Attachment #2: Type: text/html, Size: 858 bytes --] ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [9fans] Autoexpand in sam 2021-09-26 4:40 ` revcomninos @ 2021-09-26 7:42 ` Steve Simon 0 siblings, 0 replies; 11+ messages in thread From: Steve Simon @ 2021-09-26 7:42 UTC (permalink / raw) To: 9fans 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 ^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2021-09-26 7:43 UTC | newest] Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2021-09-22 20:14 [9fans] Autoexpand in sam revcomninos 2021-09-22 22:51 ` umbraticus 2021-09-23 0:51 ` revcomninos 2021-09-23 3:08 ` Ethan Gardener 2021-09-23 5:29 ` Skip Tavakkolian 2021-09-23 5:54 ` umbraticus 2021-09-23 9:22 ` revcomninos 2021-09-25 16:07 ` revcomninos 2021-09-25 18:45 ` Silas 2021-09-26 4:40 ` revcomninos 2021-09-26 7:42 ` Steve Simon
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).