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 revision | ||
vps_-_plan9front_-_fn_reply_and_prompt [2022/06/26 18:54] – [reply with selected text] hc9 | vps_-_plan9front_-_fn_reply_and_prompt [2022/07/19 21:17] (current) – removed hc9 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== function, reply and prompt ====== | ||
- | |||
- | |x| :!: THIS IS A DRAFT| | ||
- | |x| Tutorial [ ] Guide [x]| | ||
- | |||
- | ===== function (fn) ===== | ||
- | |||
- | ^# | ||
- | |**1.**|...[[resources_for_website_builders# | ||
- | |// | ||
- | |**2.**|// | ||
- | |// | ||
- | |**3.**|// | ||
- | |// | ||
- | |||
- | **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% | ||
- | </ | ||
- | |||
- | === whatis vim: === | ||
- | |||
- | < | ||
- | cpu% whatis vim | ||
- | fn vim { | ||
- | sam $* | ||
- | } | ||
- | cpu% | ||
- | </ | ||
- | |||
- | ===== reply with selected text ===== | ||
- | |||
- | |x|'' | ||
- | |||
- | === ireply: === | ||
- | |||
- | <file config $home/ | ||
- | #!/bin/rc | ||
- | awk '{ print "> " $0}' | ||
- | </ | ||
- | |||
- | |1.|select text to include in reply with button 1| | ||
- | |2.|// | ||
- | |3.|run **'' | ||
- | |4.|use the button 1,3 chord to paste text into reply| | ||
- | |5.|remove Include: line from message and type your reply.| | ||
- | |||
- | Start acme to access the mbox. | ||
- | |||
- | < | ||
- | % acme | ||
- | </ | ||
- | |||
- | ^Newcol Kill Putall Dump Exit^^^ | ||
- | |**New Cut Paste Snarf Sort Zerox Delcol**|::: | ||
- | |||
- | ^Newcol Kill Putall Dump Exit^^^ | ||
- | |**New Cut Paste Snarf Sort Zerox Delcol**|::: | ||
- | |||
- | ^Newcol Kill Putall Dump Exit^^^ | ||
- | |**New Cut Paste Snarf Sort Zerox Delcol Mail**|::: | ||
- | |||
- | ^Newcol Kill Putall Dump Exit^^^ | ||
- | |**New Cut Paste Snarf Sort Zerox Delcol Mail**| | ||
- | |**/// | ||
- | |2/|:::|⇐ An Email messages is here. Mouse button 3 press #2.| | ||
- | |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| | ||
- | |||
- | === whatis ireply: === | ||
- | |||
- | < | ||
- | cpu% whatis ireply | ||
- | /bin/ireply | ||
- | cpu% | ||
- | </ | ||
- | |||
- | ===== prompt ===== | ||
- | |||
- | < | ||
- | cpu% cp $home/ | ||
- | </ | ||
- | |||
- | ^# | ||
- | |**1.**|// | ||
- | |// | ||
- | |**2.**|// | ||
- | |// | ||
- | |// | ||
- | |||
- | **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% | ||
- | </ | ||
- | |||
- | === whatis cd: === | ||
- | |||
- | < | ||
- | cpu% whatis cd | ||
- | fn cd { | ||
- | builtin cd $* && prompt=(`{ | ||
- | pwd | ||
- | }^% '' | ||
- | } | ||
- | cpu% | ||
- | </ | ||