Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vanki: Abort aborts Keep too #17

Open
pilgrimlyieu opened this issue Aug 6, 2022 · 0 comments
Open

Vanki: Abort aborts Keep too #17

pilgrimlyieu opened this issue Aug 6, 2022 · 0 comments
Assignees
Labels
bug Something isn't working enhancement New feature or request project-Vark Vark suspended This issue or pull request is temporary suspended

Comments

@pilgrimlyieu
Copy link
Owner

pilgrimlyieu commented Aug 6, 2022

Setting

vanki.ahk
Process      Priority, , Realtime
FileEncoding UTF-8
CoordMode    Caret
CoordMode    Mouse
SetWinDelay  -1

#Include <Vanki>

Global Settings := {"tempdir"        : "G:\Temp\.vanki\"
                  , "historydir"     : "G:\Temp\.vanki\.history\"
                  , "vimdir"         : "D:\Program Files\Vim\vim90"
                  , "vimrc"          : "G:\Assets\Tool\AutoHotkey\Tool\Vark\setting\vanki.vimrc"
                  , "tempfilename"   : "Temp_"
                  , "mixfilename"    : "Mix.md"
                  , "combinefilename": "Combine.md"
                  , "savetoclip"     : 1
                  , "popsizes"       : [960, 300]
                  , "delimiter"      : "`r`n<hr class='section'>`r`n`r`n"}

VimAnki := new Vanki(Settings)

#If WinActive("ahk_pid " VimAnki.process_id)

#q::VimAnki.Close(0)
#w::VimAnki.Close(1)
#e::VimAnki.Close(-1)
#r::VimAnki.Close(2)
#t::VimAnki.Empty()

#If !WinActive("ahk_pid " VimAnki.process_id)

#1::VimAnki.Open()
#y::VimAnki.Combine()
#+1::VimAnki.Clear()

Procedure

  1. Press Win + 1 to open a Vanki Window and write some contents called **First Input**
  2. Press Win + W to keep these contents
  3. Press Win + 1 again
  4. Press Win + E to abort
  5. Press Win + 1 again and write some contents called **Second Input**
  6. Press Win + W to keep these contents

Phenomenon

Contents of temp file Temp_1_1 is

**First Input**
**Second Input**

The mix file Mix.md is normal. The history file Temp_1_1.md shows the history of **First Input**

Reason

Abort aborts Keep but not increase the order.

Solution

There are two solutions, I prefer the first one in my own.

  1. Abort aborts this operation instead of the whole Keep process.
  2. Increase order after Abort.
@pilgrimlyieu pilgrimlyieu added bug Something isn't working enhancement New feature or request project-Vark Vark labels Aug 6, 2022
@pilgrimlyieu pilgrimlyieu self-assigned this Aug 6, 2022
@pilgrimlyieu pilgrimlyieu added the suspended This issue or pull request is temporary suspended label Sep 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request project-Vark Vark suspended This issue or pull request is temporary suspended
Projects
None yet
Development

No branches or pull requests

1 participant