tpope / tpope/vim-eunuch

feature request: alias rm/unlink for Trash

Open
#106 1 comment 5 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Vim Script
Stars
1.9k
Forks
79
PR merge metrics
No merged PRs in 30d

Description

I used :Delete but I noticed the file disappeared entirely as opposed to moving to the trash/recycle bin.

On my system I have rm aliased as trash

Outside the plugin, vim seems to respect my alias, but vim-eunuch does not.

Having it respect my alias or allowing me to configure what eunuch uses internally would be a nice feature.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the implementation of the :Delete command and the other file-removal commands in vim-eunuch. Determine how the plugin invokes rm or unlink, then define a configurable or alias-aware behavior that moves files to the user's trash; done means deletion no longer bypasses the requested trash command.

Written by the indexing model from the issue text.

Assessment

Tech stack
vim
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.