question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Require search addon

See original GitHub issue

I use npm to install my deps also for frontend and requirejs to include them. When I include addons like fit or attach the following works, but when I try to require the search addon, it seems to work but the findNext and findPrevious aren’t available. I tryed to use Terminal.loadAddon but it doesn’t work with any addon.

define(function (require, exports, module) {
    var Terminal = require("node_modules/xterm/dist/xterm"),

    require([
        "node_modules/xterm/dist/addons/fit/fit",
        "node_modules/xterm/dist/addons/search/search"
    ]);

    var term = new Terminal({});
});

Details

  • Browser and browser version: I’m using it in a Brackets (a code editor) extension
  • OS version: Windows
  • xterm.js version: 2.9.2

Steps to reproduce

  1. Use npm
  2. Use requirejs
  3. Include search addon

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
pariskcommented, Aug 16, 2017

Yep, I am. I can take a look next week though.

0reactions
Tyriarcommented, Oct 2, 2017

I’m consolidating all bundling/loadAddon related issues into https://github.com/sourcelair/xterm.js/issues/1018, please comment on that issue if you have thoughts 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Add custom search engine – Get this Extension for Firefox (en ...
Add a custom search engine to the list of available search engines in the search bar and URL bar. You'll need Firefox to...
Read more >
Selection Search
With this extension you can easily search for text you have selected. When some text is selected you can left click the selected...
Read more >
9 Browser Extensions to Help You Search the Web Better
The Simple Search extension offers a reminder of what web searches used to look like: If you run a search using Bing or...
Read more >
Install and manage extensions - Chrome Web Store Help
Find and select the extension you want. Click Add to Chrome. Some extensions will let you know if they need certain permissions or...
Read more >
Managing Extensions in Visual Studio Code
You can learn more about extension search filters below. ... VS Code extensions may have very different configurations and requirements.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found