randy3k / Terminus

Bring a real terminal to Sublime Text
https://packagecontrol.io/packages/Terminus
MIT License
1.39k stars 81 forks source link

BUG. Duplicate letter "d". Terminus v.0.2.31 #141

Closed kat0d closed 5 years ago

kat0d commented 5 years ago

Hi, a really annoying bug. When I press a letter "d" and any button after, letter "d" duplicates, for example, when I press "c","d" and "space", it makes "cdd", "sd" -> "sdd" "cds" -> "cdds" And so on... See picture terminus OS: Windows 10 x64 LTSC

randy3k commented 5 years ago

That’s strange....would you turn on the debug setting in Preferences and report the console log?

kat0d commented 5 years ago

After "cd"->"cdd"


sent: 
receieved: [?25l
PS W:\www\cordova-test\MyApp\www> c


























[?25h
add 0 line(s) to scroll back history
screen is dirty: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13]
updating lines takes 0.012964963912963867s
mode: [7, 25], cursor: 35.0
receieved: [?25l
PS W:\www\cordova-test\MyApp\www>


























[?25h
add 0 line(s) to scroll back history
screen is dirty: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13]
updating lines takes 0.012967109680175781s
mode: [7, 25], cursor: 34.0
command: terminus_keypress {"key": "c"}
sent: c
text d detected
sent: d
receieved: [?25l
PS W:\www\cordova-test\MyApp\www> c


























[?25h
add 0 line(s) to scroll back history
screen is dirty: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13]
updating lines takes 0.012938976287841797s
mode: [7, 25], cursor: 35.0
receieved: [?25l
PS W:\www\cordova-test\MyApp\www> cd


























[?25h
add 0 line(s) to scroll back history
screen is dirty: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13]
updating lines takes 0.013962984085083008s
mode: [7, 25], cursor: 36.0
command: terminus_keypress {"key": "d"}
sent: d
command: terminus_keypress {"key": " "}
sent:  
receieved: [?25l
PS W:\www\cordova-test\MyApp\www> cdd


























[?25h
add 0 line(s) to scroll back history
screen is dirty: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13]
updating lines takes 0.013926982879638672s
mode: [7, 25], cursor: 38.0
command: undo
command: undo
command: undo
command: save
reloading settings Packages/User/Terminus.sublime-settings
command: drag_select {"event": {"button": 1, "x": 556.5, "y": 377.3}}

image image image

image

randy3k commented 5 years ago

Do you have a special keybind with d prefix?

kat0d commented 5 years ago

yeap, it was,

    {
        "keys": ["d", "d", "d", "enter"],
        "command": "paste_and_indent",
    },

after I had remove it, all works just fine. Thanks :)

randy3k commented 5 years ago

I think you just need to opt out these key bindings from terminus_view.

(Untested)

    {
        "keys": ["d", "d", "d", "enter"],
        "command": "paste_and_indent",
        "context": [{"key": "terminus_view", "operator": "not_equal", "operand": true}] 
    },
kat0d commented 5 years ago

Thanks again, yes it's working with a context. And I have another question, is it possible to open a folder in the terminal from the sidebar context menu. Just like for the file image but for the folder?

randy3k commented 5 years ago

I remember someone was able to do so in one of the old threads. In mobile now, cannot offer much help for the search.

kat0d commented 5 years ago

seems this topic https://github.com/randy3k/Terminus/issues/74 will try later:)