Giter VIP home page Giter VIP logo

Comments (3)

yuku avatar yuku commented on August 21, 2024

Hi @wipau
Currently you can't. Only one strategy is used for a keyup.

from textcomplete.

mcakici avatar mcakici commented on August 21, 2024

i made with different way.. thanks again and its work great

template: function (value) {
        if (value[0] == 1) {
            return '<a href="javascript:void(0)"><div style="padding:2px 2px; width:260px;"><img src="'+value[4]+'" style="height:32px;width:32px; -webkit-border-radius: 3px;-moz-border-radius: 3px; border-radius: 5px; float:left;"><div style="float:left; margin-left:3px;"></img> <b>' + value[3] +'</b> <span class="text-grey small-text">@'+value[2]+'</span><br /></div><div class="clearfix"></div></div></a>';
        }else if (value[0] == 2) {
            return '<a href="javascript:void(0)"><div style="padding:2px 2px; width:260px;"><div style="float:left; margin-left:3px;"> <b>#' + value[2] +'</b> <span class="text-grey small-text"></span></div><div class="clearfix"></div></div></a>';
        }
    },
    replace: function(value) {
        if (value[0] == 1) {
            get(1,value[1]);
            return '@' + value[2] + ' ';
        }else if (value[0] == 2) {
            get(7,0,'#'+value[2]);
            return '#' + value[2] + '';
        }
    },

from textcomplete.

yuku avatar yuku commented on August 21, 2024

Sorry for my late reply. I considered the proposed feature, but I think it is really hard to support it because some search function callbacks in async manner. Maybe your workflow is the bast way to do it. Thanks for the comment!

from textcomplete.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.