Code Monkey home page Code Monkey logo

incrementselection's People

Contributors

vivekkalyan avatar yulanggong avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

incrementselection's Issues

Group restart sequence

I m not sure how - or if - it is possible (an enhancement perhaps).
Here is a sample of an XML file.

<person>
  <name>Jane</name>
  <item>wallet</item>
  <item>car</item>
  <item>tv</item>
  <item>cellphone</item>
</person>
<person>
  <name>Chris</name>
  <item>pc</item>
  <item>cat</item>
</person>

I d like enumeration to restart somehow on each persons group of items like this

<person>
  <name>Jane</name>
  <item1>wallet</item1>
  <item2>car</item2>
  <item3>tv</item3>
  <item4>cellphone</item4>
</person>
<person>
  <name>Chris</name>
  <item1>pc</item1>
  <item2>cat</item2>
</person>

not incrementing selection

sublime: ver 3.2.2; build 3211
os: ubuntu 18.04.3

Not incrementing numbers as expected
EG. I select 1,2 and 3; run command and getting back 1,2,3
[1] text [2] text [3] text -> 1| text 2| text 3| text
Desired result is increment to numbers 2,3,4:
[1] text [2] text [3] text -> 2| text 3| text 4| text

Shortcut doesn't work on Mac

When I try to use this package on my Mac (pressing the shortcut command + ctrl + i) I get the character 1 instead of executing the package.

IndexError: string index out of range

Ran this on my ST3, got error:

Traceback (most recent call last):
  File "/opt/sublime_text_3/sublime_plugin.py", line 549, in run_
    return self.run(edit)
  File "IncrementSelection in /home/krister/.config/sublime-text-3/Installed Packages/Increment Selection.sublime-package", line 16, in run
IndexError: string index out of range

Can it be an open source project?

Searching through the repository I cannot find any mention to open source licence. By this project being on Github, I am allowed to fork it by the Github TOS (Terms Of Service). However I am not allowed to create derivative works from it (pull requests). Meaning I cannot fork this repository, change its code and perform pull requests without the danger/liability of being prosecuted by violating the All rights reserved copyright granted by berne convention law.

The original prime theme for Sublime Text has the licence following open source licence:

The MIT License (MIT)

Copyright (c) 2014 Karel Vuong

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
  1. https://github.com/karelvuong/st-primer/blob/master/LICENSE

Can the project have the same licence?


Related issues:

  1. gamcoh/QuickEdit#2 Can it be an open source project?
  2. SublimeText/LaTeXTools#1175 Can it be an open source project?

Error when only 1 line

When only one line, this plugin dont work. This should be generate number 1 . But in console, it cause error.

Selections from existing files can't be incremented

Hi, I love the plugin! Thank you for putting it together, as I find myself incrementing sequences all the time. One small thing is that if I want to increment a sequence which already exists in a file or maybe something I copy/paste en mass between files, the increment command doesn't work. If I then reselect all the sequences, delete the last number, replace the last number with a zero or whatever the smallest number in that position of my sequence is, then use the command, it works and I can increment the existing sequences. But it would be a lot simpler if the plugin could increment a multiple selection of preexisting sequences without having to delete and reenter the last digit or character.

This isn't really a bug, since the description clearly states that the plugin is designed to add numbers to selections, but it seems like an obvious use for such a command and it's so close to being able to do this in one command.

Add usage notes

In the unfortunate circumstance that the Stackoverflow answer which this project links to, gets deleted, users will not be able to know how to use it.

Perhaps you can expand the readme to add the complete usage instructions?

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.