Code Monkey home page Code Monkey logo

same-rename's Introduction

Same Rename

I was bored with renaming every file I created in Visual Studio Code. So I created this so I could rename the files in the same why every time by just running the command.

Features

Renames the file by lowercasing the file name and replacing the spaces with hyphens. It's a niche requirement. I'm not expecting anyone else to really need this, but if you do, then that's cool!

I use Visual Studio Code for note taking and I want the name of the file to be the first line of its content, which in my case is the title of the document. However, by default, Visual Studio Code uses it verbatim, but I want the title to be title case, and I want the filename to be lowercase with the spaces replaced by hyphens. Which is what the command this extension has does.

Instructions

  1. Save your file
  2. Look for the command Same Rename in the command palette and run
  3. Use the time you've saved to do something productive, like pick your nose, or scratch your head

Example

Filename before command: 2023-05-05 This Is A Really Good Title.md

Filename after command: 2023-05-05-this-is-a-really-good-title.md

Known Issues

It's more about unknown unknowns at this point.

Release Notes

0.0.1

First release. Lowercasing and replacing spaces with hyphens is hard coded. Limited testing done. I'm sure there will be issues!

0.0.2

Update README

0.0.3

Update README for Tony

same-rename's People

Contributors

douglaswaugh avatar

Stargazers

 avatar Antony Denyer avatar

Watchers

James Cloos avatar  avatar

Forkers

stevenvandijk

same-rename's Issues

Pattern used for rename not configurable

It would be nice if custom configurations could be used by the renamer. Perhaps something as simple as lowercase/uppercase/leave case and choice of seperator or fully customisable with regex.

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.