Comments (3)
Okay, after noticing that ST adds a fourth "
when typing """
resulting in """"
but does not do it for single quotes. ('''
remains ''''
). It seems that the expected behaviour does occur. It is however odd that when pressing the enter key after the third double quote in """"
generates:
def foo(bar):
""""
[description]
Args:
bar: [description]
"""
It keeps the four double quotes and does not generate the summary. I'm not sure whether there is a conflict somewhere between my packages. Could you perhaps test whether this is the case with your Sublime Text installation?
from sublime_docblockr_python.
I'd venture a guess that it's parsing the 4th "
as the summary line, and automatically replaces that into the snipped segment, leading to the unexpected behavior like you're describing.
At present, this: (where |
is the cursor)
def foo():
"""|Testing
Should result in this, where your initial line is preserved:
def foo():
"""Testing
[description]
"""
As to why it's not working with the single quotes, I think my keymap is only for double quotes. I think this was an effort to enforce adhering to PEP0257, which states to only use triple double quotes.
Lastly about the quad-quote, You might have an additional plugin that is causing that behavior. I'm running pretty bare metal on the python plugins, and i'm not experiencing anything like that. You might try disabling them to try and give a confirmation on that.
from sublime_docblockr_python.
@adambullmer thank you for the swift reply. I wasn't referring to the triple single quotes that wasn't working as I use double quotes for docstrings. I guess I'll have a look at which package causes the troubles.
from sublime_docblockr_python.
Related Issues (20)
- I did a fresh install of build 3126 and installed this and it doesn't seem to be working. HOT 4
- ***<Enter> trigger does nothing HOT 4
- cls argument is ignored even if it's not the first argument. HOT 1
- Stopped working. Enter does not give docstring anymore HOT 2
- Suuport MagicPython? HOT 1
- Variables from other classes being fetched HOT 4
- Handle duplicates of Exceptions
- Creates docstrings with whitespaces in numpty HOT 2
- Not working with MagicPython syntax HOT 11
- doesn't work with argument type hinting
- doesn't work with return type hinting
- doesn't work when return statement followed by string literal
- parser breaks when square brackets in default value HOT 2
- Where to put custom formatter?
- Unexpected behavior at the end of docstring
- Creates docstrings of functions with multi-line parameters
- Update docstring
- Can't work in ST4 HOT 7
- Functionality broken in Sublime Text 4 HOT 9
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 sublime_docblockr_python.