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/25 18:19] – [prompt] hc9 | playground:vps_-_plan9front_-_fn_reply_and_prompt [2022/06/26 05:25] – [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 64: | Line 97: | ||
^# | ^# | ||
- | |**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:** | **Example #1:** | ||
Line 89: | Line 122: | ||
profile.edit: | profile.edit: | ||
q | q | ||
+ | cpu% | ||
+ | </ | ||
+ | |||
+ | === whatis cd: === | ||
+ | |||
+ | < | ||
+ | cpu% whatis cd | ||
+ | fn cd { | ||
+ | builtin cd $* && prompt=(`{ | ||
+ | pwd | ||
+ | }^% '' | ||
+ | } | ||
cpu% | cpu% | ||
</ | </ | ||