Giter Club home page Giter Club logo

Comments (8)

lervag avatar lervag commented on August 16, 2024

Good idea. Today you can start with <leader>ll and stop with <leader>lk. My first thought is that it would make sense to remove the lk mapping and let ll be a toggle. Alternatively, I could add an option so that the old behaviour is kept (and default). What are your thoughts?

from vimtex.

Konfekt avatar Konfekt commented on August 16, 2024

Many possibilies. What came to my mind first was a mapping

nnoremap <expr> <leader>lc latex#latexmk#status() ? ":call latex#latexmk#compile()<CR>' : ':latex#latexmk#stop()<CR>'

but latex#latexmk#status() returns a string. How about 0 or 1 to indicate compilation or idling ? Or, perhaps cleanest, add a buffer variable that indicates the compile state.

from vimtex.

nasenatmer avatar nasenatmer commented on August 16, 2024

Reconfiguring <leader>ll to toggle instead of only to start compilation and removing <leader>lk sounds like a nice idea!

from vimtex.

lervag avatar lervag commented on August 16, 2024

Sorry, I've been very busy lately. I changed the <leader>ll mapping into a compilation toggle. I think this is a good idea, and I think my implementation should be suitable. I'd be happy to hear your thoughts. I kept the <leader>lk mapping as it was, so that there should be no surprise to anyone.

from vimtex.

nasenatmer avatar nasenatmer commented on August 16, 2024

Just been tex'ing this minute and tried it. Works like a charm, thanks a lot!

from vimtex.

lervag avatar lervag commented on August 16, 2024

Great! Happy to hear it.

I'll keep the issue open until @Konfekt has commented.

from vimtex.

Konfekt avatar Konfekt commented on August 16, 2024

Thanks! Works flawlessly over here.

Don't forget to document this feature and add a VimLatexToggle command.

Oh, that's already done. Didn't show up in the above commit's reference.

from vimtex.

lervag avatar lervag commented on August 16, 2024

Yes, I forgot to tag the issue in the latest commits. :)

Thanks for reporting the issue!

from vimtex.

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.