Comments (4)
This is now fixed in master, as it uses combobulate's proffer interface for presenting choices. (though that may indeed throw up other bugs!)
from combobulate.
Can you supply an example where it "picks up" stray code?
from combobulate.
Sure:
def foo():
[X]if True:
x = 1
if not True:
x = 2
Hit Tab
at the [X]
:
def foo():
if True:
x = 1
if not True:
x = 2
Hit Tab
again and the bottom if
block gets swept into the indent:
def foo():
if True:
x = 1
if not True:
x = 2
I note that the region is not active after each of these indent commands, despite combobulate-python-indent-mark-region=t
. If I explicitly mark the region, it constrains the indent as expected. So perhaps the region not remaining active is the issue.
Couple other small points:
- By default,
python-indent-line
starts with "no change", which meansTab
returns you to the current indentation if not already there, leaving indent unchanged. Maybe this could be construed is a mis-feature, but I bet a lot of people are used to it (including me). - It would be preferable if indent commands preserved column position with respect to the text they are indenting. I.e. after the second
Tab
above, point is left at the beginning of the line (instead of at column 4, adjacent to the text it just indented). Again, this is the behavior ofpython-indent-line
.
Thanks for your work on combobulate!
from combobulate.
Huh, I never tweaked this behaviour before. Thanks for reporting it
I'll see about using the region properly; ditto the marking, which of course should work, whether it's visible or not.
from combobulate.
Related Issues (20)
- combobulate-navigate-{previous,next} crash with "Unknown key in procedure" HOT 7
- query-builder status is truncated without wide window HOT 4
- C-g quits all transients, not the innermost one HOT 3
- Adding support for a new language HOT 4
- Installation error from github -- submodule permission denied HOT 2
- Is there any methods to toggle hl-line-mode when start or end combobulate-mark-node-dwim command ? HOT 1
- binding esc key ot combobulate-proffer-map failed.
- weird cursor jumping when editing attributes in tsx code HOT 8
- branch checkout failure on Windows OS with NTFS HOT 3
- Status of toml support HOT 1
- combobluate-avy-jump fails with Node type error. HOT 1
- What is proper way to remove a default highlight rule? HOT 6
- Symbol's value as variable is void: _ HOT 12
- Python annotation navigation behaviors HOT 2
- Which emacs theme did you use for the screenshots ?
- Warnings from transient HOT 3
- combobulate-proffer-indentation's interactive spec is broken
- Combabulate, Selection And Speking HOT 4
- Idea: optional single-key modal operation while in carousel
- disable cycling for expand region HOT 5
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 combobulate.