Changeset 8ee73f8d for examples/owlconf.erik
- Timestamp:
- Jun 30, 2002, 2:54:22 AM (22 years ago)
- Branches:
- master, barnowl_perlaim, debian, owl, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
- Children:
- 039213e
- Parents:
- d36f2cb
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
examples/owlconf.erik
rb950088 r8ee73f8d 66 66 sub sepbartokens_set { 67 67 owl::command(sprintf "set -q appendtosepbar \"%s\"", (join " ", @sepbartokens)); 68 } 69 70 my $restoreview = undef; 71 sub swapview { 72 my $curview = owl::command("getview"); 73 if ($restoreview) { 74 owl::command("view $restoreview"); 75 $restoreview = undef; 76 } else { 77 $restoreview = $curview; 78 owl::command("smartnarrow"); 79 } 80 } 81 82 my $lastcolored = undef; 83 sub colorthread { 84 if ($lastcolored) { 85 owl::command("filter $lastcolored -c default"); 86 } 87 my $smartfilt = owl::command("smartfilter"); 88 if (!$smartfilt or $smartfilt eq $lastcolored) { 89 owl::command("filter $lastcolored -c default"); 90 $lastcolored = undef; 91 } else { 92 owl::command("filter $smartfilt -c green"); 93 $lastcolored = $smartfilt; 94 } 68 95 } 69 96 … … 97 124 owl::command("bindkey recv M-l command ( expunge ; view all )"); 98 125 owl::command("bindkey recv M-K command ( smartnarrow ; delete view ; expunge ; view all )"); 126 127 # toggle between a view and a smartnarrow with TAB 128 owl::command("alias swapview perl swapview();"); 129 owl::command("bindkey recv C-i command swapview"); 130 131 # color the current thread 132 owl::command("alias colorthread perl colorthread();"); 133 owl::command("bindkey recv M-c command colorthread"); 99 134 100 135 # Make 'M-s' insert a <scritchscritchscritch> sequence with a random
Note: See TracChangeset
for help on using the changeset viewer.