shournal icon indicating copy to clipboard operation
shournal copied to clipboard

No results found matching the query

Open CLZHANG96 opened this issue 1 year ago • 2 comments

Hey,I got in trouble with shournal.Can you please help me?This is my command and return:

Command: SHOURNAL_ENABLE Return: "shournal bash integration - ERROR: Commands with spaces are set to be ignored from history. Please disable that, e.g. HISTCONTROL=ignoredups or HISTCONTROL=''

Then I tried to fix it : export HISTCONTROL=ignoredups

Then I run the example command: cat aa > foo shournal --query --wfile foo

RETURN: No results found matching the query.

CLZHANG96 avatar Jan 02 '24 03:01 CLZHANG96

Hi. From the given information it is a bit hard to say what's the problem here 😅. I have some guesses though:

  • you did not call SHOURNAL_ENABLE after adjusting HISTCONTROL
  • you are using the fanotify backend and the line source /usr/share/shournal/SOURCE_ME.bash is not part of your ~/.bashrc
  • you are in a working directory excluded from observation (see ~/.config/shournal/config.ini section File write-events)

If that doesn't help you can enable debugging by calling SHOURNAL_SET_VERBOSITY dbg and SHOURNAL_ENABLE afterwards. When pasting the output here, please also include your Linux distribution, the way how shournal was installed as well as the content of your config file. I encourage you to read the README-shell-integration if you haven't done so yet. A final note - HISTCONTROL should not be exported 😉

tycho-kirchner avatar Jan 02 '24 10:01 tycho-kirchner

Hi.Thaks for your help,it's so complicated for me,I'll try later.

CLZHANG96 avatar Jan 04 '24 14:01 CLZHANG96