micro-editor / micro-editor/micro

Browsing folders with space in their name

Open
#2,724 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
29.6k
Forks
1.4k
Avg merge
2d 18h
Merged PRs (30d)
10

Description

It seems that Micro has problems when opening files that are in folders with a space in their name.

For example, there are two files:

/home/user/Downloads/gistfile1.txt

/home/user/Downloads/gist file/gistfile1.txt

In the ctrl-o dialogue, I start typing ~/Downloads/g then press tab - and Micro correctly suggests two options, the file and the folder.

But when I type ~/Downloads/gist (with a space in the end), Micro suggests /home/user/Downloads/gist .Xauthority This file .Xauthority is not in the Downloads folder.

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 reproducing the issue in the ctrl-o dialogue with the two Downloads paths shown, especially the folder containing a space. Trace the path-completion entry point used after typing ~/Downloads/gist ; done means completion stays within the intended folder and correctly handles paths containing spaces.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.