Comments (6)
Nice one! And you're not happy with implementing this as a snippet with any of the available snippet solutions rather than a function of vim-latex itself?
from vimtex.
Actually, this can not be implemented as a snippet, because a snippet needs a well defined "keyword" for expanding the snippet. Thus this seems like a feature that should be implemented in vim-latex. I have a lot on my hands right now, so I don't know when I'll be able to do the implementation. Hopefully not in too long.
from vimtex.
Ah I see, I was just seeing the ref
example and not thinking of a general algorithm that would be able to do this with any word left of the cursor. That would indeed be quite nice!
from vimtex.
First attempt at solving this. Seems to work OK. Suggestions for improvements or modifications are of course very nice!
from vimtex.
Nice one! Although I think there was something wrong with the F7 mapping, but I added my remarks as a line note in the commit…
from vimtex.
Hah, I implemented everything inside autoload/latex.vim and moved it to change.vim at the last minute. Thanks for the catch!
from vimtex.
Related Issues (20)
- Show which float shows a warning message HOT 4
- Zathura fails for symbolic links (physical vs. absolute logical paths) HOT 3
- pdf outfile should be updated to match the argument to compile command HOT 3
- Arabic text is concealed when indented HOT 4
- Partial concealment of symbols HOT 6
- `which-key.nvim` support HOT 2
- Difficulty getting Okular inverse search to work HOT 7
- Automatically source syntax highlight changes for vimtex highlight groups HOT 2
- Changes in Treesitter parser broke vimtex syntax highlighting HOT 1
- [Question] Combine default markdown syntax and vimtex syntax? HOT 3
- cite command syntax highlighting including various variants introduced by biblatex-chicago HOT 23
- Neovim and Zathura: no inverse search HOT 4
- about slow syntax highlighting HOT 12
- citekey autofill not working with \Volcite and \volcite when using correct biblatex syntax HOT 4
- zathura_simple on wayland not outputting pdf HOT 7
- Contents on Zathura are not recoganizable when doing forward search if the cursor stays on an equation environment HOT 1
- Disregard contents of "comment" environment HOT 6
- Errors E716 E116 when running :VimtexTocOpen in a file containing a \label HOT 3
- Item Option highlight group and concealing HOT 3
- How to replace deprecated option 'vimtex_view_general_options_latexmk'? HOT 4
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.