helix icon indicating copy to clipboard operation
helix copied to clipboard

Numeric file suffix not visible

Open bburdette opened this issue 3 years ago • 1 comments

Summary

Using :o to open a file. The desired filename is present, but without its terminating number '2'.

Reproduction Steps

Opening a file, it appears there are two of the same name "hardware-configuration.nix.bkup":

image

typing in bkup2 narrows it down to one:

image

tabbing to select it reveals the full name in the command area:

image

I expected to see the full name in the file listing area.

Helix log

~/.cache/helix/helix.log
[root@HOSS:~/.cache]# cat helix/helix.log
2022-10-03T12:38:16.043 helix_view::editor [ERROR] Failed to initialize the LSP for `source.nix` { cannot find binary path }
2022-10-03T21:37:54.569 helix_view::editor [ERROR] Failed to initialize the LSP for `source.nix` { cannot find binary path }
2022-10-03T21:40:04.488 helix_view::editor [ERROR] Failed to initialize the LSP for `source.nix` { cannot find binary path }
2022-10-10T08:56:27.215 helix_view::editor [ERROR] Failed to initialize the LSP for `source.nix` { cannot find binary path }
2022-11-02T11:26:57.391 helix_view::editor [ERROR] Failed to initialize the LSP for `source.nix` { cannot find binary path }
2022-11-18T09:46:05.075 helix_view::editor [ERROR] Failed to initialize the LSP for `source.nix` { cannot find binary path }
2022-11-25T11:07:47.392 helix_view::editor [ERROR] Failed to initialize the LSP for `source.nix` { cannot find binary path }
2022-11-25T11:07:53.769 helix_view::editor [ERROR] Failed to initialize the LSP for `source.nix` { cannot find binary path }
2022-11-25T12:33:15.602 helix_view::editor [ERROR] Failed to initialize the LSP for `source.nix` { cannot find binary path }
2022-11-29T10:17:30.488 helix_view::editor [ERROR] Failed to initialize the LSP for `source.nix` { cannot find binary path }
2022-12-02T10:14:39.696 helix_view::editor [ERROR] Failed to initialize the LSP for `source.nix` { cannot find binary path }
2022-12-02T10:17:20.829 helix_view::editor [ERROR] Failed to initialize the LSP for `source.nix` { cannot find binary path }
2022-12-02T10:22:41.299 helix_view::editor [ERROR] Failed to initialize the LSP for `source.nix` { cannot find binary path }```

</details>


### Platform

nixos unstable

### Terminal Emulator

alacritty 0.11.0

### Helix Version

helix 22.08.1 (66276ce6)

bburdette avatar Dec 02 '22 17:12 bburdette

If the file name doesn't fit, helix will cut off the trailing characters. I think this is the case here.

CptPotato avatar Dec 05 '22 09:12 CptPotato

I think @CptPotato provided the correct explanation here. Long file names are truncated and you just got unlucky that the number happend to be at the end of the file. We could think of a way to indicate the truncation in the UI but that needs design discussion or at-least a separate issue.

I am closing this issue as it's not immediately actionable.

pascalkuthe avatar Jan 18 '23 11:01 pascalkuthe