ammonite.terminal

HistoryFilter

class HistoryFilter extends DelegateFilter

Provides history navigation up and down, saving the current line.

Linear Supertypes
DelegateFilter, PartialFunction[TermInfo, TermAction], (TermInfo) ⇒ TermAction, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. HistoryFilter
  2. DelegateFilter
  3. PartialFunction
  4. Function1
  5. AnyRef
  6. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new HistoryFilter(history: () ⇒ IndexedSeq[String], commentStartColor: String, commentEndColor: String)

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. def activeHistory: Boolean

  7. def activeSearch: Boolean

  8. def andThen[C](k: (TermAction) ⇒ C): PartialFunction[TermInfo, C]

    Definition Classes
    PartialFunction → Function1
  9. def apply(v1: TermInfo): TermAction

    Definition Classes
    DelegateFilter → Function1
  10. def applyOrElse[A1 <: TermInfo, B1 >: TermAction](x: A1, default: (A1) ⇒ B1): B1

    Definition Classes
    PartialFunction
  11. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  12. def backspace(b: Vector[Char], c: Int): (Vector[Char], Int)

  13. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  14. def compose[A](g: (A) ⇒ TermInfo): (A) ⇒ TermAction

    Definition Classes
    Function1
    Annotations
    @unspecialized()
  15. def ctrlR(b: Vector[Char], c: Int): (Vector[Char], Int)

  16. def down(b: Vector[Char], c: Int): (Vector[Char], Int)

  17. val dropHistoryChars: Set[Int]

  18. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  19. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  20. def filter: PartialFunction[TermInfo, TermAction]

    Definition Classes
    HistoryFilterDelegateFilter
  21. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  22. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  23. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  24. var historyIndex: Int

    -1 means we haven't started looking at history, n >= 0 means we're currently at history command n

  25. def isDefinedAt(x: TermInfo): Boolean

    Definition Classes
    DelegateFilter → PartialFunction
  26. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  27. def lift: (TermInfo) ⇒ Option[TermAction]

    Definition Classes
    PartialFunction
  28. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  29. final def notify(): Unit

    Definition Classes
    AnyRef
  30. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  31. def orElse[A1 <: TermInfo, B1 >: TermAction](that: PartialFunction[A1, B1]): PartialFunction[A1, B1]

    Definition Classes
    PartialFunction
  32. def printableChar(char: Char)(b: Vector[Char], c: Int): (Vector[Char], Int)

  33. def runWith[U](action: (TermAction) ⇒ U): (TermInfo) ⇒ Boolean

    Definition Classes
    PartialFunction
  34. def searchHistory(start: Int, increment: Int, buffer: Vector[Char], skipped: Vector[Char]): (Vector[Char], Int)

  35. def searchOrHistoryAnd(cond: Boolean): Boolean

    Predicate to check if either we're searching for a term or if we're in history-browsing mode and some predicate is true.

    Predicate to check if either we're searching for a term or if we're in history-browsing mode and some predicate is true.

    Very often we want to capture keystrokes in search-mode more aggressively than in history-mode, e.g. search-mode drops you out more aggressively than history-mode does, and its up/down keys cycle through history more aggressively on every keystroke while history-mode only cycles when you reach the top/bottom line of the multi-line input.

  36. var searchTerm: Option[Vector[Char]]

    The term we're searching for, if any.

    The term we're searching for, if any.

    - None means we're not searching for anything, e.g. we're just browsing history

    - Some(term) where term is not empty is what it normally looks like when we're searching for something

    - Some(term) where term is empty only really happens when you start searching and delete things, or if you Ctrl-R on an empty prompt

  37. def startHistory(b: Vector[Char], c: Int): (Vector[Char], Int)

    Kicks the HistoryFilter from passive-mode into search-history mode

  38. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  39. def toString(): String

    Definition Classes
    Function1 → AnyRef → Any
  40. def up(b: Vector[Char], c: Int): (Vector[Char], Int)

  41. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  42. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  43. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  44. def wrap(rest: LazyList[Int], out: (Vector[Char], Int)): TermState

Inherited from DelegateFilter

Inherited from PartialFunction[TermInfo, TermAction]

Inherited from (TermInfo) ⇒ TermAction

Inherited from AnyRef

Inherited from Any

Ungrouped