playground:vps_-_plan9front_-_fn_reply_and_prompt
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
playground:vps_-_plan9front_-_fn_reply_and_prompt [2022/06/24 23:02] – [reply with selected text] hc9 | playground:vps_-_plan9front_-_fn_reply_and_prompt [2022/06/26 05:20] – [prompt] hc9 | ||
---|---|---|---|
Line 7: | Line 7: | ||
^# | ^# | ||
- | |1|fn vim { sam $* }| | + | |**1.**|...[[: |
- | |2| [blank] | + | |//a.//|'' |
- | |3| [blank] | + | |**2.**|//Grep, but force listing of filename: |
+ | |// | ||
+ | |**3.**|//Tree enumerator (simple " | ||
+ | |// | ||
+ | |||
+ | **Example #1:** | ||
+ | |||
+ | < | ||
+ | cpu% lc profile.edit | ||
+ | profile.edit | ||
+ | cpu% sam -d profile.edit | ||
+ | -. profile.edit | ||
+ | /fn | ||
+ | fn | ||
+ | fn term%{ $* } | ||
+ | /fn | ||
+ | fn | ||
+ | fn cpu%{ $* } | ||
+ | a | ||
+ | fn vim { sam $* } | ||
+ | . | ||
+ | w | ||
+ | profile.edit: | ||
+ | q | ||
+ | cpu% | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | cpu% whatis vim | ||
+ | fn vim { | ||
+ | sam $* | ||
+ | } | ||
+ | cpu% | ||
+ | </ | ||
===== reply with selected text ===== | ===== reply with selected text ===== | ||
Line 18: | Line 51: | ||
</ | </ | ||
- | |1|select text to include in reply with button 1| | + | |1.|select text to include in reply with button 1| |
- | |2|type **'' | + | |2.|type **'' |
- | |3|run **'' | + | |3.|run **'' |
- | |4|use the button 1,3 chord to paste text into reply| | + | |4.|use the button 1,3 chord to paste text into reply| |
- | |5|remove Include: line from message and type your reply.| | + | |5.|remove Include: line from message and type your reply.| |
Start acme to access the mbox. | Start acme to access the mbox. | ||
Line 44: | Line 77: | ||
|2/|:::|⇐ An Email messages is here.| | |2/|:::|⇐ An Email messages is here.| | ||
|1/| | |1/| | ||
+ | |**/// | ||
+ | |From: ne1nb00k@9p.sdf.org| | ||
+ | |To: | ||
+ | |Date: Fri Jun 24 23:06:59 +0000 2022| | ||
+ | |Subject: practice reply| | ||
+ | |[blank]| | ||
+ | |That was some good neinbook!| | ||
+ | |[blank]| | ||
+ | |> Some text to reply to|:::|⇐ This is the text highlighting example area.| | ||
+ | |[blank]| | ||
+ | |Other text| | ||
+ | |Other text| | ||
===== prompt ===== | ===== prompt ===== | ||
+ | |||
+ | < | ||
+ | cpu% cp $home/ | ||
+ | </ | ||
^# | ^# | ||
- | |**1**|To set your prompt in rc to reflect your current directory add this to your profile.| | + | |**1.**|//To set your prompt in rc to reflect your current directory add this to your profile.//| |
- | |// | + | |//a.// |
- | |**2**|If you make frequent use of cpu's -'' | + | |**2.**|//If you make frequent use of cpu's -'' |
- | |// | + | |//a.// |
- | |// | + | |//b.// |
+ | |||
+ | **Example #1:** | ||
+ | |||
+ | < | ||
+ | cpu% lc profile.edit | ||
+ | profile.edit | ||
+ | cpu% sam -d profile.edit | ||
+ | -. profile.edit | ||
+ | /fn | ||
+ | fn | ||
+ | fn term%{ $* } | ||
+ | /fn | ||
+ | fn | ||
+ | fn cpu%{ $* } | ||
+ | s/cpu%{ \$\*/cd { builtin cd $* \& | ||
+ | . | ||
+ | fn cd { builtin cd $* && prompt=(`{pwd}^% '' | ||
+ | w | ||
+ | profile.edit: | ||
+ | q | ||
+ | cpu% | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | cpu% whatis cd | ||
+ | fn cd { | ||
+ | builtin cd $* && prompt=(`{ | ||
+ | pwd | ||
+ | }^% '' | ||
+ | } | ||
+ | cpu% | ||
+ | </ | ||