Occur #1314

merged 17 commits into from Mar 24, 2013


None yet

2 participants

rksm commented Mar 18, 2013

Occur -- filter lines of current session by a matching term. Does not necessarily require incremental search but using both together makes sense.

See this screencast for how I use it.

If you want to try it out here is my setup code (not included in the PR and requires incremental search):

var occurCmds = require("ace/commands/occur_commands").commands,
    iSearchCommands = require("ace/commands/incremental_search_commands").iSearchCommands,
    occurStartCmd = occurCmds[0];
    name: 'occurisearch',
    bindKey: 'Ctrl-O',
    exec: function(iSearch) {
        var options = oop.mixin({}, iSearch.$options);
        occurStartCmd.exec(iSearch.$editor, options);
    readOnly: true,
    isIncrementalSearchCommand: true
@nightwing nightwing merged commit b974de5 into ajaxorg:master Mar 24, 2013

1 check passed

Details default The Travis build passed

Looks awesome!
I've merged with minor cleanup
Would be good to add this into emacs mode by default, what is emacs shortcut for it?

@rksm rksm referenced this pull request Mar 28, 2013

Occur with isearch #1334

rksm commented Mar 28, 2013

#1334 adds a shortcut Ctrl-o to enter occur when in isearch mode.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment