Giter Club home page Giter Club logo

Comments (3)

dschuyler avatar dschuyler commented on August 24, 2024

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.

aaxu avatar aaxu commented on August 24, 2024

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.

aaxu avatar aaxu commented on August 24, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.