Skip to content

A VS Code extension to easily tag/alias files & quick switch between files

Notifications You must be signed in to change notification settings

penguine99/file-ops

 
 

Repository files navigation

File Ops

Easily tag/alias files & quick switch between files.

Overview

1. File Tag - Tag/Alias/Bookmark files

2. Quick Switch - Quickly switch between files. ex. Switch between example.css & example.js using Ctrl/Cmd+E

3. Switch to Related Files - View files from the current directory and switch

Watch Demo

Features

File Tag

  • Create, Open, Edit, Delete file tags using commands.

  • Open, View, Edit, Delete file tags from the tree view.

    File Tag Demo

Quick Switch

Quickly switch between extension pairs. ex., Switch between .css & .js files in the same folder. Extend the functionality by providing custom pairs.

Note: By default, index.js file is skipped so the file wont be considered for switch. Check fileOps.fileSwitch.excludeFiles to override.

Quick Switch Demo

Related Files

View all the files from the current directory

Related Files Demo

Note: All extension data is stored in a file named .file-tag which gets created in root workspace directory. Please do not make any changes to that file.
Add it to .gitignore based on the needs

Commands

Run commands by opening Command Palette Control+Shift+P / Command+Shift+P

File Tag Commands

File Switch Commands

Keyboard Shortcuts

Quick Switch - Command+E / Control+E

Show related files & switch - Command+Shift+E / Control+Shift+E

Extension Settings

This extension contributes the following settings:

  • fileOps.fileSwitch.quickSwitchPairs: Array of quick switch pairs. ex., [".js,.ts/.css,.scss"].

    Accepted regex: /^(\.[a-z]+)(,(\.[a-z]+))*\/(\.[a-z]+)(,(\.[a-z]+))*$/

Defined values for quickSwitchPairs in the extension is [".js,.ts/.css,.sass,.scss", ".js/.js", ".json/.md"]. Please create an issue for the defined pairs you require & it will be added in default value list.

  • fileOps.fileSwitch.excludeFiles: Array of files names to exclude from quick switch. Default value is ["index.js"]

About

A VS Code extension to easily tag/alias files & quick switch between files

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 100.0%