Comments (3)
Good ideas. (though I'm not sure I follow the third bullet point).
- If we add tab insertion, we should also add the option to insert tabs or spaces. E.g. the coding standard I use at work requires two space indentation (and no tabs) and it's really troublesome if the editor inserts tabs. Though some other employer may require tabs and it would be great for ci_edit to work for those users as well.
On the third bullet point:
-
Would pressing tab a second time then insert a tab (i.e. if the cursor is already at the first non-whitespace character or eol)?
-
I've noticed that some editors will do something similar iiuc, with the HOME key. e.g. there are two 'home' positions. One is at the first character of the line (textBuffer.line[N][0]) and the other is at the first non-blank character (or eol). Pressing HOME repeatedly will move the cursor between the two home positions.
from ci_edit.
Yeah I think the first bullet is a good idea and the third bullet is an interesting one that I haven't heard of. I think that sounds fun to use and would like to see it implemented. Maybe I'll take it on soon if I can't find any other bugs.
As for the second bullet point, I think it logically makes sense to insert a tab the second time. I can't think of any other functions that it could have since the first tab should put the line at supposedly the correct indentation level.
from ci_edit.
What do you think backtab should do when no text is selected? Should it do a simple tab, do nothing, or have some other function? It doesn't seem exactly perfect to make it unindent the entire line when a regular tab inserts a tab at the cursor's current position.
from ci_edit.
Related Issues (20)
- Executing full_test when inside tools directory gives error HOT 1
- Confirmation on quit HOT 1
- Delay in updation of status bar
- Fuzzy search inside the current work directory HOT 3
- AttributeError: module 'profile' has no attribute 'run' HOT 12
- Add ctags support HOT 2
- Add language server support HOT 1
- Move unit tests to the appropriate directory HOT 1
- Add a command to split the editor horizontally HOT 2
- Add a package to pypi HOT 1
- Is there a way to highlight the line in case of a syntax error? HOT 1
- 'str' object has no attribute 'decode' , Chinese user HOT 4
- Is there anyone who is working on "user customizable color scheme" ? HOT 7
- UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc3 in position 0: invalid continuation byte HOT 5
- Undo after File closing HOT 1
- Running ci_edit under Python 2 HOT 1
- py formatter needs prefs
- Cannot open file. Ubuntu 18.04 HOT 3
- How to remove auto-indentation? HOT 3
- Red highlighted words all over the place HOT 2
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 ci_edit.