🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.sys.next.programmer
7 messages
7 total messages Started by Michael Pizolato Thu, 29 Oct 1992 17:25
Another new V3.0 feature - Edit keyword completion
#73
Author: Michael Pizolato
Date: Thu, 29 Oct 1992 17:25
20 lines
1651 bytes
I just discovered, quite by accident, another really cool new feature of V3.0.   In Edit, if you type the beginning of a keyword then hit escape, Edit will complete the keyword for you, like filename completion in csh.  If there is only one keyword that begins with what you type, it is completed.  If there is more than one, it is completed and the portion that Edit filled in is highlighted.  You can hit the delete key (<--), press escape again, and the next match is completed.  You can cycle through all th



e keywords that begin with what you typed.

This works for instance variables, methods, categories, included class names, the keyword "return" and who knows what else.  I can't seem to find the limits nor define completely what set of keywords it will complete.  For example, my Edit completes "return" from "re", "ret", etc. but someone else's here doesn't complete "return" at all.  Completion also doesn't work at all on some machines.  Anybody know about this, or know where or if it's documented?  I've looked in Librarian (NextDev) and Edit's help w



ith no success.

Thanx,
Michael

--
Michael_Pizolato@afs.com
~18 kyu
Q16
NeXTMail appreciated
Re: Another new V3.0 feature - Edit keyword completion
#75
Author: Moises Oliveira
Date: Fri, 30 Oct 1992 18:18
11 lines
976 bytes
In article <1992Oct29.172503.332@afs.com> Michael_Pizolato@afs.com writes:

>[A lot of long lines that I don't feel like fixing, relating to keyword
> completion in Edit]

Also note that this feature has been added to Webster and Digital
Librarian.  

For a fun time play, and an educationl experience, hop into Webster and
type a single letter, then hold down the escape key.  It will cycle through all
the words that start with that letter.
Re: Another new V3.0 feature - Edit keyword completion
#80
Author: Alex Blakemore
Date: Sat, 31 Oct 1992 05:12
17 lines
1267 bytes
In article <1992Oct30.181839.1378@nevada.edu> oliverm@nevada.edu (Moises Oliveira) writes:
> In article <1992Oct29.172503.332@afs.com> Michael_Pizolato@afs.com writes:
> >[A lot of long lines that I don't feel like fixing, relating to keyword
> > completion in Edit]

> Also note that this feature has been added to Webster and Digital Librarian.  

Has anyone been able to reproduce this behavior in Edit?
On my system, it seems to complete based on filenames in the current directory,
not keywords, method names or anything else rational.  and even then it
only works sometimes. Do the preferences make a difference?

Webster and Librarian are amusing though.

-- 
---------------------------------------------------
Alex Blakemore alex@cs.umd.edu   NeXT mail accepted
Re: Another new V3.0 feature - Edit keyword completion
#82
Author: Meinhard E. Mayer (Hardy)
Date: Sat, 31 Oct 1992 06:44
10 lines
994 bytes
Is this an implementation of gnu-emacs' abbrev-mode (or M-Tab
completion for known commands)?
Someone should indeed make a list of hidden features available for
those of us who can't get to the documentation.
  
--
Hardy 
-----
Meinhard E. Mayer,  Department of Physics, UC Irvine 
e-mail: hardy@golem.ps.uci.edu (preferred) or MMAYER@UCI.BITNET
Re: Another new V3.0 feature - Edit keyword completion
#86
Author: Robert D. Nicholson
Date: Sat, 31 Oct 1992 22:14
304 lines
11417 bytes
hardy@golem.ps.uci.edu (Meinhard E. Mayer (Hardy)) writes:

>Is this an implementation of gnu-emacs' abbrev-mode (or M-Tab
>completion for known commands)?
>Someone should indeed make a list of hidden features available for
>those of us who can't get to the documentation.
>  
>--
>Hardy 
>-----
>Meinhard E. Mayer,  Department of Physics, UC Irvine 
>e-mail: hardy@golem.ps.uci.edu (preferred) or MMAYER@UCI.BITNET


Edit Word completion, this is a file by derek Beaty.

Stick this in ~/.editdict and you are away

abstract	\\begin{abstract}\
+the abstract;\
\\end{abstract}
addcontentsline	\\addcontentsline{+toc,lof,lot;}{+figure,table,section,etc.;}{+entry;}
address	\\address{+return address; \\\\ \
+for a letter;}
addtocontents	\\addtocontents{+toc,lof,lot;}{+text or commands;}
addtocounter	\\addtocounter{+counter;}{+increment;}
addtolength	\\addtolength{+length name;}{+delta;}
addvspace	\\addvspace{+len;}
alph	\\alph{+counter;}
annotate	\\begin{annotation}\
+annotated text;\
\\end{annotation}
appendix	\\appendix	% Remaining sections are appendices.
arabic	\\arabic{+counter;}
array	\\begin{array}+[t,b];{+rcl;}\
+col 1; & +col 2; & +col 3; \\\\ \
\\end{array}
author	\\author{+authors of the document;}
axiom	\\begin{axiom}+[common name];\
+text of axiom;\
\\end{axiom}
begin	\\begin{+environment;}\
+contents;\
\\end{+environment;}
bf	{\\bf +text;}
bibitem	\\bibitem+[label];{+citation key;} +bib item;
bibliography	\\bibliography{+bib,files,for,bibtex;}
bibliographystyle	\\bibliographystyle{+plain,unsrt,alpha,abbrv;} % This should not be in the preamble.
bigskip	\\bigskip
cal	{\\cal +caps only;}
caption	\\caption+[list entry];{+text;}
center	\\begin{center}\
+centered lines;\
\\end{center}
centering	\\centering
changebar \\chgbarbegin\
+new lines;\
\\chgbarend
chapter	\\chapter{+title of a chapter;}
cite	\\cite+[notes];{+citation,keys,with,no,space;}
cleardoublepage	\\cleardoublepage	% Flush floats and go to new right page.
clearpage	\\clearpage	% Flush all floats and go to a new page.
closing	\\closing{+Best regards,;}
conjecture	\\begin{conjecture}+[common name];\
+something thought to be true;\
\\end{conjecture}
corollary	\\begin{corollary}+[common name];\
+something true because of something else;\
\\end{corollary}
date	\\date{+date to put on title page;}
defn	\\begin{defn}+[common name];\
+definition;\
\\end{defn}
description	\\begin{description}\
\\item[+name;] +descr;\
\\end{description}
displaymath	\\begin{displaymath}\
+displayed equation, not numbered;\
\\end{displaymath}
document	\\begin{document}\
+text;\
end{document}
documentstyle	\\documentstyle[+11pt,fleqn,leqno,openbib,titlepage,twoside,twocolumn,etc;]{+article,report,letter,etc;}
dotfill	\\dotfill
em	{\\em +emphasized text;\\/}
end	\\end{+environment;}
enumerate	\\begin{enumerate}\
\\item +part of a numbered list;\
\\end{item}
epsffile	\\begin{figure}[htbp]\
\\begin{center}\
\\leavevmode\\epsffile{+eps picture's filename;}\
\\caption{+the caption;\\label{fig:+filename;}}\
\\end{center}\
\\end{figure}
eqnarray	\\begin{eqnarray}\
+\\lefteqn{left-aligned first line} \\\\; \
+left; & +center; & +right; \\\\ \
\\end{array}
equation	\\begin{equation}\
+displayed equation, numbered;\
end{equation}
fbox	\\fbox{+stuff to draw a box around;}
figure	\\begin{figure}[htbp]\
\\begin{center}\
+insert eps or other figure here;\
\\caption{+the caption;\\label{fig:+filename;}}\
\\end{center}\
\\end{figure}
fill	\\fill
flushbottom	\\flushbottom	% Stretch all pages to same length.
flushleft	\\begin{flushleft}\
+flush left lines;\
\\end{flushleft}
flushright	\\begin{flushright}\
+flush right lines;\
end{flushright}
fnsymbol	\\fnsymbol{+counter;}
footnote	\\footnote+[num];{+note;}
footnotemark	\\footnotemark+[num];
footnotesize	{\\footnotesize +text;}
footnotetext	\\footnotetext+[num];{+text;}
frac	\\frac{+numerator;}{+denominator;}
framebox	\\framebox+[width][l,r];{+contents;}
fussy	\\fussy	% Be careful about page breaks.
glossary	\\glossary{+str;}
hfill	\\hfill 
hrulefill	\\hrulefill
hspace	\\hspace{+length;}
huge	{\\+huge,Huge; +text;}
hyphenation	\\hyphenation{+patterns;}	% Should be in preamble.
include	\\include{+file name (omit extension);}
includeonly	\\includeonly{+list,of,file,without,spaces;}
index	\\index{+word;}
indexentry	\\indexentry{+word;}{+page;} % You might want \\index instead!
input	\\input{+file name; omit extension if .tex;}
it	{\\it +italicized text;\\/}
item	\\item+[tag]; 
itemize	\\begin{itemize}\
\\item +text;\
\\end{itemize}
label	\\label{+key to refer to elsewhere;}
large	{\\+large,Large,LARGE; +text;}
lemma	\\begin{lemma}+[common name];\
+something needed by another proof;\
\\end{lemma}
letter	\\begin{letter}{+recipient name;\\\\ \
+address line; \\\\ \
+address line; }\
\\opening{Dear +whomever;:}\
+body of letter;\
\\closing{+Sincerely,;}\
\\cc{+other; \\\\ +recipients;}\
\\encl{+enclosed; \\\\ +documents;}\
\\end{letter}
linebreak	\\linebreak+[0-4];
list	\\begin{list}{+default label;}{+formatting declarations;}\
\\item +stuff;\
\\end{list}
listoffigures	\\listoffigures	% LaTeX puts the list of figures here.
listoftables	\\listoftables	% LaTeX puts the list of tables here.
makebox	\\makebox+[width][l,r];{+contents;}
makeglossary	\\makeglossary	% Write glossary entries to .glo file.
makeindex	\\makeindex	% Write index entries to .idx file.
makelabels	\\makelabels	% This should be in the preamble
maketitle	\\maketitle	% LaTeX puts the title or title page here.
marginpar	\\marginpar+[version for left margin];{+text to put in the margin;}
markboth	\\markboth{+left page headings;}{+right page headings;}
markright	\\markright{+right page headings;}
math	\\begin{math}\
+in-line equation;\
\\end{math}
mbox	\\mbox{+something not to break;}
medskip	\\medskip
minipage	\\begin{minipage}+[t,b];{+width;}\
+text;\
\\end{minipage}
newcommand	\\newcommand{\\+cmd name;}+[arg cnt];{+body;}
newcounter	\\newcounter{+name;}
newenvironment	\\newenvironment{+env name;}+[arg cnt];{+begin text;}{+end text;}
newfont	\\newfont{+name;}{+font info;}
newlength	\\newlength{\\+name;}
newline	\\\\+[len];
newpage	\\newpage
newsavebox	\\newsavebox{\\+name;}
newtheorem	\\newtheorem{+name;}+[numbered like];{+label;}+[within];
nocite	\\nocite{+citation keys;}
nofiles		\\nofiles	% Prevents writing of aux,glo,idx,lof,lot,toc
nolinebreak	\\nolinebreak+[0-4];
nonumber	\\nonumber	% Don't number this equation.
nopagebreak	\\nopagebreak+[0-4];
normalmarginpar	\\normalmarginpar	% Marginal notes have normal placement.
normalsize	{\\normalsize +text;}
onecolumn	\\onecolumn	% Clear page and begin single-column text.
overline	\\overline{+text;}
pagebreak	\\pagebreak+[0-4];
pagenumbering	\\pagenumbering{+arabic,roman;}	% Start page numbers at 1.
pageref		\\pageref{+key, from some \\label command;}
pagestyle	\\pagestyle{+plain,empty,headings,myheadings;}
paragraph	\\paragraph+[toc entry];{+title of a paragraph;}
parbox	\\parbox+[t,b];{+width;}{+text;}
part	\\part+[toc entry];{+title of a main division;}
proof	\\begin{proof}\
+text of proof;\
\\end{proof}
prop	\\begin{prop}+[common name];\
+something true, neither obvious nor significant;\
\\end{prop}
psfig	\\begin{figure}[htbp]\
\\begin{center}\
\\leavevmode\\psfig{figure=+eps picture's filename;}\
\\caption{+the caption;\\label{fig:+filename;}}\
\\end{center}\
\\end{figure}
quotation	\\begin{quotation}\
+extended quotation;\
\\end{quotation}
quote	\\begin{quote}\
+short quotation, or series of them;\
\\end{quote}
raggedbottom	\\raggedbottom	% Let page height vary page-to-page.
raggedleft	\\raggedleft
raggedright	\\raggedright
raisebox	\\raisebox{+raise;}+[above][below];{+text;}
ref	\\ref{+key appearing in a \\label command somewhere;}
renewcommand	\\renewcommand{\\+cmd name;}+[arg cnt];{+body;}
renewenvironment	\\renewenvironment{+env name;}+[arg cnt];{+begin text;}{+end text;}
reversemarginpar	\\reversemarginpar	% Marginal notes get flipped.
roman	\\roman{+counter;}
rule	\\rule+[raise];{+width;}{+height;}
samepage	\\samepage	% Inhibit page breaks.
savebox	\\savebox{\\+name;}+[width][l,r];{+text;}
sbox	\\sbox{+name;}{+text;}
sc	{\\sc +text to set in small CAPS;}
scriptsize	{\\scriptsize +text;}
section	\\section+[toc entry];{+title of a section;}
setcounter	\\setcounter{+counter;}{+value;}
setlength	\\setlength{\\+length name;}{+length;}
settowidth	\\settowidth{\\+length name;}{+text to measure;}
sf	{\\sf +text to set sans-serif;}
signature	\\signature{+signature of; \\\\ +a letter;}
sl	{\\sl +text to slant;\\/}
sloppy	\\sloppy	% Format paragraphs loosely
sloppypar	\\begin{sloppypar}\
+paragraph to format loosely;\
end{sloppypar}
small	{\\small +text to put in small letters;}
smallskip	\\smallskip
stepcounter	\\stepcounter{+counter;}
stretch	\\stretch{+stretchability factor;}
subitem	\\subitem +sub-item, for index;
subparagraph	\\subparagraph+[toc entry];{+title of a sub-paragraph;}
subsection	\\subsection+[toc entry];{+title of a sub-section;}
subsubitem	\\subitem +sub- sub-item, for index;
subsubsection	\\subsubsection+[toc entry];{+title of a sub- sub-section;}
tabbing	\\begin{tabbing}\
+line \\= to \\= set \\= the \\= tabs \\kill\
+line \\> with \\> tabs \\\\;\
\\end{tabbing}
table	\\begin{table}[htbp]\
+floating stuff;\
caption{+the caption;\\label{tab:+identification;}}\
\\end{table}
tableofcontents	\\tableofcontents  % LaTeX puts the table of contents here.
tabular	\\begin{tabular}+[t,b];{+rcl;}\
+col 1; & +col 2; & +col 3; \\\\ \
\\end{tabular}
thanks	\\thanks{+acknowledgements;}
thebibliography	\\begin{thebibliography}\
\\bibitem+[label];{+citation key;} +bib item;\
\\end{thebibliography}
theindex	\\begin{theindex}\
\\item +index item;\
\\subitem +index sub-item;\
\\subsubitem +index sub- sub-item;\
\\end{theindex}
thispagestyle	\\thispagestyle{+plain,empty,headings,myheadings;}
thm	\\begin{thm}+[common name];\
+something true and significant but not obvious;\
\\end{thm}
tiny	{\\tiny +text;}
title	\\title{+title of the document;}
titlepage	\\begin{titlepage}\
+the title page;\
\\end{titlepage}
trivlist	\\begin{trivlist}\
item[] +stuff;\
end{trivlist}
tt	{\\tt +text to set in typewriter face;}
twocolumn	\\twocolumn+[double col text];	% Begin double-column text on new page.
typein	\\typein[\\+name to insert input;]{+message to print to get a line from the terminal;}
typeout	\\typeout{+stuff to print when running LaTeX;}
underline	\\underline{+text;}
usebox	\\usebox{\\+name;}
value	\\value{+counter;}
verb	\\verb+|lit stuff|;
verbatim	\\begin{verbatim}\
+literal text;\
\\end{verbatim}
verse	\\begin{verse}\
+poetry;\
\\end{verse}
vfill	\\vfill 
vspace	\\vspace{+length;}
Re: Another new V3.0 feature - Edit keyword completion
#90
Author: Jiro Nakamura
Date: Sun, 01 Nov 1992 20:16
14 lines
834 bytes
You can control the expansions in Edit 3.0 with the Utilities->Expert->
Expansions Dictionary command. Why it will still expand some commands
not listed in it is beyond me. Why this isn't documented is also beyond
me since it is extremely useful....

 - Jiro



-- 
Jiro Nakamura				jiro@shaman.com (NeXTmail)
NeXTwatch / Technical Editor		76711,542 (CIS)
The Shaman Group			+1 607 277-1440 (Voice/Fax)
Re: Another new V3.0 feature - Edit keyword completion
#1378
Author: Ali Ozer
Date: Sat, 07 Nov 1992 23:15
12 lines
944 bytes
In article <1992Oct29.172503.332@afs.com> Michael_Pizolato@afs.com writes:
>I just discovered, quite by accident, another really cool new feature of
>V3.0.   In Edit, if you type the beginning of a keyword then hit escape, Edit
>will complete the keyword for you ...
>... Completion also doesn't work at all on some machines.  Anybody know
>about this, or know where or if it's documented?

The completion is pretty simple-minded: It will complete to any word which
occurs in the document before the cursor position. You also need to be in
C mode, I believe...

Ali, Ali_Ozer@NeXT.com
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads