Wox-launcher / Wox

A cross-platform launcher that simply works
http://wox-launcher.github.io/Wox/
GNU General Public License v3.0
24.57k stars 2.37k forks source link

Wox not show last command on reopen #1050

Closed jrock2004 closed 7 years ago

jrock2004 commented 8 years ago

I want to open Wox and not see the last thing I typed in there. I checked the settings and I see nothing there. Could you please update to where it will not display the last command you used?

artofvs commented 8 years ago

I would love this too

roose commented 8 years ago

@jrock2004, @artofvs Try latest build https://ci.appveyor.com/project/happlebao/wox/build/artifacts

artofvs commented 8 years ago

@roose tried latest one (1.3.300) and it seems like standard behavior didn't change in that version (no new options in settings too)

roose commented 8 years ago

@artofvs oh sorry, I misunderstood =) I think "want to see last query" Old query text is selected, why not just enter new query?

jrock2004 commented 8 years ago

Because the drop down of the selected text results are executed.

lances101 commented 8 years ago

@jrock2004 hey there. The query should not execute if you are toggling Wox after submitting a query. The query only executes when there are changes in the query box. What plugin is causing issues for you?

abulawright commented 7 years ago

I have found a workaround to what I think you want to archive.

@jrock2004 If you want the search bar to be empty with no previous query, then this is what I have done.

  1. In the settings, goto HotKey
  2. Change Wox Hotkey to something random
  3. Then add a new Custom Query Hotkey with the Hotkey as the main one you want and the 'Action Keyword' leave blank.

The next time you use the hotkey, it should load a blank search.

davebrny commented 7 years ago

its happened a few times now that ive used one of the system commands like "sleep" to turn off my computer, then when i start it up again the next day i end up triggering it... either because i type in another command and hit enter before the new results have time to show up, or once or twice ive triggered it while i was dusting off my keyboard

clearing the command when the computer starts up would solve that problem for me

drasbeck commented 7 years ago

The workaround, although usable, is not very intuitive for regular users. An option in settings would be more forthcoming.

Also: Wox cannot be dismissed with the "blank hotkey".

bao-qian commented 7 years ago

@drasbeck yes of course, so this is a workaround and not a fix

bao-qian commented 7 years ago

hi new build out, check the new option image you need option 2 (empty last query)

https://ci.appveyor.com/project/happlebao/wox/build/1.3.344/artifacts

@jrock2004 @artofvs @roose @lances101 @abulawright @drasbeck @davebrny @gerroon @wrgrant

drasbeck commented 7 years ago

Very stoked to try this out, looks awesome! But I get the following error when running the executable:

Wox version: 1.3.342
OS Version: Microsoft Windows NT 10.0.14393.0
IntPtr Length: 8
x64: True
Python Path: 
Everything SDK Path: 
Date: 02/13/2017 09:40:45
Exception:
Wox.Infrastructure
System.NullReferenceException
Object reference not set to an instance of an object.
   at Wox.Infrastructure.Helper.NonNull[T](T obj) in C:\projects\wox\Wox.Infrastructure\Helper.cs:line 15
   at Wox.Infrastructure.Storage.JsonStrorage`1.Deserialize(String searlized) in C:\projects\wox\Wox.Infrastructure\Storage\JsonStorage.cs:line 59
   at Wox.Infrastructure.Storage.JsonStrorage`1.Load() in C:\projects\wox\Wox.Infrastructure\Storage\JsonStorage.cs:line 41
   at Wox.ViewModel.MainViewModel..ctor(Settings settings) in C:\projects\wox\Wox\ViewModel\MainViewModel.cs:line 61
   at Wox.App.<OnStartup>b__8_0() in C:\projects\wox\Wox\App.xaml.cs:line 54
   at Wox.Infrastructure.Stopwatch.Normal(String message, Action action) in C:\projects\wox\Wox.Infrastructure\Stopwatch.cs:line 31
   at System.Windows.Application.OnStartup(StartupEventArgs e)
   at System.Windows.Application.<.ctor>b__1_0(Object unused)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
bao-qian commented 7 years ago

@drasbeck please upload your %APPDATA%\Wox\Settings\Settings.json then try https://ci.appveyor.com/project/happlebao/wox/build/1.3.344/artifacts

bao-qian commented 7 years ago

@evmorov try https://ci.appveyor.com/project/happlebao/wox/build/1.3.344/artifacts

drasbeck commented 7 years ago

Hi @happlebao, with the new exe, everything works as expected.

wrgrant commented 7 years ago

@happlebao 1.3.344 build working great!

bao-qian commented 7 years ago

reopen if you have more issue