Coder Social home page Coder Social logo

stvimhelper's Introduction

Vimwiki Helpers for SmartThings Tools

I like to keep track of outstanding reviews, tickets, etc. in vimwiki. One annoyance though is adding those tasks to vimwiki: the links for Atlassian and Github don't include title information in their URLs, so I'm stuck either having to enter my own titles or having to open links to remind myself what they are.

This little script uses the tool APIs to take a URL and return a formatted vimwiki link that has the URL, type (i.e. Confluence, Github), and title. This is mapped to a keybinding in vim that reads the current value from my clipboard so all I have to do to insert the link is copy it from an email, Slack, etc and hit the keybinding.

The binding can be installed with a vim plugin manager, i.e. for Plug. The helper script also needs to be on your PATH - I manage these together with pipx and the Plug do command:

Plug 'nastevens/stvimhelper', { 'do': 'pipx install --force .', 'for': 'vimwiki' }

With that inserting a link from the clipboard is bound to in insert mode.

License

Copyright (c) 2021, Nick Stevens [email protected]

Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or http://www.apache.org/license/LICENSE-2.0> or the MIT license <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your option. This file may not be copied, modified, or distributed except according to those terms.

stvimhelper's People

Contributors

nastevens avatar

Watchers

James Cloos avatar  avatar

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.