Git Product home page Git Product logo

autolinker_vim's People

Contributors

tomtom avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

autolinker_vim's Issues

How to configure hypertext links?

Glancing around, I am assuming autolinker can perform hypertext links similar to viki and vimwiki for text structures

[[ link ]]
[[ link | text ]]

where link may contain more than one word. I am hoping to use autolinker to replace vimwiki (as I don't need all of its functionality and plethora of keymappings) and prefer to use other markup plugins for highlighting. So.. how can one configure autolinker to provide hypertext links with markup documents (assuming it can)?

E339: Pattern too long

If started for a buffer within a directory containg lots of files (for me about 5000) you get an error

E339: Pattern too long

this is because each file gets filled up in (truncated)

AutoHyperlinkWord xxx match /\V\<Page_0000005829\>\|\V\<Table_0000005097\>\|\V\<Table_0000005099\>\|\V\<Page_0005005252\>\|\V\<Page_0000000380\>\|\V\<Page_0000000381\>\|\V\<Page_0000000382\>\|\V\<Page_0000000383\>\|\V\<Page_0000000384\>\|\V\<Page_0000000385\>\|\V\<Page_0000000386\>\|\V\<Page_0000000387\>\|\V\<Page_0000000388\>\|\V\<Page_0000000389\>\|\V\<Table_0099000758\>\|\V\<Codeunit_0000005340\>\|\V\<Codeunit_0000005341\>\|\V
....

Maybe limiting the files to 256 or so:

function! s:Globpath(path, pattern) abort "{{{3
    Tlibtrace 'autolinker', a:path, a:pattern
    let id = join([getcwd(), a:path, a:pattern], '|')
    if s:IsValidCache(id)
        let matches = g:autolinker_glob_cache[id].files
    else
        let matches = s:DoGlobPath(a:path, a:pattern)
        let matches = map(matches, 'fnamemodify(v:val, ":p")')
        let matches = tlib#list#Uniq(matches)
        let g:autolinker_glob_cache[id] = {'files': matches}
    endif
    return matches[0:255]
endf      

is a solution

:Autolinkbuffer not existend, gz-mapping not there

Hi,
I tried to use this plugin for todo.txt files, as the notes added to tasks there are linked with file://.

I checked with git grep, because :Autolinkbuffer was unknown to vim, and the only appearance of that command is in documentation files, but nowhere else?
Also, the mappings for autolinker are unknown to vim, even though g:autolinker#nmap is set to gz
Do you need any more information?

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.