Giter Club home page Giter Club logo

Comments (9)

poucotm avatar poucotm commented on September 27, 2024 1
  1. add the codes

tail1

  1. open the log and run "Tail: File In New View"

tail2

  1. run "Log Highlight" for tailed Log

tail4

  1. The first View before log updated

tail5

  1. When the log contents changed, you can see updated in tailed log view

tail6

from log-highlight.

poucotm avatar poucotm commented on September 27, 2024

Hi, Kristina
The reason of "Unknown ..." is that "Tail: chol..." is unsaved. Try to do again after saving. But it can be not good solution. What is "Sublime Tail"?

from log-highlight.

Kristinita avatar Kristinita commented on September 27, 2024

@poucotm, SublimeTail is package for working with logs. See Tail (Unix). If I have big log, I can see only last log changes. Example of work:

SublimeTail

Try to do again after saving.

If I save file, SublimeTail not will work. It would be nice, if Log-Highlight will be highlight unsaved files too.

Thanks.

from log-highlight.

poucotm avatar poucotm commented on September 27, 2024

Hi, Kristinita.
I've updated Log-Highlight to support unsaved file like 'Sublime Tail'.
But you also have to add some codes in Sublime Tail. Or request it.
In order to search base directories (to use links), "absolute file path" is needed.
It is impossible to get a path from a unsaved file. But for 'Sublime Tail' you can set the file path as a setting of view. Add the codes like the following :

In "Tail/packages/tail/commands/tail_file_in_new_view.py"
...
sublime_view = self.view.window().new_file()
tail_view = get_tail_view(sublime_view=sublime_view, create=True)
tail_view.add_source(get_tail_source(filepath=filename))
tail_view.start()
sublime_view.settings().set('filepath', filename)

I've changed that Log-Highlight can get the file path from that setting.

And there's a bug of Sublime Text 3 : Forum.
You have to click a link in 'Summary View' for first time or change view once to use links.

from log-highlight.

Kristinita avatar Kristinita commented on September 27, 2024

@poucotm, I add

sublime_view.settings().set('filepath', filename)

in last line of Tail/packages/tail/commands/tail_file_in_new_view.py, but I get same error.

You have to click a link in 'Summary View' for first time or change view once to use links.

I'm sorry, where I can find Summary View?

Thanks.

from log-highlight.

poucotm avatar poucotm commented on September 27, 2024

Did you check the version of Log Highlight? It also has to be updated as 0.6.5.
And it works only with "Tail File In New View" Command.
When you run Log Highlight, Summary View will be displayed bottom of the window as default.

from log-highlight.

Kristinita avatar Kristinita commented on September 27, 2024

@poucotm, may you write step-by-step, what I need to make to have expected behavior? I can not understand, how I can get expected behavior.

Thanks.

from log-highlight.

Kristinita avatar Kristinita commented on September 27, 2024

Thank you very much!

from log-highlight.

poucotm avatar poucotm commented on September 27, 2024

Hi, Kristinita
I've changed workaround for ST3 bug in v0.8.0. You can use links in Tail view directly without Summary View.

from log-highlight.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.