Giter VIP home page Giter VIP logo

Comments (10)

Iristyle avatar Iristyle commented on August 16, 2024 1

I actually don't like this shift+tab behavior.. shift+tab is a global unident command.

If I have highlighted text, I expect to unident a slab of text, not invoke some code folding thing.

IMHO, you should remove these keybindings, and make them opt-in by manual customization of the keymap. I generally think its a bad idea to intrusively change inherent Sublime key bindings.

I think you should also be able to scope them down even further, so that they won't, for instance, apply when a block of text is selected.

from smartmarkdown.

demon386 avatar demon386 commented on August 16, 2024

Very good suggestion. You might take a look at GlobalFoldingCommand at smart_folding.py. I think, by adjusting the level of headline, you can achieve that.

I will appreciate very much if you can hack that. Otherwise I would do it later when I have time.

Thanks!

from smartmarkdown.

palaniraja avatar palaniraja commented on August 16, 2024

Shift + Tab conflicts with traversing table cell backwards and global unfolding.

Sorry, too early to comment. It works as expected, it seems I was in last cell to out of table and + to re-enter into to last cell.

from smartmarkdown.

djs070 avatar djs070 commented on August 16, 2024

Personally, I use Super + [ as global unindent, as Shift + Tab does not unindent the current line when there is no selection.

Is this the standard behaviour on platforms other than OS X?

from smartmarkdown.

kaimantsch avatar kaimantsch commented on August 16, 2024

I think what michael-cantera is saying, at least as I remember emacs working, is that shift+tab toggles through: all h3s closed, all h2s closed, all h1s closed, all open. This would be a REALLY useful feature. (So I guess this is really a feature request / enhancement.)

from smartmarkdown.

stevepowell99 avatar stevepowell99 commented on August 16, 2024

Yes, great plugin - Kalmantsch, on my emacs at least, shift-tab cycles thru all unfolded, just H1, then all Headings, but no bodytext. This is IMHO the best compromise. Would LOVE to see this.
Second feature request: emacs (and MS Word, which is a great outliner if nothing else) gives you 8 options for moving headlines: up, down, promote, demote (mapped to the arrow keys), and for each you can just move the heading (add Shift key for this) or move everything under the heading too. Right now SmartMarkdown only has two of these. Real outline junkies need all 8. Would this be possible? plEEEEASE?

from smartmarkdown.

stevepowell99 avatar stevepowell99 commented on August 16, 2024

I would be interested in offering a small bounty to get something like this working. Those eight motions plus some way of folding/unfolding level by level globally.

from smartmarkdown.

reagle avatar reagle commented on August 16, 2024

Yes, I'd add my interest in this request for a cycling fold command as well. That is, unfold to show just the h1s, just the h2s, just the h3s, etc.

from smartmarkdown.

reagle avatar reagle commented on August 16, 2024

BTW: It looks like there's toggle functionality in the fold-em-all branch from over a year ago. Why no merge?

from smartmarkdown.

stevepowell99 avatar stevepowell99 commented on August 16, 2024

+1 for any or all of these suggestions!

from smartmarkdown.

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.