How to use the hist.history.last function in hist

To help you get started, we’ve selected a few hist examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github randy3k / AlignTab / aligntab.py View on Github external
def resolve_input(user_input):
    if isinstance(user_input, str):
        s = sublime.load_settings('AlignTab.sublime-settings')
        patterns = s.get('named_patterns', {})
        if user_input == 'last_regex' and history.last():
            user_input = history.last()
        if user_input in patterns:
            user_input = patterns[user_input]
    if isinstance(user_input, str):
        user_input = [user_input]
    return user_input
github randy3k / AlignTab / aligntab.py View on Github external
def resolve_input(user_input):
    if isinstance(user_input, str):
        s = sublime.load_settings('AlignTab.sublime-settings')
        patterns = s.get('named_patterns', {})
        if user_input == 'last_regex' and history.last():
            user_input = history.last()
        if user_input in patterns:
            user_input = patterns[user_input]
    if isinstance(user_input, str):
        user_input = [user_input]
    return user_input

hist

Hist classes and utilities

BSD-3-Clause
Latest version published 3 months ago

Package Health Score

81 / 100
Full package analysis

Similar packages