Comments (8)
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.
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.
Reconfiguring <leader>ll
to toggle instead of only to start compilation and removing <leader>lk
sounds like a nice idea!
from vimtex.
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.
Just been tex'ing this minute and tried it. Works like a charm, thanks a lot!
from vimtex.
Great! Happy to hear it.
I'll keep the issue open until @Konfekt has commented.
from vimtex.
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.
Yes, I forgot to tag the issue in the latest commits. :)
Thanks for reporting the issue!
from vimtex.
Related Issues (20)
- Help Add custom concealing rule for VimTeX on neovim HOT 3
- How do I get rid of a "latexmk is not executable" error? HOT 4
- supertab completion takes 20 seconds to complete a word when using many latex packages HOT 5
- Inverse search does not work with sioyek HOT 10
- Magic comment for compiler fails if there are trailing spaces HOT 3
- Vimtex doesnt boot HOT 25
- package 'unicode-math' yields compile error HOT 3
- [SOLVED] Focus the terminal when doing inverse search HOT 3
- viewer shouldn't open automatically when compilation finished HOT 10
- Vimtex: Viewer cannot find Zathura window ID HOT 7
- vimtex compilation fails despite compiling successfully when done from command line HOT 6
- completion is missing equation labels when using autonum HOT 4
- FR: syntax inclusions when using the LaTeX package 'robust-externalize' HOT 12
- `vimtex-i$` works in markdown math `\(...\)` but not `$...$` HOT 7
- Compilation doesn't update PDF HOT 3
- WSL2: Viewer cannot find Zathura window ID! HOT 17
- Feature request: support apastyle prenotes HOT 5
- -shell-escape and pygments for minted HOT 2
- Failed to load vimtex after update HOT 3
- Square brackets unnecessarily concealed HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vimtex.