Giter Site home page Giter Site logo

tophee / alfred_workflow-replace_semicolons Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 73 KB

This simple Alfred workflow replaces semicolons/dots/commas from the clipboard with linebreaks

Home Page: https://alfred.app/workflows/tophee/replace-semicolons-with-linebreaks/

alfred-workflow

alfred_workflow-replace_semicolons's Introduction

Alfred workflow to replace semicolons/ commas from the clipboard

The problem

Keywords in academic articles are usually separated by semicolons/dots or commas but if you try to copy and paste these keywords into Zotero (and possibly other reference managers), the whole list will be converted into a single tag.

The solution

In order for Zotero to create a separate tag for each keyword, each keyword has to be in a line of its own. In other words: semicolons/dots/commas need to be replaced by linebreaks. And that's exactly what this workflow does.

The workflow provides two ways of achieving the same thing:

You can copy the keywords the normal way (โŒ˜+C) and then use the assigned hotkey to paste them, or You can copy the keywords using universal actions (Select "Replace semicolons/dots and copy") and then paste them the normal way (โŒ˜+V).

Either way, semicolons/dots will be replaced by linebreaks.

So replacing semicolons/dots is the default behaviour but in both cases, you can use the option key to replace commas instead of semicolons/dots.

Commas are not replaced by default, because they are sometimes used within keywords. So, when commas are used to spearate the keywords, you need to explicitly tell it so.

A note on the dots: different journals use different dot-characters to separate their keywords. I included multiple versions, but you will probably come across some dot-characters that I missed. You can just add them into the [ ] inside the workflow.

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.