File: aspell

package info (click to toggle)
ne 3.3.4-3
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 2,556 kB
  • sloc: ansic: 25,614; perl: 572; makefile: 265; ruby: 232; sh: 38
file content (17 lines) | stat: -rw-r--r-- 590 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# This example macro works with your system's aspell
# command to spell-check the selected block of text.
# The AtomicUndo commands at the beginning and end make
# it possible to undo/redo the entire operation in one
# go. Otherwise the Cut and Paste would each require
# their own undo/redo. Indentation is just for clarity;
# it doesn't affect operation.

AtomicUndo +
  Cut
    SaveClip ~/.ne/ne-aspell.txt
      System aspell --check ~/.ne/ne-aspell.txt
    OpenClip ~/.ne/ne-aspell.txt
    System rm -f ~/.ne/ne-aspell.txt ~/.ne/ne-aspell.txt.bak
  Paste
  GotoBookmark >
AtomicUndo -