Coder Social home page Coder Social logo

vintageous_plugin_surround's Introduction

Vintageous_Plugin_Surround

Experimental plugin for Vintageous

Download

The current build is updated frequently.

vintageous_plugin_surround's People

Contributors

dylanbruzenak avatar guillermooo avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar

vintageous_plugin_surround's Issues

Package control

Hello,

It'd be great to have this in package control. Many users, including me, use tools like boxen or dropbox to synchronize the Package Control settings file, which then installs dependent packages that are not present yet.

Sadly this approach is with manual installs not that easy.

Any estimate on when we can see a package control release?

Some errors on loading in ST3, build 3062

The functionality is still there, but here's backtrace from the ST's console.

Unfortunately i'm not a python guy, so no idea how to dig deeper, sorry.

reloading plugin Vintageous_Plugin_Surround.action_cmds
reloading plugin Vintageous_Plugin_Surround.builder
Traceback (most recent call last):
  File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 73, in reload_plugin
    m = importlib.import_module(modulename)
  File "./importlib/__init__.py", line 90, in import_module
  File "<frozen importlib._bootstrap>", line 1584, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1565, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1532, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 584, in _check_name_wrapper
  File "<frozen importlib._bootstrap>", line 1022, in load_module
  File "<frozen importlib._bootstrap>", line 1003, in load_module
  File "<frozen importlib._bootstrap>", line 560, in module_for_loader_wrapper
  File "<frozen importlib._bootstrap>", line 868, in _load_module
  File "<frozen importlib._bootstrap>", line 313, in _call_with_frames_removed
  File "/Users/michael/Library/Application Support/Sublime Text 3/Packages/Vintageous_Plugin_Surround/builder.py", line 16, in <module>
    description="Builds .sublime-package archives.")
  File "./argparse.py", line 1598, in __init__
AttributeError: 'module' object has no attribute 'argv'
reloading plugin Vintageous_Plugin_Surround.test_runner

OSX, recent change to Vintageous, no longer working

After a recent update to Vintageous, this stopped working for me. During startup, the following was output to the console:


reloading plugin Vintageous_Plugin_Surround.action_cmds
Traceback (most recent call last):
  File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 73, in reload_plugin
    m = importlib.import_module(modulename)
  File "./importlib/__init__.py", line 90, in import_module
  File "<frozen importlib._bootstrap>", line 1584, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1565, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1532, in _find_and_load_unlocked
  File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 671, in load_module
    exec(compile(source, source_path, 'exec'), mod.__dict__)
  File "action_cmds in /Users/ericwest/Library/Application Support/Sublime Text 3/Installed Packages/Vintageous_Plugin_Surround.sublime-package", line 4, in <module>
ImportError: cannot import name regions_transformer

Does not correctly work with multiple cursors

To reproduce:

  • Click at the beginning of a word on a line. cmd-click (or whatever if you're not in a mac) to add a second cursor position at the beginning of another word, then do that with several different lines.
  • press v for visual mode, e to move to the end of the word, and then S " to surround all of them with quotes

On my system this correctly surrounds the first line, but the other lines don't work correctly and the quotes go to weird places.

This is a fantastic tool -- thanks!

No documentation

I'm not even sure if this plugin works because there's no indication on what expected behaviour is

I'm assuming I'm supposed to be able to do things like csw in normal mode but I'm getting no response from this plugin

how do I start debugging this?

Delete surround & change surround

I see that the commands seem to be implemented by I can't seem to get them to work.

<p>This is a 'paragraph' of text and stuff and junk.</p>

Say my cursor is on the 'a' in 'paragraph', if I type ds' nothing happens. Sometimes I can get change surrounding to work by hitting the quote twice, like: cs''", but it isn't reliable.

I can see, in Sublime's status bar, it shows the method vi_plug_c_s vi_quote, but nothing happens on screen.

Any ideas?

Error on plugin loading

Hi,

ST3 Build 3047 Portable
Windows 7 SP1 x64 German

I get this right after starting up ST3:

reloading plugin Vintageous.actions
reloading plugin Vintageous.ex_commands
reloading plugin Vintageous.ex_main
reloading plugin Vintageous.ex_motions
reloading plugin Vintageous.jump_list_cmds
reloading plugin Vintageous.motions
reloading plugin Vintageous.run
reloading plugin Vintageous.state
reloading plugin Vintageous.test_runner
reloading plugin Vintageous.transformers
reloading plugin Vintageous.transformers_visual
reloading plugin Vintageous_Plugin_Surround.action_cmds
reloading plugin Vintageous_Plugin_Surround.builder
Traceback (most recent call last):
  File "D:\Tools\Sublime Text\sublime_plugin.py", line 73, in reload_plugin
    m = importlib.import_module(modulename)
  File "X/importlib/__init__.py", line 88, in import_module
  File "<frozen importlib._bootstrap>", line 1577, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1558, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1525, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 586, in _check_name_wrapper
  File "<frozen importlib._bootstrap>", line 1023, in load_module
  File "<frozen importlib._bootstrap>", line 1004, in load_module
  File "<frozen importlib._bootstrap>", line 562, in module_for_loader_wrapper
  File "<frozen importlib._bootstrap>", line 869, in _load_module
  File "<frozen importlib._bootstrap>", line 313, in _call_with_frames_removed
  File "D:\Tools\Sublime Text\Data\Packages\Vintageous_Plugin_Surround\builder.py", line 16, in <module>
    description="Builds .sublime-package archives.")
  File "X/argparse.py", line 1598, in __init__
AttributeError: 'module' object has no attribute 'argv'
plugins loaded

Can't get this plugin to work

Mac OS X Yosimite, ST3. Put in Installed Packages, listed it in Package Control.What other information should I include?

Add surround characters in visual mode

The feature I use most with surround (that is missing fom this plugin) is to select text in visual mode, press S (uppercase s), and then type the character I want it to be surrounded with (see an example).

The cases that have different opening and closing characters produce different result (although I don’t use both cases). In the example above, I pressed ), which produced (a text), but if ( had been pressed instead, the result would be ( a text ).

Map conflicts

Not sure if this issue belongs in Vintageous main or here, I can move it if you want.

I run colemak so I remapped movement keys to s, t, n, e. With normal commands (i.e. f, n) everything works fine, but Surround thinks I'm pressing c h (because of :map s h). Would there be a way to fix this? Or is this unavoidable due to the architecture of handling key bindings and presses?

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.