Comments (12)
I found a workaround.
- Go to: settings (mac:cmd+, Windows-Linux:Ctrl+,) > Open Config Folder (in the left panel)
- open: packages/latextools/lib/snippet-manager.coffee
case 1: for the $-matcher, find and comment the code:
if text = te.getSelect edText()
text = text.replace(/\\/g, "\\\\")
range = te.getSelectedBufferRange()
te.setSelectedBufferRange(range, '')
@snippetService.insertSnippet("\$#{text}\$")
return
replace it by:
range = te.getSelectedBufferRange()
text = te.getTextInBufferRange(range)
text = text.replace(/\\/g, "\\\\")
if text
@snippetService.insertSnippet("\$#{text}\$")
return
case 2: for the ' and "-matcher, find and comment the code:
if text = te.getSelectedText()
text = text.replace(/\\/g, "\\\\")
range = te.getSelectedBufferRange()
te.setSelectedBufferRange(range, '')
# Use snippet to leave selection on (same as ST)
@snippetService.insertSnippet("#{left}${1:#{text}}#{right}")
return
replace it by:
range = te.getSelectedBufferRange()
text = te.getTextInBufferRange(range)
text = text.replace(/\\/g, "\\\\")
if text
@snippetService.insertSnippet("#{left}${1:#{text}}#{right}")
return
Caveats
any update of the latextools package will delete your editings
from atom-latextools.
+1: Similar thing (quotes) started happening to me on OSX Sierra (10.12.6) using Atom 1.23.1 x86 with LatexTools 0.8.5.
Steps to reproduce:
- Save document as
tex
file - Type text, select word(s), and type
"
- Error is triggered, linking to this issue.
Happy to provide more details if needed (eg package-list, console log, etc).
from atom-latextools.
To me it also happens where doing CMD+L+E to start an environment.
from atom-latextools.
Same here. Not sure how to fix that
from atom-latextools.
I can confirm that the bug is still there. I am using Atom 1.23.3 on High Sierra 10.13.3. It affects the dollars $
, as well as single quote '
, double quote "
, two single quotes ''
and the backtick `
. It is getting frustrating now...any ideas on how to fix it?
from atom-latextools.
This bug is nearly a showstopper for the plugin and has been open for months. It's getting embarrassing on top of frustrating...
from atom-latextools.
It is the same for Atom 1.24.0, I've tried reinstalling, however the problem is still there.. and it's been there since late 2017... really frustrating..
from atom-latextools.
Still here in April, with Atom 1.25.0. Really frustrating!
from atom-latextools.
Still here in May, with Atom 1.26. Is this plugin maintained at all? If authors do not care about fixing embarrassing bugs they could just flag the package as unmaintained or deprecated so we can move on.
from atom-latextools.
What a hero! This is working for me, but I had issues with indenting to start with, so make sure it all matches up if you're having trouble.
Thank you, oaroldan! <3
from atom-latextools.
@findlayjy Nice to know that it helped you! Thanks for let me know about the indenting issue (I updated my post to include this)
from atom-latextools.
@oaroldan Thank you so much! It worked for me too!
Shall we close the issue or leave it open hoping that someone fix this thing once and for all?
from atom-latextools.
Related Issues (20)
- Citation autocompletion triggers focus stealing bug.
- -shell-escape is not properly passed HOT 5
- Uncaught TypeError: Cannot read property 'nextElementSibling' of null
- Sumatra PDF viewer cannot be invoked HOT 3
- Expand Abbreviation
- Arch/Manjaro Linux: Issues with xelatex HOT 2
- Extra backslash in autocomplete
- Uncaught TypeError: Cannot read property 'length' of undefined
- Support for \(...\) to wrap math expression
- Uncaught Error: ENOENT: no such file or directory, open 'D:/main.tex' HOT 1
- Cite auto trigger - bibliography inside class file
- when triggered \ref{ or \cite{ it thinks that PATH in \input{PATH} is relative
- atom-latextools package abandoned?
- Uncaught TypeError: Cannot read property 'insertSnippet' of null
- Uncaught Error: ENOENT: no such file or directory, open '~/Learning/Astronomy 夊ćĺŚ/Astronomy_Today...
- Hotkey change error HOT 1
- Double dollar sign
- RAM/swap usage increasing as compiling
- Latex log
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 atom-latextools.