Giter VIP home page Giter VIP logo

sublime-smart-delete's Introduction

Sublime Text Smart Delete Plugin

Plugin for Sublime Text to smart delete all spaces before or after carret.

Delete at end of line

screenshot

This plugin gives you smart_delete command for Sublime Text. With it you can "join" (delete all space symbols) between two lines by pressing just one key.

Default keyboard shortcut: Delete

OS support: Windows, OS X, Linux

Notice: If you are on OS X, please take a note that to execute delete operation you should press Fn + Delete

Installation

With Package Control

If you have the Package Control package installed, you can install Smart delete plugin from inside Sublime Text itself. Open the Command Palette Ctrl+Shift+P and select "Package Control: Install Package", then search for Smart delete plugin.

Without Package Control

If you haven't got Package Control installed you will need to make a clone of this repository into your packages folder, like so:

git clone https://github.com/mac2000/sublime-smart-delete.git

If you find error feel free to create issue on this repository.

Inspired by reSharper plugin for Visual Studio.

Contributors

Jay Gillibrand

sublime-smart-delete's People

Contributors

mac2000 avatar gillibrand avatar

Stargazers

Roman avatar MR.LI /MR LEE avatar Tomohiro Uno avatar Gaurav avatar Rin Kato avatar James Benner avatar Muah avatar  avatar Chance avatar Jacob Groß avatar Luis Martins avatar

Watchers

 avatar James Cloos avatar  avatar

Forkers

fnnzzz

sublime-smart-delete's Issues

Sublime Text 3 support

Seems to work fine in Sublime Text 3 (3047) at least on OS X. If this goes for other OS'es as well, maybe the name could be amended to reflect that?

And thanks for the great plugin!

[Feature request] No backspace if carriage in line beginning

1. Request

It would be nice, if you add command to run backspace command only if carriage is not in line beginning.

2. Justification

I record macros. I need same behavior if I have text before carriage and if my carriage in beginning of line, because now I can get different macros results.

3. Actual behavior

If I run native Sublime Text Delete to Hard EOL macro (Ctrl+Shift+Backspace in Windows by default):

Actual behavior

I have same behavior if I run native Sublime Text Delete to EOL macro.

4. Desirable behavior

  • If I have text before carriage, all text before carriage was deleted, carriage move to beginning of line.
  • If I have not text before carriage, nothing occurs. Carriage not move to previous line.

Thanks.

Sublime Text 3 Compatibility?

Just installed this plugin via Package Control and it isn't working. I try hitting the delete key (OSX) at the end of a line of code and it just backspaces.

Am I missing something?

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.